From d57b7b080c58c1880ed2bbf06dc2cd77acd53194 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Tue, 28 May 2024 03:13:20 +0700 Subject: [PATCH] sparks spawn before velocity gets cut to bits bc the velocity applied to sparks was cut as well --- Projectiles/Ranged/SuperradiantSaw.cs | 34 +++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Projectiles/Ranged/SuperradiantSaw.cs b/Projectiles/Ranged/SuperradiantSaw.cs index 18ec46cb66..4c35bf3ba4 100644 --- a/Projectiles/Ranged/SuperradiantSaw.cs +++ b/Projectiles/Ranged/SuperradiantSaw.cs @@ -258,23 +258,6 @@ namespace CalamityMod.Projectiles.Ranged target.AddBuff(ModContent.BuffType(), 90); SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/SwiftSlice") with { Pitch = 0.1f * Projectile.numHits }, Projectile.Center); - // Hitstop effect if the saw is not returning - if (!Returning && HitstopTimer == 0) - { - HitstopTimer = 5; - Projectile.velocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) / SuperradiantSlaughterer.ShootSpeed; - } - - if (Projectile.numHits < 1) - ReturnTimer = 1; - - if (PierceBeforeReturn > 0) - { - PierceBeforeReturn--; - if (PierceBeforeReturn <= 0) - Returning = true; - } - // SUPER COLORFUL PARTICLE EFFECTS YEAH int onHitSparkAmount = 7 + 10 * (int)SawLevel; for (int s = 0; s < onHitSparkAmount; s++) @@ -295,6 +278,23 @@ namespace CalamityMod.Projectiles.Ranged Particle squared = new SquareParticle(target.Center, squareVel, true, 30, squareSize, squareColor); GeneralParticleHandler.SpawnParticle(squared); } + + // Hitstop effect if the saw is not returning + if (!Returning && HitstopTimer == 0) + { + HitstopTimer = 5; + Projectile.velocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) / SuperradiantSlaughterer.ShootSpeed; + } + + if (Projectile.numHits < 1) + ReturnTimer = 1; + + if (PierceBeforeReturn > 0) + { + PierceBeforeReturn--; + if (PierceBeforeReturn <= 0) + Returning = true; + } } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)