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
This commit is contained in:
1 parent
a4e96eabf4
commit
3bfce2e431
2 files changed
+2
-8
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user