remove low item count warning

This commit is contained in:
Buurazu authored and GitHub committed 2021-11-21 23:58:40 -05:00
1 parent edebe99c0b
commit cdcb4aff17
1 file changed
+13 -21
+13 -21
View File
@@ -551,27 +551,19 @@ EID:AddCallback(ModCallbacks.MC_POST_UPDATE, EID.onGameUpdate)
local hasShownAchievementWarning = false local hasShownAchievementWarning = false
local function renderAchievementInfo() local function renderAchievementInfo()
if REPENTANCE and not EID.Config.DisableAchievementCheck and game:GetFrameCount() < 10*30 then if REPENTANCE and not EID.Config.DisableAchievementCheck and game:GetFrameCount() < 10*30 and game.Challenge == 0 then
if EID:GetMaxCollectibleID() < EID.XMLMaxItemID then local characterID = Game():GetPlayer(0):GetPlayerType()
local demoDescObj = EID:getDescriptionObj(-999, -1, 1) --ID 21 = Tainted Isaac. Tainted characters have definitely beaten Mom! (Fixes Tainted Lost's item pools ruining this check)
demoDescObj.Name = EID:getDescriptionEntry("AchievementWarningTitle") or "" if characterID < 21 then
demoDescObj.Description = EID:getDescriptionEntry("OutdatedModWarningText") or "" local hasBookOfRevelationsUnlocked = EID:isCollectibleUnlockedAnyPool(CollectibleType.COLLECTIBLE_BOOK_OF_REVELATIONS or CollectibleType.COLLECTIBLE_BOOK_REVELATIONS)
EID:displayPermanentText(demoDescObj) if not hasBookOfRevelationsUnlocked then
hasShownAchievementWarning = true local hasCubeOfMeatUnlocked = EID:isCollectibleUnlockedAnyPool(CollectibleType.COLLECTIBLE_CUBE_OF_MEAT)
else if not hasCubeOfMeatUnlocked then
local characterID = Game():GetPlayer(0):GetPlayerType() local demoDescObj = EID:getDescriptionObj(-999, -1, 1)
--ID 21 = Tainted Isaac. Tainted characters have definitely beaten Mom! (Fixes Tainted Lost's item pools ruining this check) demoDescObj.Name = EID:getDescriptionEntry("AchievementWarningTitle") or ""
if characterID < 21 and game.Challenge == 0 then demoDescObj.Description = EID:getDescriptionEntry("AchievementWarningText") or ""
local hasBookOfRevelationsUnlocked = EID:isCollectibleUnlockedAnyPool(CollectibleType.COLLECTIBLE_BOOK_OF_REVELATIONS or CollectibleType.COLLECTIBLE_BOOK_REVELATIONS) EID:displayPermanentText(demoDescObj)
if not hasBookOfRevelationsUnlocked then hasShownAchievementWarning = true
local hasCubeOfMeatUnlocked = EID:isCollectibleUnlockedAnyPool(CollectibleType.COLLECTIBLE_CUBE_OF_MEAT)
if not hasCubeOfMeatUnlocked then
local demoDescObj = EID:getDescriptionObj(-999, -1, 1)
demoDescObj.Name = EID:getDescriptionEntry("AchievementWarningTitle") or ""
demoDescObj.Description = EID:getDescriptionEntry("AchievementWarningText") or ""
EID:displayPermanentText(demoDescObj)
hasShownAchievementWarning = true
end
end end
end end
end end