diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 7fb2043a5a..f4f55cfaa1 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -54,6 +54,7 @@ namespace CalamityMod.NPCs.Polterghast public static readonly SoundStyle P2Sound = new("CalamityMod/Sounds/Custom/PolterghastP2Transition"); public static readonly SoundStyle P3Sound = new("CalamityMod/Sounds/Custom/PolterghastP3Transition"); public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/PolterghastSpawn"); + public static readonly SoundStyle PhantomSound = new("CalamityMod/Sounds/Custom/PolterghastPhantomSpawn"); public override void SetStaticDefaults() { @@ -972,6 +973,7 @@ namespace CalamityMod.NPCs.Polterghast if (NPC.CountNPCS(ModContent.NPCType()) < 2 && Main.netMode != NetmodeID.MultiplayerClient && !charging && !chargePhase) { + SoundEngine.PlaySound(PhantomSound, NPC.Center); int num762 = NPC.NewNPC(NPC.GetSource_FromAI(), (int)vector.X, (int)vector.Y, ModContent.NPCType()); Main.npc[num762].velocity.X = num758; Main.npc[num762].velocity.Y = num760; diff --git a/Sounds/Custom/PoltergastPhantomSpawn.ogg b/Sounds/Custom/PoltergastPhantomSpawn.ogg new file mode 100644 index 0000000000..4dfa75e09b Binary files /dev/null and b/Sounds/Custom/PoltergastPhantomSpawn.ogg differ diff --git a/Sounds/Custom/WeaponEnchant.ogg b/Sounds/Custom/WeaponEnchant.ogg new file mode 100644 index 0000000000..4394c086ae Binary files /dev/null and b/Sounds/Custom/WeaponEnchant.ogg differ diff --git a/Sounds/Custom/WeaponExhume.ogg b/Sounds/Custom/WeaponExhume.ogg new file mode 100644 index 0000000000..2ffd07ecd3 Binary files /dev/null and b/Sounds/Custom/WeaponExhume.ogg differ diff --git a/UI/CalamitasEnchantments/CalamitasEnchantUI.cs b/UI/CalamitasEnchantments/CalamitasEnchantUI.cs index 188ca92bb1..29b8f9bfdb 100644 --- a/UI/CalamitasEnchantments/CalamitasEnchantUI.cs +++ b/UI/CalamitasEnchantments/CalamitasEnchantUI.cs @@ -27,6 +27,9 @@ namespace CalamityMod.UI.CalamitasEnchants public static readonly Vector2 ReforgeUITopLeft = new Vector2(68f, 320f); public static readonly float ResolutionRatio = Main.screenHeight / 1440f; + public static readonly SoundStyle EnchSound = new("CalamityMod/Sounds/Custom/WeaponEnchant"); + public static readonly SoundStyle EXSound = new("CalamityMod/Sounds/Custom/WeaponExhume"); + public static Rectangle MouseScreenArea => Utils.CenteredRectangle(Main.MouseScreen, Vector2.One * 2f); public static bool InRangeOfNPC() @@ -402,10 +405,10 @@ namespace CalamityMod.UI.CalamitasEnchants // Reset the enchantment index to prevent index problems on a different item. EnchantIndex = 0; - SoundEngine.PlaySound(SoundID.DD2_BetsyFlameBreath, Main.LocalPlayer.Center); - if (SelectedEnchantment.Value.Name == EnchantmentManager.UpgradeEnchantName) - SoundEngine.PlaySound(SoundID.DD2_DarkMageHealImpact, Main.LocalPlayer.Center); + SoundEngine.PlaySound(EXSound, Main.LocalPlayer.Center); + else + SoundEngine.PlaySound(EnchSound, Main.LocalPlayer.Center); } } }