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
This commit is contained in:
1 parent
1bf261f571
commit
fca0e891bf
15 files changed
+48
-49
No files matched your search
@@ -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--;
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.2 KiB |
@@ -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;
|
||||
/// <summary> Plague debuff. </summary>
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
+14
-14
@@ -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;
|
||||
/// <summary> Plague debuff. </summary>
|
||||
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<Enraged>())
|
||||
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),
|
||||
|
||||
@@ -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<DeepBrimstoneFlames>(), 210);
|
||||
lastHitTarget.Calamity().demonFlamesBonusDamage = bonusDamage;
|
||||
lastHitTarget.AddBuff(ModContent.BuffType<DemonFlames>(), 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<DeepBrimstoneFlames>(), 180);
|
||||
target.Calamity().demonFlamesBonusDamage = bonusDamage;
|
||||
target.AddBuff(ModContent.BuffType<DemonFlames>(), 180);
|
||||
}
|
||||
|
||||
Vector2 launchVel = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld);
|
||||
|
||||
@@ -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<DeepBrimstoneFlames>(), 120);
|
||||
target.Calamity().demonFlamesBonusDamage = bonusDamage;
|
||||
target.AddBuff(ModContent.BuffType<DemonFlames>(), 120);
|
||||
}
|
||||
|
||||
if (!exitedTarget)
|
||||
|
||||
@@ -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<DeepBrimstoneFlames>(), 180);
|
||||
target.Calamity().demonFlamesBonusDamage = bonusDamage;
|
||||
target.AddBuff(ModContent.BuffType<DemonFlames>(), 180);
|
||||
}
|
||||
|
||||
Vector2 launchVel = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld);
|
||||
|
||||
@@ -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<DeepBrimstoneFlames>(), 120);
|
||||
target.Calamity().demonFlamesBonusDamage = bonusDamage;
|
||||
target.AddBuff(ModContent.BuffType<DemonFlames>(), 120);
|
||||
}
|
||||
|
||||
if (!exitedTarget)
|
||||
|
||||
@@ -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<DeepBrimstoneFlames>(), 180);
|
||||
target.Calamity().demonFlamesBonusDamage = bonusDamage;
|
||||
target.AddBuff(ModContent.BuffType<DemonFlames>(), 180);
|
||||
}
|
||||
|
||||
Vector2 launchVel = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld);
|
||||
|
||||
@@ -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<DeepBrimstoneFlames>(), 120);
|
||||
target.Calamity().demonFlamesBonusDamage = bonusDamage;
|
||||
target.AddBuff(ModContent.BuffType<DemonFlames>(), 120);
|
||||
}
|
||||
|
||||
if (!exitedTarget)
|
||||
|
||||
Reference in new issue
Block a user