Better Spindown Dice method

This commit is contained in:
kittenchilly committed 2021-10-19 08:50:07 -05:00
1 parent c25a3d8b4f
commit d131e79e4a
2 files changed
+2 -23

No files matched your search

+2 -1
View File
@@ -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