From fca0e891bf6cd7dfe188a3c12b81ffa6b09da060 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sat, 15 Feb 2025 17:35:07 -0800 Subject: [PATCH] Renamed Deep Brimstone Flames to Demon Flames Also fixed the mentioned mistake from the PR and gave Demon Flames a new buff icon since its doesn't have "brimstone in the name" This will be replaced by an improved version later I think --- ...{DeepBrimstoneFlames.cs => DemonFlames.cs} | 8 ++--- ...eepBrimstoneFlames.png => DemonFlames.png} | Bin 3205 -> 3230 bytes CalPlayer/CalamityPlayer.cs | 6 ++-- CalPlayer/CalamityPlayerDrawEffects.cs | 4 +-- CalPlayer/CalamityPlayerHitHurt.cs | 2 +- CalPlayer/CalamityPlayerLifeRegen.cs | 2 +- CalPlayer/CalamityPlayerMiscEffects.cs | 1 - .../en-US/Mods.CalamityMod.Buffs.hjson | 4 +-- NPCs/CalamityGlobalNPC.cs | 28 +++++++++--------- Projectiles/Melee/DevilsDevastationHoldout.cs | 12 ++++---- .../Melee/DevilsDevastationThrownBlade.cs | 6 ++-- Projectiles/Melee/ExaltedOathbladeHoldout.cs | 6 ++-- .../Melee/ExaltedOathbladeThrownBlade.cs | 6 ++-- .../Melee/ForbiddenOathbladeHoldout.cs | 6 ++-- .../Melee/ForbiddenOathbladeThrownBlade.cs | 6 ++-- 15 files changed, 48 insertions(+), 49 deletions(-) rename Buffs/DamageOverTime/{DeepBrimstoneFlames.cs => DemonFlames.cs} (93%) rename Buffs/DamageOverTime/{DeepBrimstoneFlames.png => DemonFlames.png} (84%) diff --git a/Buffs/DamageOverTime/DeepBrimstoneFlames.cs b/Buffs/DamageOverTime/DemonFlames.cs similarity index 93% rename from Buffs/DamageOverTime/DeepBrimstoneFlames.cs rename to Buffs/DamageOverTime/DemonFlames.cs index 1209588ce5..1d82ed381c 100644 --- a/Buffs/DamageOverTime/DeepBrimstoneFlames.cs +++ b/Buffs/DamageOverTime/DemonFlames.cs @@ -10,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime { - public class DeepBrimstoneFlames : ModBuff + public class DemonFlames : ModBuff { public override void SetStaticDefaults() { @@ -22,13 +22,13 @@ namespace CalamityMod.Buffs.DamageOverTime public override void Update(Player player, ref int buffIndex) { - player.Calamity().deepBrimstoneFlames = true; + player.Calamity().demonFlames = true; } public override void Update(NPC npc, ref int buffIndex) { - if (npc.Calamity().deepBrimstoneFlames < npc.buffTime[buffIndex]) - npc.Calamity().deepBrimstoneFlames = npc.buffTime[buffIndex]; + if (npc.Calamity().demonFlames < npc.buffTime[buffIndex]) + npc.Calamity().demonFlames = npc.buffTime[buffIndex]; npc.DelBuff(buffIndex); buffIndex--; } diff --git a/Buffs/DamageOverTime/DeepBrimstoneFlames.png b/Buffs/DamageOverTime/DemonFlames.png similarity index 84% rename from Buffs/DamageOverTime/DeepBrimstoneFlames.png rename to Buffs/DamageOverTime/DemonFlames.png index 2fcd1d1f6c109aaf21039b83bf26c56005b96aa8..12fa10c15931feec81b4104e35d32c2f82aaf24f 100644 GIT binary patch delta 458 zcmV;*0X6=G8J-!i-wJ=KNklFG~bb6vfZOurdo)n^}V*2_S!)ddn8E=7SOADB)A@FeEdcwA-Et!9R$><{T!6`F8vwA7NQyUO3AomgfUjSY z!v3d#G3C^3Q;vVtQ8AhrkrG}s1mv_Oz=LK@jspeY2Az5hMnj4~1g3N;_$r3b zbn4lZ+E|Ot*{vJ^@R#BotAPPL#PU7jOT8XE4dWVj)aQ(TOvfSnS&F%q2^`=J5XeB$ewCDS0`0%Q#$Ev7=A;^U_EXOr;X0XT>#HXp?S zl2=*#y_2vo0R1}73YaAyaPIGcp#c>B=d@^mZylD%2!b`!2mk;807*qoM6N<$g5f&L A2><{9 delta 433 zcmV;i0Z#s&8HE|J-wJ<`Nkl;?YIP?%qkq`vI@Bv5=!yvE- z62NR^3n3c}!$=TV1cnI`J^+Rw2nh-V(>Nqz4HKk@=9aumU)!1W{Z0GYyZiszyS}6* ziXs4vG4aWS6h)B%FogpE5kOE{Oih@dS_h!tI!=u%H%|cg`g?y&jSGh#_zmDP431XQ z3!gpb0`eCiuklmk-CD1;D`SE93$Qng3!h*7SjGY-1qQ!1z|6D_ph0SfvjAL`DxL!D za0kE~RVz>=V4aNZs&3-rLvUaLOa3=K0B+dw44@VtM#l2WMfx+!+XAgoi!q)9=!C3S zucccd+6cRz14w_uO1Nw#_DZLzKw_BH!ps(U1EBRe=q6rwX<;V$LF6;{4?u530wTt5 zZQEd}VXs~H1w@7~_f9x*fO4=8z->Jayl=(@He1PtGISz6lmevdTsM6MkQTfIuZbY8 z;S{-sO^mlYc78v+^b9~+pbPD`s@7Tx>9}#@oik7vfV3$fOWHt7hRh{tv2z9{4p8{d bY0&`xA4QS~t}xna00000NkvXXu0mjfcAC3L diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 094429601b..843af53256 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1180,7 +1180,7 @@ namespace CalamityMod.CalPlayer public bool irradiated = false; public bool bFlames = false; public bool weakBrimstoneFlames = false; - public bool deepBrimstoneFlames = false; + public bool demonFlames = false; public bool gsInferno = false; public bool astralInfection = false; /// Plague debuff. @@ -2367,7 +2367,7 @@ namespace CalamityMod.CalPlayer witheredDebuff = false; absorberAffliction = false; weakBrimstoneFlames = false; - deepBrimstoneFlames = false; + demonFlames = false; gsInferno = false; astralInfection = false; pFlames = false; @@ -2822,7 +2822,7 @@ namespace CalamityMod.CalPlayer witheredDebuff = false; absorberAffliction = false; weakBrimstoneFlames = false; - deepBrimstoneFlames = false; + demonFlames = false; gsInferno = false; astralInfection = false; pFlames = false; diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 9c8740e754..9e195cc6e3 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -232,8 +232,8 @@ namespace CalamityMod.CalPlayer if (calamityPlayer.daybroken && drawInfo.shadow == 0f) Daybroken.DrawEffects(drawInfo, reducedDaybrokenDamage); - if (calamityPlayer.deepBrimstoneFlames && drawInfo.shadow == 0f) - DeepBrimstoneFlames.DrawEffects(drawInfo); + if (calamityPlayer.demonFlames && drawInfo.shadow == 0f) + DemonFlames.DrawEffects(drawInfo); if (calamityPlayer.dragonFire && drawInfo.shadow == 0f) Dragonfire.DrawEffects(drawInfo); diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 1aed75bc60..00148c8f6b 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -451,7 +451,7 @@ namespace CalamityMod.CalPlayer { damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Riptide" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } - if (bFlames || weakBrimstoneFlames || deepBrimstoneFlames) + if (bFlames || weakBrimstoneFlames || demonFlames) { damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BrimstoneFlames" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 7509fb201a..c8886ccd37 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -111,7 +111,7 @@ namespace CalamityMod.CalPlayer int staticDoT = ((Player.controlLeft || Player.controlRight) ? 12 : 3) / (eleResist ? 2 : 1); ApplyDoTDebuff(staticDischarge, staticDoT, purity); ApplyDoTDebuff(bFlames, abaddon ? 10 : 30, purity); - ApplyDoTDebuff(deepBrimstoneFlames, 33, purity); + ApplyDoTDebuff(demonFlames, 33, purity); ApplyDoTDebuff(daybroken, reducedDaybrokenDamage ? 20 : 40, purity); ApplyDoTDebuff(nightwither, reducedNightwitherDamage ? 20 : 40, purity); ApplyDoTDebuff(hFlames, 40, purity); diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 55489729b9..f127572d0a 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -78,7 +78,6 @@ using Terraria.GameInput; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; -using static Terraria.GameContent.Animations.IL_Actions.Sprites; using ProvidenceBoss = CalamityMod.NPCs.Providence.Providence; namespace CalamityMod.CalPlayer diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 190f420e24..f2c7465114 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -151,8 +151,8 @@ BrainRot: { Description: Your neurons are popping like corn kernels } -DeepBrimstoneFlames: { - DisplayName: Deep Brimstone Flames +DemonFlames: { + DisplayName: Demon Flames Description: Immolating flames sear your soul } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index d325e0fa3d..3fc8bff5aa 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -311,8 +311,8 @@ namespace CalamityMod.NPCs public int absorberAffliction = 0; public int irradiated = 0; public int bFlames = 0; - public int deepBrimstoneFlames = 0; - public int deepBrimstoneFlamesBonusDamage = 0; + public int demonFlames = 0; + public int demonFlamesBonusDamage = 0; public int hFlames = 0; /// Plague debuff. public int pFlames = 0; @@ -578,8 +578,8 @@ namespace CalamityMod.NPCs myClone.absorberAffliction = absorberAffliction; myClone.irradiated = irradiated; myClone.bFlames = bFlames; - myClone.deepBrimstoneFlames = deepBrimstoneFlames; - myClone.deepBrimstoneFlamesBonusDamage = deepBrimstoneFlamesBonusDamage; + myClone.demonFlames = demonFlames; + myClone.demonFlamesBonusDamage = demonFlamesBonusDamage; myClone.hFlames = hFlames; myClone.pFlames = pFlames; myClone.aCrunch = aCrunch; @@ -976,7 +976,7 @@ namespace CalamityMod.NPCs // Oiled bool hasColdOil = npc.onFrostBurn || npc.onFrostBurn2; bool hasHotOil = npc.onFire || npc.onFire2 || npc.onFire3 || npc.shadowFlame; - bool hasModHotOil = bFlames > 0 || deepBrimstoneFlames > 0 || hFlames > 0 || gsInferno > 0 || dragonFire > 0 || banishingFire > 0 || vulnerabilityHex > 0; + bool hasModHotOil = bFlames > 0 || demonFlames > 0 || hFlames > 0 || gsInferno > 0 || dragonFire > 0 || banishingFire > 0 || vulnerabilityHex > 0; if (npc.oiled && (hasColdOil || hasHotOil || hasModHotOil)) { double multiplier = 1D; @@ -1129,10 +1129,10 @@ namespace CalamityMod.NPCs // Deep Brimstone Flames // Has simular base power to Brimstone Flames but can't be resisted // Additionally, when you apply the debuff you can give it extra damage. This way it can be viable for multiple tiers - if (deepBrimstoneFlames > 0) // This is like Brimstone Flames but purple and it can't be resisted // + if (demonFlames > 0) // This is like Brimstone Flames but purple and it can't be resisted { - int baseDeepBrimstoneFlamesDoTValue = (int)((deepBrimstoneFlamesBonusDamage) * Math.Max(heatDamageMult, 1)); - ApplyDPSDebuff(baseDeepBrimstoneFlamesDoTValue, baseDeepBrimstoneFlamesDoTValue / 15, ref npc.lifeRegen, ref damage); + int baseDemonFlamesDoTValue = (int)((demonFlamesBonusDamage) * Math.Max(heatDamageMult, 1)); + ApplyDPSDebuff(baseDemonFlamesDoTValue, baseDemonFlamesDoTValue / 15, ref npc.lifeRegen, ref damage); } // Holy Flames @@ -5622,10 +5622,10 @@ namespace CalamityMod.NPCs irradiated--; if (bFlames > 0) bFlames--; - if (deepBrimstoneFlames > 0) - deepBrimstoneFlames--; + if (demonFlames > 0) + demonFlames--; else - deepBrimstoneFlamesBonusDamage = 0; + demonFlamesBonusDamage = 0; if (hFlames > 0) hFlames--; if (pFlames > 0) @@ -7176,8 +7176,8 @@ namespace CalamityMod.NPCs if (bFlames > 0 || npc.HasBuff()) BrimstoneFlames.DrawEffects(npc, ref drawColor); - if (deepBrimstoneFlames > 0) - DeepBrimstoneFlames.DrawEffects(npc, ref drawColor); + if (demonFlames > 0) + DemonFlames.DrawEffects(npc, ref drawColor); if (bBlood > 0) BurningBlood.DrawEffects(npc, ref drawColor); @@ -7398,7 +7398,7 @@ namespace CalamityMod.NPCs ("CalamityMod/Buffs/DamageOverTime/BanishingFire", NPC => NPC.Calamity().banishingFire > 0), ("CalamityMod/Buffs/DamageOverTime/BrainRot", NPC => NPC.Calamity().brainRot > 0), ("CalamityMod/Buffs/DamageOverTime/BrimstoneFlames", NPC => NPC.Calamity().bFlames > 0), - ("CalamityMod/Buffs/DamageOverTime/DeepBrimstoneFlames", NPC => NPC.Calamity().deepBrimstoneFlames > 0), + ("CalamityMod/Buffs/DamageOverTime/DemonFlames", NPC => NPC.Calamity().demonFlames > 0), ("CalamityMod/Buffs/DamageOverTime/BurningBlood", NPC => NPC.Calamity().bBlood > 0), ("CalamityMod/Buffs/DamageOverTime/CrushDepth", NPC => NPC.Calamity().cDepth > 0), ("CalamityMod/Buffs/DamageOverTime/Dragonfire", NPC => NPC.Calamity().dragonFire > 0), diff --git a/Projectiles/Melee/DevilsDevastationHoldout.cs b/Projectiles/Melee/DevilsDevastationHoldout.cs index a0765e3b06..5f9e26c62f 100644 --- a/Projectiles/Melee/DevilsDevastationHoldout.cs +++ b/Projectiles/Melee/DevilsDevastationHoldout.cs @@ -99,10 +99,10 @@ namespace CalamityMod.Projectiles.Melee SoundEngine.PlaySound(dieSound with { Volume = 0.9f, Pitch = 0.3f }, lastHitTarget.Center); int bonusDamage = 4500; - if (lastHitTarget.Calamity().deepBrimstoneFlamesBonusDamage <= bonusDamage) + if (lastHitTarget.Calamity().demonFlamesBonusDamage <= bonusDamage) { - lastHitTarget.Calamity().deepBrimstoneFlamesBonusDamage = bonusDamage; - lastHitTarget.AddBuff(ModContent.BuffType(), 210); + lastHitTarget.Calamity().demonFlamesBonusDamage = bonusDamage; + lastHitTarget.AddBuff(ModContent.BuffType(), 210); } } } @@ -302,10 +302,10 @@ namespace CalamityMod.Projectiles.Melee bool hasKillMode = Owner.Calamity().cooldowns.TryGetValue(KillMode.ID, out CooldownInstance killModeCD); int bonusDamage = 4500; - if (target.Calamity().deepBrimstoneFlamesBonusDamage <= bonusDamage) + if (target.Calamity().demonFlamesBonusDamage <= bonusDamage) { - target.Calamity().deepBrimstoneFlamesBonusDamage = bonusDamage; - target.AddBuff(ModContent.BuffType(), 180); + target.Calamity().demonFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 180); } Vector2 launchVel = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld); diff --git a/Projectiles/Melee/DevilsDevastationThrownBlade.cs b/Projectiles/Melee/DevilsDevastationThrownBlade.cs index 2555e5334a..be4a3f6b54 100644 --- a/Projectiles/Melee/DevilsDevastationThrownBlade.cs +++ b/Projectiles/Melee/DevilsDevastationThrownBlade.cs @@ -249,10 +249,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { int bonusDamage = 1000; - if (target.Calamity().deepBrimstoneFlamesBonusDamage <= bonusDamage) + if (target.Calamity().demonFlamesBonusDamage <= bonusDamage) { - target.Calamity().deepBrimstoneFlamesBonusDamage = bonusDamage; - target.AddBuff(ModContent.BuffType(), 120); + target.Calamity().demonFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 120); } if (!exitedTarget) diff --git a/Projectiles/Melee/ExaltedOathbladeHoldout.cs b/Projectiles/Melee/ExaltedOathbladeHoldout.cs index 0d5037a698..209fb5f829 100644 --- a/Projectiles/Melee/ExaltedOathbladeHoldout.cs +++ b/Projectiles/Melee/ExaltedOathbladeHoldout.cs @@ -239,10 +239,10 @@ namespace CalamityMod.Projectiles.Melee bool hasKillMode = Owner.Calamity().cooldowns.TryGetValue(KillMode.ID, out CooldownInstance killModeCD); int bonusDamage = 300; - if (target.Calamity().deepBrimstoneFlamesBonusDamage <= bonusDamage) + if (target.Calamity().demonFlamesBonusDamage <= bonusDamage) { - target.Calamity().deepBrimstoneFlamesBonusDamage = bonusDamage; - target.AddBuff(ModContent.BuffType(), 180); + target.Calamity().demonFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 180); } Vector2 launchVel = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld); diff --git a/Projectiles/Melee/ExaltedOathbladeThrownBlade.cs b/Projectiles/Melee/ExaltedOathbladeThrownBlade.cs index 46a499f96b..4dfa88418e 100644 --- a/Projectiles/Melee/ExaltedOathbladeThrownBlade.cs +++ b/Projectiles/Melee/ExaltedOathbladeThrownBlade.cs @@ -225,10 +225,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { int bonusDamage = 120; - if (target.Calamity().deepBrimstoneFlamesBonusDamage <= bonusDamage) + if (target.Calamity().demonFlamesBonusDamage <= bonusDamage) { - target.Calamity().deepBrimstoneFlamesBonusDamage = bonusDamage; - target.AddBuff(ModContent.BuffType(), 120); + target.Calamity().demonFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 120); } if (!exitedTarget) diff --git a/Projectiles/Melee/ForbiddenOathbladeHoldout.cs b/Projectiles/Melee/ForbiddenOathbladeHoldout.cs index f3a80991dd..d5e26dcb97 100644 --- a/Projectiles/Melee/ForbiddenOathbladeHoldout.cs +++ b/Projectiles/Melee/ForbiddenOathbladeHoldout.cs @@ -237,10 +237,10 @@ namespace CalamityMod.Projectiles.Melee bool hasKillMode = Owner.Calamity().cooldowns.TryGetValue(KillMode.ID, out CooldownInstance killModeCD); int bonusDamage = 120; - if (target.Calamity().deepBrimstoneFlamesBonusDamage <= bonusDamage) + if (target.Calamity().demonFlamesBonusDamage <= bonusDamage) { - target.Calamity().deepBrimstoneFlamesBonusDamage = bonusDamage; - target.AddBuff(ModContent.BuffType(), 180); + target.Calamity().demonFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 180); } Vector2 launchVel = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld); diff --git a/Projectiles/Melee/ForbiddenOathbladeThrownBlade.cs b/Projectiles/Melee/ForbiddenOathbladeThrownBlade.cs index 823d858897..043d7ca1f1 100644 --- a/Projectiles/Melee/ForbiddenOathbladeThrownBlade.cs +++ b/Projectiles/Melee/ForbiddenOathbladeThrownBlade.cs @@ -227,10 +227,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { int bonusDamage = 60; - if (target.Calamity().deepBrimstoneFlamesBonusDamage <= bonusDamage) + if (target.Calamity().demonFlamesBonusDamage <= bonusDamage) { - target.Calamity().deepBrimstoneFlamesBonusDamage = bonusDamage; - target.AddBuff(ModContent.BuffType(), 120); + target.Calamity().demonFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 120); } if (!exitedTarget)