collectible lock check tweaks

This commit is contained in:
Buurazu authored and GitHub committed 2021-10-20 05:30:30 -04:00
1 parent 598019686b
commit abbb79f065
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -755,7 +755,7 @@ function EID:getSpindownResult(collectibleID)
local newID = collectibleID
repeat
newID = newID - 1
--note: the order of this statement is important so that the item is checked for being in a pool (to display a ? if it isn't)
--note: the order of the SkipLocked check statement is important so that the item is checked for being in a pool either way (to display a ? if it isn't)
until (config:GetCollectible(newID) and (EID:isCollectibleUnlockedAnyPool(newID) or not EID.Config["SpindownDiceSkipLocked"]) and not config:GetCollectible(newID).Hidden) or newID == CollectibleType.COLLECTIBLE_NULL
return newID
end