1 - Apollo sounds.

This commit is contained in:
Andrew Marheine committed 2021-09-24 13:49:43 -05:00
1 parent 67158d6a97
commit 790f9fcdca
1 file changed
+2 -1
+2 -1
View File
@@ -777,7 +777,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
{
int type = ModContent.ProjectileType<ApolloRocket>();
int damage = npc.GetProjectileDamage(type);
Main.PlaySound(SoundID.Item61, npc.Center);
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/BazookaFull"), npc.Center);
Vector2 rocketVelocity = Vector2.Normalize(aimedVector) * projectileVelocity;
Vector2 offset = Vector2.Normalize(rocketVelocity) * 70f;
Projectile.NewProjectile(npc.Center + offset, rocketVelocity, type, damage, 0f, Main.myPlayer, 0f, player.Center.Y);
@@ -882,6 +882,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
// Set charge velocity
if (npc.localAI[2] == 0f)
{
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/ELRFire"), npc.Center);
npc.velocity = Vector2.Normalize(chargeLocations[(int)calamityGlobalNPC.newAI[2] + 1] - chargeLocations[(int)calamityGlobalNPC.newAI[2]]) * chargeVelocity;
npc.localAI[2] = 1f;
npc.netUpdate = true;