sparks spawn before velocity gets cut to bits
bc the velocity applied to sparks was cut as well
This commit is contained in:
1 parent
8a1e75e7f7
commit
d57b7b080c
1 file changed
+17
-17
@@ -258,23 +258,6 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
target.AddBuff(ModContent.BuffType<ElementalMix>(), 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)
|
||||
|
||||
Reference in new issue
Block a user