From 6ecf094755436b9f6a302a7a0598e2cc65747a37 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Sat, 5 Mar 2022 05:08:26 -0500 Subject: [PATCH] Add refresh rate option --- eid_api.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index a6442814..e61c055b 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -962,7 +962,7 @@ function EID:PlayersHaveCollectible(collectibleID) for i = 0, game:GetNumPlayers() - 1 do local player = Isaac.GetPlayer(i) if player:HasCollectible(collectibleID) then - return true + return true, player end end return false @@ -1410,3 +1410,10 @@ function EID:removeIgnoredEntity(entityType, entityVariant, entitySubType) EID.IgnoredEntities[entityType.."."..entityVariant.."."..entitySubType] = nil end end + +function EID:RefreshThisFrame() + if EID.GameRenderCount % (60 / EID.Config["RefreshRate"]) == 0 then + return true + end + return false +end