diff --git a/Items/SummonItems/RuneofKos.cs b/Items/SummonItems/RuneofKos.cs index b99557dbfc..586961a830 100644 --- a/Items/SummonItems/RuneofKos.cs +++ b/Items/SummonItems/RuneofKos.cs @@ -16,6 +16,9 @@ namespace CalamityMod.Items.SummonItems [LegacyName("RuneofCos")] public class RuneofKos : ModItem { + public static readonly SoundStyle CVSound = new("CalamityMod/Sounds/Item/CeaselessVoidSpawn"); + public static readonly SoundStyle SignutSound = new("CalamityMod/Sounds/Item/SignusSpawn"); + public static readonly SoundStyle StormSound = new("CalamityMod/Sounds/Item/StormWeaverSpawn"); public override void SetStaticDefaults() { SacrificeTotal = 1; @@ -34,7 +37,7 @@ namespace CalamityMod.Items.SummonItems Item.useAnimation = 10; Item.useTime = 10; Item.useStyle = ItemUseStyleID.HoldUp; - Item.UseSound = SoundID.Item44; + Item.UseSound = null; Item.consumable = false; Item.rare = ModContent.RarityType(); } @@ -52,9 +55,9 @@ namespace CalamityMod.Items.SummonItems public override bool? UseItem(Player player) { - SoundEngine.PlaySound(SoundID.Roar, player.position); if (player.ZoneDungeon) { + SoundEngine.PlaySound(CVSound, player.position); if (Main.netMode != NetmodeID.MultiplayerClient) NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); else @@ -62,6 +65,7 @@ namespace CalamityMod.Items.SummonItems } else if (player.ZoneUnderworldHeight) { + SoundEngine.PlaySound(SignutSound, player.position); if (Main.netMode != NetmodeID.MultiplayerClient) NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); else @@ -69,6 +73,7 @@ namespace CalamityMod.Items.SummonItems } else if (player.ZoneSkyHeight) { + SoundEngine.PlaySound(StormSound, player.position); if (Main.netMode != NetmodeID.MultiplayerClient) NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); else diff --git a/NPCs/ExoMechs/Draedon.cs b/NPCs/ExoMechs/Draedon.cs index a3434fbec1..77623b3823 100644 --- a/NPCs/ExoMechs/Draedon.cs +++ b/NPCs/ExoMechs/Draedon.cs @@ -71,6 +71,7 @@ namespace CalamityMod.NPCs.ExoMechs public static readonly SoundStyle LaughSound = new("CalamityMod/Sounds/Custom/DraedonLaugh"); public static readonly SoundStyle TeleportSound = new("CalamityMod/Sounds/Custom/DraedonTeleport"); + public static readonly SoundStyle SelectionSound = new("CalamityMod/Sounds/Custom/Codebreaker/ExoMechsIconSelect"); public override void SetStaticDefaults() { @@ -276,6 +277,7 @@ namespace CalamityMod.NPCs.ExoMechs if (Main.netMode != NetmodeID.Server) { SoundEngine.PlaySound(CommonCalamitySounds.FlareSound with { Volume = CommonCalamitySounds.FlareSound.Volume * 1.55f}, PlayerToFollow.Center); + SoundEngine.PlaySound(SelectionSound, PlayerToFollow.Center); } } diff --git a/Sounds/Item/CeaselessVoidSpawn.ogg b/Sounds/Item/CeaselessVoidSpawn.ogg new file mode 100644 index 0000000000..e98f810026 Binary files /dev/null and b/Sounds/Item/CeaselessVoidSpawn.ogg differ diff --git a/Sounds/Item/SignusSpawn.ogg b/Sounds/Item/SignusSpawn.ogg new file mode 100644 index 0000000000..69dc3cd9d5 Binary files /dev/null and b/Sounds/Item/SignusSpawn.ogg differ diff --git a/Sounds/Item/StormWeaverSpawn.ogg b/Sounds/Item/StormWeaverSpawn.ogg new file mode 100644 index 0000000000..f5aac236d2 Binary files /dev/null and b/Sounds/Item/StormWeaverSpawn.ogg differ diff --git a/World/AstralBiome.cs b/World/AstralBiome.cs index 602a5185ce..b2774e32f9 100644 --- a/World/AstralBiome.cs +++ b/World/AstralBiome.cs @@ -10,6 +10,7 @@ using System; using System.Collections.Generic; using System.Linq; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; using Terraria.Utilities; @@ -19,6 +20,7 @@ namespace CalamityMod.World { public class AstralBiome { + public static readonly SoundStyle MeteorSound = new("CalamityMod/Sounds/Custom/AstralStarFall"); public static bool CanAstralMeteorSpawn() { int astralOreCount = 0; @@ -382,6 +384,9 @@ namespace CalamityMod.World NetMessage.SendTileSquare(-1, i, j, 40, TileChangeType.None); if (CanAstralBiomeSpawn()) { + if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) + SoundEngine.PlaySound(MeteorSound, Main.player[Main.myPlayer].position); + DoAstralConversion(new Point(i, j)); // Upward checks go up 180 tiles. If for whatever reason the placement Y position