detect low collectible counts as well as high

This commit is contained in:
Buurazu authored and GitHub committed 2021-11-19 17:31:20 -05:00
1 parent d24ac1f5ba
commit db6c62808d
1 file changed
+2 -1
+2 -1
View File
@@ -764,7 +764,8 @@ function EID:getSpindownResult(collectibleID)
end
function EID:GetMaxCollectibleID()
local id = CollectibleType.NUM_COLLECTIBLES-1
--start a little lower than NUM_COLLECTIBLES, due to mods with outdated items.xmls that are missing newer items
local id = CollectibleType.NUM_COLLECTIBLES-17
local step = 16
while step > 0 do
if EID.itemConfig:GetCollectible(id+step) ~= nil then