Merge pull request #186 from Buurazu/patch-9
fix Tainted Lost achievement warning and controller hide key issue
This commit is contained in:
3 files changed
+12
-6
No files matched your search
@@ -690,4 +690,4 @@ EID.descriptions["en_us"].CraftingFloorContent = "Floor:"
|
||||
EID.descriptions["en_us"].CraftingResults = "(Scroll: hold {{CONFIG_BoC_Toggle}} + {{ButtonY}} {{ButtonA}},#Lock: {{ButtonX}}, Refresh: {{ButtonB}})"
|
||||
EID.descriptions["en_us"].CraftingBagModError = "!!! {{ColorRed}}ERROR:#{{ColorRed}}The \"Crafting result calculation\" feature currently does not work when item mods are installed!#{{ColorRed}}Please uninstall the item mods or deactivate the Bag of Crafting descriptions in the config"
|
||||
EID.descriptions["en_us"].AchievementWarningTitle = "{{ColorYellow}}!!! WARNING !!!"
|
||||
EID.descriptions["en_us"].AchievementWarningText = "Achievements are disabled!#In order to enable progression and achievements, you first need to kill Mom (Depths II) without any mods enabled."
|
||||
EID.descriptions["en_us"].AchievementWarningText = "Achievements are disabled!#In order to enable progression and achievements, you first need to kill Mom (Depths II) without any mods enabled.#(If you've defeated Mom, this message is a bug and can be ignored)"
|
||||
@@ -681,5 +681,5 @@ EID.descriptions["ru"].CraftingRoomContent = "Комната:"
|
||||
EID.descriptions["ru"].CraftingFloorContent = "Этаж:"
|
||||
EID.descriptions["ru"].CraftingResults = "Результаты:#(Листать: {{CONFIG_BoC_Toggle}} + {{ButtonY}} {{ButtonA}})"
|
||||
EID.descriptions["ru"].CraftingBagModError = "!!! {{ColorRed}}ОШИБКА:#{{ColorRed}}Эта функция на данный момент не поддерживается с установленными модами"
|
||||
EID.descriptions["en_us"].AchievementWarningTitle = "{{ColorYellow}}!!! ВНИМАНИЕ !!!"
|
||||
EID.descriptions["en_us"].AchievementWarningText = "Достижения отключены!#Чтобы включить прогресс и достижения, вам сначала нужно убить Маму (Глубины II) без включенных модов"
|
||||
EID.descriptions["ru"].AchievementWarningTitle = "{{ColorYellow}}!!! ВНИМАНИЕ !!!"
|
||||
EID.descriptions["ru"].AchievementWarningText = "Достижения отключены!#Чтобы включить прогресс и достижения, вам сначала нужно убить Маму (Глубины II) без включенных модов"
|
||||
@@ -568,6 +568,9 @@ EID:AddCallback(ModCallbacks.MC_POST_UPDATE, EID.onGameUpdate)
|
||||
local hasShownAchievementWarning = false
|
||||
local function renderAchievementInfo()
|
||||
if REPENTANCE and not EID.Config.DisableAchievementCheck and game:GetFrameCount() < 10*30 and game.Challenge == 0 then
|
||||
local characterID = Game():GetPlayer(0):GetPlayerType()
|
||||
--ID 21 = Tainted Isaac. Tainted characters have definitely beaten Mom! (Fixes Tainted Lost's item pools ruining this check)
|
||||
if (characterID < 21) then
|
||||
local hasBookOfRevelationsUnlocked = EID:isCollectibleUnlockedAnyPool(CollectibleType.COLLECTIBLE_BOOK_OF_REVELATIONS or CollectibleType.COLLECTIBLE_BOOK_REVELATIONS)
|
||||
if not hasBookOfRevelationsUnlocked then
|
||||
local hasCubeOfMeatUnlocked = EID:isCollectibleUnlockedAnyPool(CollectibleType.COLLECTIBLE_CUBE_OF_MEAT)
|
||||
@@ -579,6 +582,7 @@ local function renderAchievementInfo()
|
||||
hasShownAchievementWarning = true
|
||||
end
|
||||
end
|
||||
end
|
||||
elseif hasShownAchievementWarning then
|
||||
EID:hidePermanentText()
|
||||
end
|
||||
@@ -593,7 +597,10 @@ local function onRender(t)
|
||||
EID.isDisplaying = false
|
||||
EID:setPlayer()
|
||||
|
||||
if Input.IsButtonTriggered(EID.Config["HideKey"], EID.player.ControllerIndex or 0) or Input.IsButtonTriggered(EID.Config["HideKey"], 0) then
|
||||
--Controller hide keys are 0 through 26, keyboard hide keys are 32+
|
||||
local hidekeyType = 0
|
||||
if EID.Config["HideKey"] < 32 then hidekeyType = EID.player.ControllerIndex end
|
||||
if Input.IsButtonTriggered(EID.Config["HideKey"], hidekeyType) then
|
||||
EID.isHidden = not EID.isHidden
|
||||
end
|
||||
if ModConfigMenu and ModConfigMenu.IsVisible and ModConfigMenu.Config["Mod Config Menu"].HideHudInMenu and EID.MCMCompat_isDisplayingEIDTab ~= "Visuals" then --if if the mod config menu exists, is opened and Hide Hud is enabled, and ModConfigMenu is currently in the "Visuals" tab of EID
|
||||
@@ -601,8 +608,7 @@ local function onRender(t)
|
||||
end
|
||||
|
||||
EID:renderMCMDummyDescription()
|
||||
-- Disabling Achievement detection for now, since it breaks on some occasions since new patch
|
||||
--renderAchievementInfo()
|
||||
renderAchievementInfo()
|
||||
|
||||
if EID.GameVersion == "ab+" then
|
||||
if EID.player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
|
||||
|
||||
Reference in new issue
Block a user