Checking unlock status does not work with TMTRAINER

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-15 00:44:55 -05:00
1 parent 63804c1999
commit 93fc928ea3
1 file changed
+3 -2
+3 -2
View File
@@ -885,8 +885,9 @@ function EID:isCollectibleUnlocked(collectibleID, itemPoolOfItem)
end
function EID:isCollectibleUnlockedAnyPool(collectibleID)
--THIS FUNCTION IS FOR REPENTANCE ONLY due to using Repentance XML data; currently used by the Achievement Check, Spindown Dice, and Bag of Crafting
if not REPENTANCE then return true end
--THIS FUNCTION IS FOR REPENTANCE ONLY due to using Repentance XML data
--Currently used by the Achievement Check, Spindown Dice, and Bag of Crafting
if not REPENTANCE or EID:PlayersHaveCollectible(CollectibleType.COLLECTIBLE_TMTRAINER) then return true end
local item = EID.itemConfig:GetCollectible(collectibleID)
if item == nil then return false end
if EID.itemUnlockStates[collectibleID] == nil then