From 8dcf33df7e1422ef11a8252bb71bc7f0ac07c6b5 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 17 Dec 2022 21:00:28 -0500 Subject: [PATCH] Gruesome Eminence self damage scales with its power as it grows --- Projectiles/Magic/SpiritCongregation.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Projectiles/Magic/SpiritCongregation.cs b/Projectiles/Magic/SpiritCongregation.cs index 9b63a826a0..dc9d940084 100644 --- a/Projectiles/Magic/SpiritCongregation.cs +++ b/Projectiles/Magic/SpiritCongregation.cs @@ -291,11 +291,16 @@ namespace CalamityMod.Projectiles.Magic } // TODO -- this damage should be after Terraria vanilla multipliers, so it won't one shot people + // Damage scales up over time as it grows public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit) { - if (Main.masterMode) damage = 540; - else if (Main.expertMode) damage = 450; - else damage = 360; + float damageFactor = 0.25f + 0.75f * CurrentPower; + int fullPowerDamage; + if (Main.masterMode) fullPowerDamage = 540; + else if (Main.expertMode) fullPowerDamage = 450; + else fullPowerDamage = 360; + + damage = (int)(damageFactor * fullPowerDamage); } public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)