From 3d5847e9f1b7c7a32f9bfa4e4a58bb9e80d4e6ca Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Nov 2022 17:50:41 +0700 Subject: [PATCH] DoG drops now inflict God Slayer Inferno --- Projectiles/Magic/DeathhailBeam.cs | 6 +++--- Projectiles/Melee/ExcelsusBlue.cs | 5 +++-- Projectiles/Melee/ExcelsusMain.cs | 6 +++--- Projectiles/Melee/ExcelsusPink.cs | 5 +++-- Projectiles/Melee/NebulaShot.cs | 4 ++-- Projectiles/Melee/Yoyos/ObliteratorYoyo.cs | 6 +++--- Projectiles/Ranged/DWArrow.cs | 6 +++--- Projectiles/Rogue/EradicatorProjectile.cs | 9 ++++----- 8 files changed, 24 insertions(+), 23 deletions(-) diff --git a/Projectiles/Magic/DeathhailBeam.cs b/Projectiles/Magic/DeathhailBeam.cs index b5a9256593..a0a8f2484c 100644 --- a/Projectiles/Magic/DeathhailBeam.cs +++ b/Projectiles/Magic/DeathhailBeam.cs @@ -1,4 +1,5 @@ -using CalamityMod.Projectiles.BaseProjectiles; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using ReLogic.Content; @@ -57,8 +58,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(BuffID.OnFire, 180); - target.AddBuff(BuffID.Frostburn, 90); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/ExcelsusBlue.cs b/Projectiles/Melee/ExcelsusBlue.cs index 493e49eee8..7b56217840 100644 --- a/Projectiles/Melee/ExcelsusBlue.cs +++ b/Projectiles/Melee/ExcelsusBlue.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -96,7 +97,7 @@ namespace CalamityMod.Projectiles.Melee { Projectile.timeLeft = 85; } - target.AddBuff(BuffID.Frostburn, 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/ExcelsusMain.cs b/Projectiles/Melee/ExcelsusMain.cs index 31dfab5928..8b1facc51c 100644 --- a/Projectiles/Melee/ExcelsusMain.cs +++ b/Projectiles/Melee/ExcelsusMain.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -96,8 +97,7 @@ namespace CalamityMod.Projectiles.Melee { Projectile.timeLeft = 85; } - target.AddBuff(BuffID.OnFire, 180); - target.AddBuff(BuffID.Frostburn, 90); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/ExcelsusPink.cs b/Projectiles/Melee/ExcelsusPink.cs index 5c6f0903f5..ba94fe9e88 100644 --- a/Projectiles/Melee/ExcelsusPink.cs +++ b/Projectiles/Melee/ExcelsusPink.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -96,7 +97,7 @@ namespace CalamityMod.Projectiles.Melee { Projectile.timeLeft = 85; } - target.AddBuff(BuffID.OnFire, 240); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/NebulaShot.cs b/Projectiles/Melee/NebulaShot.cs index f5e7cbf656..84104e2b55 100644 --- a/Projectiles/Melee/NebulaShot.cs +++ b/Projectiles/Melee/NebulaShot.cs @@ -1,3 +1,4 @@ +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -58,8 +59,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(BuffID.OnFire, 180); - target.AddBuff(BuffID.Frostburn, 90); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/Yoyos/ObliteratorYoyo.cs b/Projectiles/Melee/Yoyos/ObliteratorYoyo.cs index 2c70926bef..4320c534ac 100644 --- a/Projectiles/Melee/Yoyos/ObliteratorYoyo.cs +++ b/Projectiles/Melee/Yoyos/ObliteratorYoyo.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.Collections.Generic; using Terraria; @@ -124,8 +125,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(BuffID.OnFire, 180); - target.AddBuff(BuffID.Frostburn, 90); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Ranged/DWArrow.cs b/Projectiles/Ranged/DWArrow.cs index ddffcd1d96..4db4f34373 100644 --- a/Projectiles/Ranged/DWArrow.cs +++ b/Projectiles/Ranged/DWArrow.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -54,8 +55,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(BuffID.OnFire, 180); - target.AddBuff(BuffID.Frostburn, 90); + target.AddBuff(ModContent.BuffType(), 180); } public override bool PreDraw(ref Color lightColor) { diff --git a/Projectiles/Rogue/EradicatorProjectile.cs b/Projectiles/Rogue/EradicatorProjectile.cs index 3465b31cb8..9e52a6f4dc 100644 --- a/Projectiles/Rogue/EradicatorProjectile.cs +++ b/Projectiles/Rogue/EradicatorProjectile.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -168,14 +169,12 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(BuffID.OnFire, 180); - target.AddBuff(BuffID.Frostburn, 90); + target.AddBuff(ModContent.BuffType(), 180); } public override void OnHitPvp(Player target, int damage, bool crit) { - target.AddBuff(BuffID.OnFire, 180); - target.AddBuff(BuffID.Frostburn, 90); + target.AddBuff(ModContent.BuffType(), 180); } public override void ModifyHitPvp(Player target, ref int damage, ref bool crit) => OnHit();