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 -- Converts a given CollectibleID into the respective Spindown dice result
function EID:getSpindownResult(collectibleID) function EID:getSpindownResult(collectibleID)
local config = Isaac.GetItemConfig()
local newID = collectibleID local newID = collectibleID
repeat repeat
newID = newID - 1 newID = newID - 1
until( EID.SpindownDiceSkipIDs[newID] == nil) until config:GetCollectible(newID) and not config:GetCollectible(newID).Hidden
return newID return newID
end end
-22
View File
@@ -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 = { EID.ButtonToIconMap = {
[ButtonAction.ACTION_SHOOTUP] = "{{ButtonY}}", [ButtonAction.ACTION_SHOOTUP] = "{{ButtonY}}",
[ButtonAction.ACTION_SHOOTDOWN] = "{{ButtonA}}", [ButtonAction.ACTION_SHOOTDOWN] = "{{ButtonA}}",