From 93fc928ea363385671f265c593416cee46d8983d Mon Sep 17 00:00:00 2001 From: Buurazu Date: Sat, 15 Jan 2022 00:44:55 -0500 Subject: [PATCH] Checking unlock status does not work with TMTRAINER --- eid_api.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index 606b2c65..c5a2aa12 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -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