From cc6ea103ee30a22697fa1036e3fd167da875ea60 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 31 Jan 2023 08:52:45 -0600 Subject: [PATCH] Split Holy Fire projectiles rotate with their X velocity. --- Projectiles/Boss/HolyFire2.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Projectiles/Boss/HolyFire2.cs b/Projectiles/Boss/HolyFire2.cs index bc2a450602..71a0cdb38c 100644 --- a/Projectiles/Boss/HolyFire2.cs +++ b/Projectiles/Boss/HolyFire2.cs @@ -52,18 +52,16 @@ namespace CalamityMod.Projectiles.Boss Projectile.frameCounter = 0; } if (Projectile.frame > 3) - { Projectile.frame = 0; - } + if (Math.Abs(Projectile.velocity.X) < 7f) - { Projectile.velocity.X *= 1.05f; - } + int num103 = Player.FindClosest(Projectile.Center, 1, 1); + if (Projectile.ai[1] == 0f) - { Projectile.damage = Projectile.GetProjectileDamage(ModContent.NPCType()); - } + Projectile.ai[1] += 1f; if (Projectile.ai[1] < 180f && Projectile.ai[1] > 60f) { @@ -76,6 +74,8 @@ namespace CalamityMod.Projectiles.Boss Projectile.velocity.Normalize(); Projectile.velocity *= scaleFactor2; } + + Projectile.rotation = Projectile.velocity.X * 0.025f; } public override Color? GetAlpha(Color lightColor)