Add refresh rate option
This commit is contained in:
1 parent
2076885e65
commit
6ecf094755
1 file changed
+8
-1
+8
-1
@@ -962,7 +962,7 @@ function EID:PlayersHaveCollectible(collectibleID)
|
|||||||
for i = 0, game:GetNumPlayers() - 1 do
|
for i = 0, game:GetNumPlayers() - 1 do
|
||||||
local player = Isaac.GetPlayer(i)
|
local player = Isaac.GetPlayer(i)
|
||||||
if player:HasCollectible(collectibleID) then
|
if player:HasCollectible(collectibleID) then
|
||||||
return true
|
return true, player
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
@@ -1410,3 +1410,10 @@ function EID:removeIgnoredEntity(entityType, entityVariant, entitySubType)
|
|||||||
EID.IgnoredEntities[entityType.."."..entityVariant.."."..entitySubType] = nil
|
EID.IgnoredEntities[entityType.."."..entityVariant.."."..entitySubType] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function EID:RefreshThisFrame()
|
||||||
|
if EID.GameRenderCount % (60 / EID.Config["RefreshRate"]) == 0 then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
Reference in new issue
Block a user