Better Spindown Dice method
This commit is contained in:
1 parent
c25a3d8b4f
commit
d131e79e4a
2 files changed
+2
-23
No files matched your search
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user