Small code improvements and removal of unused variables
This commit is contained in:
1 parent
2a61a8ce09
commit
6af9ed6fd6
4 files changed
+35
-44
No files matched your search
@@ -888,7 +888,7 @@ local function renderAchievementInfo()
|
||||
hasShownAchievementWarning = true
|
||||
else
|
||||
-- Achievements Locked Check (do we have Cube of Meat or Book of Revelations unlocked?)
|
||||
local characterID = Game():GetPlayer(0):GetPlayerType()
|
||||
local characterID = EID.player:GetPlayerType()
|
||||
--ID 21 = Tainted Isaac. Tainted characters have definitely beaten Mom! (Fixes Tainted Lost's item pools ruining this check)
|
||||
if characterID < 21 and game.Challenge == 0 and not EID:PlayersHaveCollectible(CollectibleType.COLLECTIBLE_TMTRAINER) then
|
||||
local hasBookOfRevelationsUnlocked = EID:isCollectibleUnlockedAnyPool(CollectibleType.COLLECTIBLE_BOOK_OF_REVELATIONS or CollectibleType.COLLECTIBLE_BOOK_REVELATIONS)
|
||||
|
||||
Reference in new issue
Block a user