From d131e79e4a36aac1ec1ee7de2ca39dc7c8a77397 Mon Sep 17 00:00:00 2001 From: kittenchilly Date: Tue, 19 Oct 2021 08:50:07 -0500 Subject: [PATCH] Better Spindown Dice method --- eid_api.lua | 3 ++- eid_data.lua | 22 ---------------------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index d1a6aa26..d44e499f 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -751,10 +751,11 @@ end -- Converts a given CollectibleID into the respective Spindown dice result function EID:getSpindownResult(collectibleID) + local config = Isaac.GetItemConfig() local newID = collectibleID repeat newID = newID - 1 - until( EID.SpindownDiceSkipIDs[newID] == nil) + until config:GetCollectible(newID) and not config:GetCollectible(newID).Hidden return newID end diff --git a/eid_data.lua b/eid_data.lua index b48ea7db..75728362 100644 --- a/eid_data.lua +++ b/eid_data.lua @@ -1,25 +1,3 @@ --- Item IDs that are skipped when using the Spindown dice -EID.SpindownDiceSkipIDs = { - [43]=true, - [59]=true, - [61]=true, - [235]=true, - [587]=true, - [613]=true, - [620]=true, - [630]=true, - [648]=true, - [656]=true, - [662]=true, - [666]=true, - [710]=true, - [711]=true, - [713]=true, - [714]=true, - [715]=true, - [718]=true -} - EID.ButtonToIconMap = { [ButtonAction.ACTION_SHOOTUP] = "{{ButtonY}}", [ButtonAction.ACTION_SHOOTDOWN] = "{{ButtonA}}",