Checking unlock status does not work with TMTRAINER
This commit is contained in:
1 parent
63804c1999
commit
93fc928ea3
1 file changed
+3
-2
+3
-2
@@ -885,8 +885,9 @@ function EID:isCollectibleUnlocked(collectibleID, itemPoolOfItem)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function EID:isCollectibleUnlockedAnyPool(collectibleID)
|
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
|
--THIS FUNCTION IS FOR REPENTANCE ONLY due to using Repentance XML data
|
||||||
if not REPENTANCE then return true end
|
--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)
|
local item = EID.itemConfig:GetCollectible(collectibleID)
|
||||||
if item == nil then return false end
|
if item == nil then return false end
|
||||||
if EID.itemUnlockStates[collectibleID] == nil then
|
if EID.itemUnlockStates[collectibleID] == nil then
|
||||||
|
|||||||
Reference in new issue
Block a user