From 18c032508ffa55f601e40f6f27370d688d261051 Mon Sep 17 00:00:00 2001 From: biobak <73142552+biobak64@users.noreply.github.com> Date: Thu, 8 Aug 2024 19:02:57 +0200 Subject: [PATCH] conditional for heals with no red health characters (#702) Added conditional to replace mentions of red hearts with soul/black/coin hearts for characters that use them --- descriptions/ab+/en_us.lua | 3 +++ descriptions/rep/en_us.lua | 5 +++++ features/eid_conditionals.lua | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/descriptions/ab+/en_us.lua b/descriptions/ab+/en_us.lua index 58fec22e..7f32445e 100644 --- a/descriptions/ab+/en_us.lua +++ b/descriptions/ab+/en_us.lua @@ -1218,6 +1218,9 @@ EID.descriptions[languageCode].ConditionalDescs = { ------ SPECIFIC CHARACTER SYNERGIES/CHANGES ------ + ["Red to Soul"] = {"{{Heart}} +","{{SoulHeart}} +", "{{Heart}} Full health", "", "{{Heart}} Heals 1 heart", ""}, -- Red HP to Soul Hearts, removes heals + ["Red to Coin"] = {"{{Heart}} +","{{CoinHeart}} +", "{{Heart}} Full health", "{{CoinHeart}} Full Health", "{{Heart}} Heals 1 heart", "{{CoinHeart}} Heals 1 coin"}, + ["5.100.135 (PHD)"] = "Spawns 2-3 coins if you have {1}", -- IV Bag PHD ["Keeper 0-1"] = "Spawns 0-1 coin as {1}", -- IV Bag/Piggy Bank Keeper ["5.100.549"] = "{1} simply gets ↑ {{Tears}} +0.4 Tears on pickup", -- Brittle Bones (Keeper+Lost) diff --git a/descriptions/rep/en_us.lua b/descriptions/rep/en_us.lua index a8ae8a2c..1cb3d33b 100644 --- a/descriptions/rep/en_us.lua +++ b/descriptions/rep/en_us.lua @@ -1347,6 +1347,11 @@ local repConditions = { ------ SPECIFIC CHARACTER SYNERGIES/CHANGES ------ + ["Red to Soul"] = {"{{Heart}} +","{{SoulHeart}} +", "{{Heart}} Full health", "", "{{Heart}} Heals 1 heart", ""}, -- Red HP to Soul Hearts, removes heals + ["Red to Black"] = {"{{Heart}} +","{{BlackHeart}} +", "{{Heart}} Full health", "", "{{Heart}} Heals 1 heart", ""}, -- Red HP to Black Heart, removes heals + ["Red to Coin"] = {"{{Heart}} +","{{CoinHeart}} +", "{{Heart}} Full health", "{{CoinHeart}} Full Health", "{{Heart}} Heals 1 heart", "{{CoinHeart}} Heals 1 coin"}, + + ["5.100.642"] = "Single use for {1}", -- Magic Skin + Lost ["5.100.240"] = "{1} keeps the stat changes when he drops it", -- Experimental Treatment + Tainted Isaac ["5.100.644"] = "{1} keeps the stat increase when he drops it", -- Consolation Prize + Tainted Isaac diff --git a/features/eid_conditionals.lua b/features/eid_conditionals.lua index a44d2f33..f3b61cff 100644 --- a/features/eid_conditionals.lua +++ b/features/eid_conditionals.lua @@ -82,10 +82,15 @@ EID:AddConditional(297, function() return not EID:HaveNotUnlockedAchievement(366 ------ NO RED HEALTH PLAYERS ------ EID:AddConditional({442, "5.350.107", "5.350.119"}, EID.CheckForNoRedHealthPlayer, "No Red") -- Dark Prince's Crown, Crow Heart, Stem Cell EID:AddConditional(81, EID.CheckForNoRedHealthPlayer) -- Dead Cat +EID:AddPlayerConditional({12, 15, 16, 22, 23, 24, 25, 26, 92, 101, 119, 121, 129, 138, 176, 182, 184, 189, 193, 218, 219, 226, 253, 307, 312, 314, 334, 342, 346, 354, 456}, 4, "Red to Soul") -- HP up to Soul heart for ??? +EID:AddPlayerConditional({12, 15, 16, 22, 23, 24, 25, 26, 92, 101, 119, 121, 129, 138, 176, 182, 184, 189, 193, 218, 219, 226, 253, 307, 312, 314, 334, 342, 346, 354, 456}, {14, 33}, "Red to Coin") -- HP up to Coin heart for Keepers if EID.isRepentance then EID:AddConditional({569, 671, 676}, EID.CheckForNoRedHealthPlayer, "No Red") -- Blood Oath, Candy Heart, Empty Heart EID:AddPlayerConditional({671, 676}, 14, "No Effect") -- Candy Heart / Empty Heart + Keeper EID:AddPlayerConditional(676, 16, "No Effect", nil, false) -- Empty Heart + Forgotten (not Tainted) + EID:AddPlayerConditional({573, 591, 594, 614, 664, 669, 707, "5.350.156"}, 4, "Red to Soul") -- HP up to Soul heart for ??? + EID:AddPlayerConditional({12, 15, 16, 22, 23, 24, 25, 26, 92, 101, 119, 121, 129, 138, 176, 182, 184, 189, 193, 218, 219, 226, 253, 307, 312, 314, 334, 342, 346, 354, 456, 573, 591, 594, 614, 664, 669, 707, "5.350.156"}, {12, 24}, "Red to Black") -- HP up to Black heart for Dark/Tainted Judas + EID:AddPlayerConditional({573, 591, 594, 614, 664, 669, 707, "5.350.156"}, {14, 33}, "Red to Coin") -- HP up to Coin heart for Keeper end