diff --git a/NPCs/NormalNPCs/Piggy.cs b/NPCs/NormalNPCs/Piggy.cs index 4aa99f4678..db8bafda5e 100644 --- a/NPCs/NormalNPCs/Piggy.cs +++ b/NPCs/NormalNPCs/Piggy.cs @@ -169,7 +169,6 @@ namespace CalamityMod.NPCs.NormalNPCs } NPC.StepUpBlocks(); - SquashVector = Vector2.Lerp(SquashVector, Vector2.One, 0.125f); Timer++; } @@ -246,6 +245,8 @@ namespace CalamityMod.NPCs.NormalNPCs SoundEngine.PlaySound(DivineSwine_CoinFailSound, NPC.Center); if (SoundEngine.TryGetActiveSound(NearbySoundSlot, out var activeSound)) activeSound.Stop(); + if (NearbySoundSlot.IsValid) + NearbySoundSlot = SlotId.Invalid; NPC.Transform(ModContent.NPCType()); } @@ -284,6 +285,8 @@ namespace CalamityMod.NPCs.NormalNPCs SoundEngine.PlaySound(HorribleHog_CackleSound, NPC.Center); if (SoundEngine.TryGetActiveSound(NearbySoundSlot, out var activeSound)) activeSound.Stop(); + if (NearbySoundSlot.IsValid) + NearbySoundSlot = SlotId.Invalid; NPC.Transform(ModContent.NPCType()); }