Merge pull request #165 from kittenchilly/master

Better Spindown Dice method
This commit is contained in:
wofsauge authored and GitHub committed 2021-10-19 15:56:51 +02:00
commit 1708368e1e
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
-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 = {
[ButtonAction.ACTION_SHOOTUP] = "{{ButtonY}}",
[ButtonAction.ACTION_SHOOTDOWN] = "{{ButtonA}}",