From 3bfce2e431497701062801d2f41a982f68b106d9 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Fri, 19 Apr 2024 12:47:09 -0400 Subject: [PATCH] Moved tile collide sound after pierce check So that projectile death from tile hit doesn't play both tile collide and projectile death sound * Also removed unused full charge sound code, because it prolly doesn't need it --- Projectiles/Ranged/BuzzkillHoldout.cs | 6 ------ Projectiles/Ranged/BuzzkillSaw.cs | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Projectiles/Ranged/BuzzkillHoldout.cs b/Projectiles/Ranged/BuzzkillHoldout.cs index bd39024f7a..cd65b320fd 100644 --- a/Projectiles/Ranged/BuzzkillHoldout.cs +++ b/Projectiles/Ranged/BuzzkillHoldout.cs @@ -151,12 +151,6 @@ namespace CalamityMod.Projectiles.Ranged if (Time > 30f && Projectile.frame == 0) Projectile.frame = 1; - - if (Time == ChargeupTime - 1) - { - // Insert full charge sound - //Main.NewText("Insert full-charge sound maybe?"); - } } else { diff --git a/Projectiles/Ranged/BuzzkillSaw.cs b/Projectiles/Ranged/BuzzkillSaw.cs index 8cb60d7e8b..9045451621 100644 --- a/Projectiles/Ranged/BuzzkillSaw.cs +++ b/Projectiles/Ranged/BuzzkillSaw.cs @@ -53,8 +53,6 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { - SoundEngine.PlaySound(Main.zenithWorld ? TileCollideGFB : SoundID.Item178, Projectile.Center); // Placeholder sound? Could fit - for (int s = 0; s < 7; s++) { Vector2 sparkVelocity = new Vector2(); @@ -81,6 +79,8 @@ namespace CalamityMod.Projectiles.Ranged } else { + SoundEngine.PlaySound(Main.zenithWorld ? TileCollideGFB : SoundID.Item178, Projectile.Center); // Placeholder sound + if (Projectile.velocity.X != oldVelocity.X) Projectile.velocity.X = -oldVelocity.X; if (Projectile.velocity.Y != oldVelocity.Y)