From 65fcd5ba2d4e4b95e803ecee1a3fe19acefbdb6e Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Tue, 24 May 2022 06:03:21 +0200 Subject: [PATCH] custom UseSounds fixed --- CalPlayer/CalamityPlayer.cs | 14 +++++++------- Items/Accessories/AngelicAlliance.cs | 2 +- Items/Armor/BloodflareHornedHelm.cs | 2 +- Items/Armor/BrimflameScowl.cs | 2 +- Items/Armor/DemonshadeHelm.cs | 2 +- Items/Armor/OmegaBlueHelmet.cs | 2 +- Items/Armor/PlagueReaperMask.cs | 2 +- Items/Armor/SilvaHelmet.cs | 4 ++-- Items/Fishing/AstralCatches/PolarisParrotfish.cs | 3 ++- Items/Pets/BearEye.cs | 3 ++- Items/Pets/CosmicPlushie.cs | 2 +- Items/Weapons/DraedonsArsenal/GatlingLaser.cs | 4 +++- Items/Weapons/DraedonsArsenal/GaussPistol.cs | 3 ++- Items/Weapons/DraedonsArsenal/GaussRifle.cs | 3 ++- Items/Weapons/DraedonsArsenal/MatterModulator.cs | 2 +- Items/Weapons/DraedonsArsenal/PulsePistol.cs | 2 +- Items/Weapons/DraedonsArsenal/PulseRifle.cs | 5 ++++- Items/Weapons/DraedonsArsenal/Taser.cs | 2 +- Items/Weapons/DraedonsArsenal/TeslaCannon.cs | 2 +- Items/Weapons/Magic/EidolicWail.cs | 3 ++- Items/Weapons/Magic/IceBarrage.cs | 4 +++- Items/Weapons/Magic/PlasmaRifle.cs | 6 +++--- Items/Weapons/Magic/PurgeGuzzler.cs | 4 +++- Items/Weapons/Magic/SHPC.cs | 3 ++- Items/Weapons/Magic/Thunderstorm.cs | 4 +++- Items/Weapons/Melee/DragonPow.cs | 3 ++- Items/Weapons/Melee/PrismaticBreaker.cs | 3 ++- Items/Weapons/Ranged/AMR.cs | 3 ++- Items/Weapons/Ranged/Auralis.cs | 3 ++- Items/Weapons/Ranged/ChargedDartRifle.cs | 3 ++- Items/Weapons/Ranged/ClamorRifle.cs | 2 +- Items/Weapons/Ranged/ElementalBlaster.cs | 2 +- Items/Weapons/Ranged/FlakKraken.cs | 3 ++- Items/Weapons/Ranged/Karasawa.cs | 5 ++++- Items/Weapons/Ranged/MagnaStriker.cs | 2 +- Items/Weapons/Ranged/OpalStriker.cs | 5 ++++- Items/Weapons/Ranged/ScorchedEarth.cs | 2 +- Items/Weapons/Ranged/TyrannysEnd.cs | 3 ++- Items/Weapons/Summon/PrototypeAndromechaRing.cs | 2 +- Items/Weapons/Summon/SlimePuppetStaff.cs | 3 ++- Items/Weapons/Typeless/AethersWhisper.cs | 3 ++- Items/Weapons/Typeless/EyeofMagnus.cs | 3 ++- Items/Weapons/Typeless/FiniteUse/Bazooka.cs | 5 ++++- Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs | 2 +- Items/Weapons/Typeless/FiniteUse/Hydra.cs | 5 ++++- Items/Weapons/Typeless/FiniteUse/LightningHawk.cs | 2 +- Items/Weapons/Typeless/FiniteUse/Magnum.cs | 5 ++++- Items/Weapons/Typeless/LunicEye.cs | 3 ++- Items/Weapons/Typeless/YanmeisKnife.cs | 2 +- NPCs/Abyss/DevilFish.cs | 2 +- NPCs/Astral/Atlas.cs | 12 ++++++------ NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs | 6 +++--- NPCs/DevourerofGods/DevourerofGodsHead.cs | 4 ++-- NPCs/Providence/Providence.cs | 10 +++++----- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 12 ++++++------ Projectiles/Boss/DeusRitualDrama.cs | 2 +- Projectiles/Boss/HolyBlast.cs | 2 +- Sounds/CommonCalamitySounds.cs | 6 +++++- Tiles/Astral/AstralBeacon.cs | 2 +- UI/CodebreakerUI.cs | 2 +- 60 files changed, 133 insertions(+), 86 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 4bc094522d..092794a69b 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -232,15 +232,15 @@ namespace CalamityMod.CalPlayer public bool playFullRageSound = true; public bool playFullAdrenalineSound = true; - public static readonly SoundStyle RageFilledSound = new("Sounds/Custom/AbilitySounds/FullRage"); - public static readonly SoundStyle RageActivationSound = new("Sounds/Custom/AbilitySounds/RageActivate"); - public static readonly SoundStyle RageEndSound = new("Sounds/Custom/AbilitySounds/RageEnd"); + public static readonly SoundStyle RageFilledSound = new("CalamityMod/Sounds/Custom/AbilitySounds/FullRage"); + public static readonly SoundStyle RageActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/RageActivate"); + public static readonly SoundStyle RageEndSound = new("CalamityMod/Sounds/Custom/AbilitySounds/RageEnd"); - public static readonly SoundStyle AdrenalineFilledSound = new("Sounds/Custom/AbilitySounds/FullAdrenaline"); - public static readonly SoundStyle AdrenalineActivationSound = new("Sounds/Custom/AbilitySounds/AdrenalineActivate"); + public static readonly SoundStyle AdrenalineFilledSound = new("CalamityMod/Sounds/Custom/AbilitySounds/FullAdrenaline"); + public static readonly SoundStyle AdrenalineActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/AdrenalineActivate"); - public static readonly SoundStyle RogueStealthSound = new("Sounds/Custom/RogueStealth"); - public static readonly SoundStyle DefenseDamageSound = new("Sounds/Custom/DefenseDamage"); + public static readonly SoundStyle RogueStealthSound = new("CalamityMod/Sounds/Custom/RogueStealth"); + public static readonly SoundStyle DefenseDamageSound = new("CalamityMod/Sounds/Custom/DefenseDamage"); #endregion diff --git a/Items/Accessories/AngelicAlliance.cs b/Items/Accessories/AngelicAlliance.cs index 5d59be8888..1bd6ddd2b0 100644 --- a/Items/Accessories/AngelicAlliance.cs +++ b/Items/Accessories/AngelicAlliance.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories //Developer item, dedicatee: Nincity public class AngelicAlliance : ModItem { - public static readonly SoundStyle ActivationSound = new("Sounds/Custom/AbilitySounds/AngelicAllianceActivation"); + public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/AngelicAllianceActivation"); public override void SetStaticDefaults() { diff --git a/Items/Armor/BloodflareHornedHelm.cs b/Items/Armor/BloodflareHornedHelm.cs index 14feb1eeab..2c28271fee 100644 --- a/Items/Armor/BloodflareHornedHelm.cs +++ b/Items/Armor/BloodflareHornedHelm.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Head)] public class BloodflareHornedHelm : ModItem { - public static readonly SoundStyle ActivationSound = new("Sounds/Custom/AbilitySounds/BloodflareRangerActivation"); + public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/BloodflareRangerActivation"); public override void SetStaticDefaults() { diff --git a/Items/Armor/BrimflameScowl.cs b/Items/Armor/BrimflameScowl.cs index e2a65ba664..9b6b31a91d 100644 --- a/Items/Armor/BrimflameScowl.cs +++ b/Items/Armor/BrimflameScowl.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Head)] public class BrimflameScowl : ModItem { - public static readonly SoundStyle ActivationSound = new("Sounds/Custom/AbilitySounds/AngelicAllianceActivation"); + public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/AngelicAllianceActivation"); private bool frenzy = false; public static int CooldownLength = 1800; diff --git a/Items/Armor/DemonshadeHelm.cs b/Items/Armor/DemonshadeHelm.cs index 482f71c7a9..07f97ee51c 100644 --- a/Items/Armor/DemonshadeHelm.cs +++ b/Items/Armor/DemonshadeHelm.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Head)] public class DemonshadeHelm : ModItem, IExtendedHat { - public static readonly SoundStyle ActivationSound = new("Sounds/Custom/AbilitySounds/DemonshadeEnrage"); + public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DemonshadeEnrage"); public override void SetStaticDefaults() { diff --git a/Items/Armor/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlueHelmet.cs index cad3f4149f..7a58f88e28 100644 --- a/Items/Armor/OmegaBlueHelmet.cs +++ b/Items/Armor/OmegaBlueHelmet.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public class OmegaBlueHelmet : ModItem { - public static readonly SoundStyle ActivationSound = new("Sounds/Custom/AbilitySounds/OmegaBlueAbility); + public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/OmegaBlueAbility); public override void Load() { diff --git a/Items/Armor/PlagueReaperMask.cs b/Items/Armor/PlagueReaperMask.cs index e7c406246c..3886c03bd3 100644 --- a/Items/Armor/PlagueReaperMask.cs +++ b/Items/Armor/PlagueReaperMask.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Head)] public class PlagueReaperMask : ModItem { - public static readonly SoundStyle ActivationSound = new("Sounds/Custom/AbilitySounds/PlagueReaperAbility"); + public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/PlagueReaperAbility"); public override void SetStaticDefaults() { diff --git a/Items/Armor/SilvaHelmet.cs b/Items/Armor/SilvaHelmet.cs index 7c11fdc72f..374d7ae451 100644 --- a/Items/Armor/SilvaHelmet.cs +++ b/Items/Armor/SilvaHelmet.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Head)] public class SilvaHelmet : ModItem { - public static readonly SoundStyle ActivationSound = new("Sounds/Custom/AbilitySounds/SilvaActivation"); - public static readonly SoundStyle DispelSound = new("Sounds/Custom/AbilitySounds/SilvaDispel"); + public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/SilvaActivation"); + public static readonly SoundStyle DispelSound = new("CalamityMod/Sounds/Custom/AbilitySounds/SilvaDispel"); public override void SetStaticDefaults() { diff --git a/Items/Fishing/AstralCatches/PolarisParrotfish.cs b/Items/Fishing/AstralCatches/PolarisParrotfish.cs index e11e8a6c6f..af3b25dc8d 100644 --- a/Items/Fishing/AstralCatches/PolarisParrotfish.cs +++ b/Items/Fishing/AstralCatches/PolarisParrotfish.cs @@ -5,6 +5,7 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Fishing.AstralCatches { @@ -33,7 +34,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches Item.knockBack = 2.25f; Item.value = CalamityGlobalItem.Rarity4BuyPrice; Item.rare = ItemRarityID.LightRed; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LaserCannon"); //pew pew + Item.UseSound = CommonCalamitySounds.LaserCannonSound; //pew pew Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Pets/BearEye.cs b/Items/Pets/BearEye.cs index fcb0b74788..6373fa66e4 100644 --- a/Items/Pets/BearEye.cs +++ b/Items/Pets/BearEye.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Pets { @@ -31,7 +32,7 @@ namespace CalamityMod.Items.Pets Item.shoot = ModContent.ProjectileType(); Item.buffType = ModContent.BuffType(); - Item.UseSound = new SoundStyle(SoundID.Meowmere, 5); + Item.UseSound = SoundID.Meowmere; } public override void UseStyle(Player player, Rectangle heldItemFrame) diff --git a/Items/Pets/CosmicPlushie.cs b/Items/Pets/CosmicPlushie.cs index 200da47893..53dbfadc73 100644 --- a/Items/Pets/CosmicPlushie.cs +++ b/Items/Pets/CosmicPlushie.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Pets Item.height = 36; Item.shoot = ModContent.ProjectileType(); Item.buffType = ModContent.BuffType(); - Item.UseSound = new SoundStyle(SoundID.Meowmere, 5); + Item.UseSound = SoundID.Meowmere; Item.value = Item.sellPrice(gold: 7); Item.Calamity().customRarity = CalamityRarity.DarkBlue; diff --git a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs index 4e90a233e6..e25f713df6 100644 --- a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs +++ b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs @@ -13,6 +13,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { public class GatlingLaser : ModItem { + public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/GatlingLaserFireStart"); + // This is the amount of charge consumed every time the holdout projectile fires a laser. public const float HoldoutChargeUse = 0.0075f; @@ -39,7 +41,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.mana = 6; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/GatlingLaserFireStart"); + Item.UseSound = UseSound; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity8BuyPrice; diff --git a/Items/Weapons/DraedonsArsenal/GaussPistol.cs b/Items/Weapons/DraedonsArsenal/GaussPistol.cs index 57cd028d29..d79a110618 100644 --- a/Items/Weapons/DraedonsArsenal/GaussPistol.cs +++ b/Items/Weapons/DraedonsArsenal/GaussPistol.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.DraedonsArsenal { @@ -32,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/GaussWeaponFire"); + Item.UseSound = CommonCalamitySounds.GaussWeaponFire; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity5BuyPrice; diff --git a/Items/Weapons/DraedonsArsenal/GaussRifle.cs b/Items/Weapons/DraedonsArsenal/GaussRifle.cs index 831f53dff0..a70bc20af7 100644 --- a/Items/Weapons/DraedonsArsenal/GaussRifle.cs +++ b/Items/Weapons/DraedonsArsenal/GaussRifle.cs @@ -8,6 +8,7 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.DraedonsArsenal { @@ -33,7 +34,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/GaussWeaponFire"); + Item.UseSound = CommonCalamitySounds.GaussWeaponFire; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity8BuyPrice; diff --git a/Items/Weapons/DraedonsArsenal/MatterModulator.cs b/Items/Weapons/DraedonsArsenal/MatterModulator.cs index 3dffe2fffc..7023cf13c7 100644 --- a/Items/Weapons/DraedonsArsenal/MatterModulator.cs +++ b/Items/Weapons/DraedonsArsenal/MatterModulator.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBolt"); + Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity5BuyPrice; diff --git a/Items/Weapons/DraedonsArsenal/PulsePistol.cs b/Items/Weapons/DraedonsArsenal/PulsePistol.cs index df08f7aeb0..1969c6e9fc 100644 --- a/Items/Weapons/DraedonsArsenal/PulsePistol.cs +++ b/Items/Weapons/DraedonsArsenal/PulsePistol.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.mana = 6; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PulseRifleFire"); + Item.UseSound = PulseRifle.FireSound; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity3BuyPrice; diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index e76744b114..63139314c2 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -9,11 +9,14 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.DraedonsArsenal { public class PulseRifle : ModItem { + public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/PulseRifleFire"); + private int BaseDamage = 1420; public override void SetStaticDefaults() @@ -37,7 +40,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PulseRifleFire"); + Item.UseSound = FireSound; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity14BuyPrice; diff --git a/Items/Weapons/DraedonsArsenal/Taser.cs b/Items/Weapons/DraedonsArsenal/Taser.cs index 66b480f7d0..f391bf4690 100644 --- a/Items/Weapons/DraedonsArsenal/Taser.cs +++ b/Items/Weapons/DraedonsArsenal/Taser.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBolt"); + Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity3BuyPrice; diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index 4ccbab3007..244027c889 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { private int BaseDamage = 1050; - public static readonly SoundStyle FireSound = new("Sounds/Item/TeslaCannonFire"); + public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/TeslaCannonFire"); public override void SetStaticDefaults() { diff --git a/Items/Weapons/Magic/EidolicWail.cs b/Items/Weapons/Magic/EidolicWail.cs index 2ce7e0613e..ed36c5c747 100644 --- a/Items/Weapons/Magic/EidolicWail.cs +++ b/Items/Weapons/Magic/EidolicWail.cs @@ -3,6 +3,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Magic { @@ -31,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.knockBack = 1f; Item.value = Item.buyPrice(1, 40, 0, 0); Item.rare = ItemRarityID.Purple; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/WyrmScream"); + Item.UseSound = CommonCalamitySounds.WyrmScreamSound; Item.autoReuse = true; Item.shootSpeed = 8f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/IceBarrage.cs b/Items/Weapons/Magic/IceBarrage.cs index 3c2d51cd7a..c4302d89f5 100644 --- a/Items/Weapons/Magic/IceBarrage.cs +++ b/Items/Weapons/Magic/IceBarrage.cs @@ -12,6 +12,8 @@ namespace CalamityMod.Items.Weapons.Magic { public class IceBarrage : ModItem { + public static readonly SoundStyle CastSound = new("CalamityMod/Sounds/Item/IceBarrageCast"); + public override void SetStaticDefaults() { DisplayName.SetDefault("Ice Barrage"); @@ -30,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.DamageType = DamageClass.Magic; Item.mana = 180; Item.noMelee = true; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/IceBarrageCast"); + Item.UseSound = CastSound; Item.value = CalamityGlobalItem.Rarity14BuyPrice; Item.Calamity().customRarity = CalamityRarity.DarkBlue; diff --git a/Items/Weapons/Magic/PlasmaRifle.cs b/Items/Weapons/Magic/PlasmaRifle.cs index 04a4922297..a94f9a4f25 100644 --- a/Items/Weapons/Magic/PlasmaRifle.cs +++ b/Items/Weapons/Magic/PlasmaRifle.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.value = CalamityGlobalItem.Rarity12BuyPrice; Item.rare = ItemRarityID.Purple; Item.Calamity().customRarity = CalamityRarity.Turquoise; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBlast"); + Item.UseSound = CommonCalamitySounds.PlasmaBlastSound; Item.autoReuse = true; Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); @@ -47,11 +47,11 @@ namespace CalamityMod.Items.Weapons.Magic { if (player.altFunctionUse == 2) { - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBolt"); + Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; } else { - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBlast"); + Item.UseSound = CommonCalamitySounds.PlasmaBlastSound; } return base.CanUseItem(player); } diff --git a/Items/Weapons/Magic/PurgeGuzzler.cs b/Items/Weapons/Magic/PurgeGuzzler.cs index 02cababdcb..c13c079c9c 100644 --- a/Items/Weapons/Magic/PurgeGuzzler.cs +++ b/Items/Weapons/Magic/PurgeGuzzler.cs @@ -5,6 +5,8 @@ using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; + namespace CalamityMod.Items.Weapons.Magic { public class PurgeGuzzler : ModItem @@ -31,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.5f; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LaserCannon"); + Item.UseSound = CommonCalamitySounds.LaserCannonSound; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; diff --git a/Items/Weapons/Magic/SHPC.cs b/Items/Weapons/Magic/SHPC.cs index 973e0affc8..6f06f91f3d 100644 --- a/Items/Weapons/Magic/SHPC.cs +++ b/Items/Weapons/Magic/SHPC.cs @@ -5,6 +5,7 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Magic { @@ -46,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Magic { if (player.altFunctionUse == 2) { - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LaserCannon"); + Item.UseSound = CommonCalamitySounds.LaserCannonSound; } else { diff --git a/Items/Weapons/Magic/Thunderstorm.cs b/Items/Weapons/Magic/Thunderstorm.cs index 5423b05489..f65ed320b9 100644 --- a/Items/Weapons/Magic/Thunderstorm.cs +++ b/Items/Weapons/Magic/Thunderstorm.cs @@ -3,6 +3,8 @@ using Microsoft.Xna.Framework; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; + namespace CalamityMod.Items.Weapons.Magic { public class Thunderstorm : ModItem @@ -29,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.value = CalamityGlobalItem.Rarity12BuyPrice; Item.rare = ItemRarityID.Purple; Item.Calamity().customRarity = CalamityRarity.Turquoise; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBlast"); + Item.UseSound = CommonCalamitySounds.PlasmaBlastSound; Item.autoReuse = true; Item.shootSpeed = 6f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/DragonPow.cs b/Items/Weapons/Melee/DragonPow.cs index de06f96b61..e4aa8ab736 100644 --- a/Items/Weapons/Melee/DragonPow.cs +++ b/Items/Weapons/Melee/DragonPow.cs @@ -3,6 +3,7 @@ using CalamityMod.Projectiles.Melee; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.NPCs.Yharon; namespace CalamityMod.Items.Weapons.Melee { @@ -38,7 +39,7 @@ Summons a barrage of petals and waterfalls on enemy hits"); Item.noUseGraphic = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/YharonRoarShort"); + Item.UseSound = Yharon.ShortRoarSound; Item.channel = true; Item.value = CalamityGlobalItem.Rarity15BuyPrice; diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index 848c6b4b1c..6830295eae 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -9,6 +9,7 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Items.Tools; namespace CalamityMod.Items.Weapons.Melee { @@ -103,7 +104,7 @@ namespace CalamityMod.Items.Weapons.Melee } else { - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/CrystylCharge"); + Item.UseSound = CrystylCrusher.ChargeSound; Item.useStyle = ItemUseStyleID.Shoot; Item.useTurn = false; Item.autoReuse = false; diff --git a/Items/Weapons/Ranged/AMR.cs b/Items/Weapons/Ranged/AMR.cs index d63fce23c5..e3445208a7 100644 --- a/Items/Weapons/Ranged/AMR.cs +++ b/Items/Weapons/Ranged/AMR.cs @@ -7,6 +7,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Ranged { @@ -33,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.knockBack = 9.5f; Item.value = Item.buyPrice(1, 80, 0, 0); Item.rare = ItemRarityID.Red; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LargeWeaponFire"); + Item.UseSound = CommonCalamitySounds.LargeWeaponFireSound; Item.autoReuse = true; Item.shoot = ProjectileID.Bullet; Item.shootSpeed = 12f; diff --git a/Items/Weapons/Ranged/Auralis.cs b/Items/Weapons/Ranged/Auralis.cs index 84022d40a8..f6766c3e39 100644 --- a/Items/Weapons/Ranged/Auralis.cs +++ b/Items/Weapons/Ranged/Auralis.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Ranged { @@ -44,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.height = 34; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBlast"); + Item.UseSound = CommonCalamitySounds.PlasmaBlastSound; Item.value = CalamityGlobalItem.Rarity12BuyPrice; Item.Calamity().customRarity = CalamityRarity.Turquoise; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Ranged/ChargedDartRifle.cs b/Items/Weapons/Ranged/ChargedDartRifle.cs index 8a3061c64f..c51df9f3b1 100644 --- a/Items/Weapons/Ranged/ChargedDartRifle.cs +++ b/Items/Weapons/Ranged/ChargedDartRifle.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Ranged { @@ -31,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.knockBack = 7f; Item.value = CalamityGlobalItem.Rarity10BuyPrice; Item.rare = ItemRarityID.Red; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LaserCannon"); + Item.UseSound = CommonCalamitySounds.LaserCannonSound; Item.autoReuse = true; Item.shootSpeed = 22f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/ClamorRifle.cs b/Items/Weapons/Ranged/ClamorRifle.cs index 46678eaa97..7eea7b8069 100644 --- a/Items/Weapons/Ranged/ClamorRifle.cs +++ b/Items/Weapons/Ranged/ClamorRifle.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 2.5f; Item.value = Item.buyPrice(0, 36, 0, 0); - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBolt"); + Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; Item.autoReuse = true; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/ElementalBlaster.cs b/Items/Weapons/Ranged/ElementalBlaster.cs index 9042575fce..46c0fbaa4c 100644 --- a/Items/Weapons/Ranged/ElementalBlaster.cs +++ b/Items/Weapons/Ranged/ElementalBlaster.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.knockBack = 1.75f; Item.value = CalamityGlobalItem.Rarity11BuyPrice; Item.rare = ItemRarityID.Purple; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/PlasmaBolt"); + Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 18f; diff --git a/Items/Weapons/Ranged/FlakKraken.cs b/Items/Weapons/Ranged/FlakKraken.cs index 6ce8cddc58..04bcbae7c8 100644 --- a/Items/Weapons/Ranged/FlakKraken.cs +++ b/Items/Weapons/Ranged/FlakKraken.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Ranged { @@ -34,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.knockBack = 0f; Item.value = Item.buyPrice(0, 60, 0, 0); Item.rare = ItemRarityID.Lime; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LaserCannon"); + Item.UseSound = CommonCalamitySounds.LaserCannonSound; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 30f; //30 } diff --git a/Items/Weapons/Ranged/Karasawa.cs b/Items/Weapons/Ranged/Karasawa.cs index ecb403c004..046c9d6774 100644 --- a/Items/Weapons/Ranged/Karasawa.cs +++ b/Items/Weapons/Ranged/Karasawa.cs @@ -6,11 +6,14 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Ranged { public class Karasawa : ModItem { + public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/MechGaussRifle"); + public override void SetStaticDefaults() { DisplayName.SetDefault("Karasawa"); @@ -30,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/MechGaussRifle"); + Item.UseSound = FireSound; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity14BuyPrice; diff --git a/Items/Weapons/Ranged/MagnaStriker.cs b/Items/Weapons/Ranged/MagnaStriker.cs index 26410ea3ff..8a1a78fe61 100644 --- a/Items/Weapons/Ranged/MagnaStriker.cs +++ b/Items/Weapons/Ranged/MagnaStriker.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.knockBack = 2.25f; Item.value = Item.buyPrice(0, 80, 0, 0); Item.rare = ItemRarityID.Yellow; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/OpalStrike"); + Item.UseSound = OpalStriker.FireSound; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Ranged/OpalStriker.cs b/Items/Weapons/Ranged/OpalStriker.cs index 900ec574fe..b85a2d788f 100644 --- a/Items/Weapons/Ranged/OpalStriker.cs +++ b/Items/Weapons/Ranged/OpalStriker.cs @@ -5,11 +5,14 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Ranged { public class OpalStriker : ModItem { + public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/OpalStrike"); + public override void SetStaticDefaults() { DisplayName.SetDefault("Opal Striker"); @@ -31,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.knockBack = 0f; Item.value = Item.buyPrice(0, 2, 0, 0); Item.rare = ItemRarityID.Green; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/OpalStrike"); + Item.UseSound = FireSound; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; diff --git a/Items/Weapons/Ranged/ScorchedEarth.cs b/Items/Weapons/Ranged/ScorchedEarth.cs index b43a39cc1e..8f9f59a925 100644 --- a/Items/Weapons/Ranged/ScorchedEarth.cs +++ b/Items/Weapons/Ranged/ScorchedEarth.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Ranged { public class ScorchedEarth : ModItem { - public static readonly SoundStyle ShootSound = new("Sounds/Item/ScorchedEarthShot", 3); + public static readonly SoundStyle ShootSound = new("CalamityMod/Sounds/Item/ScorchedEarthShot", 3); private int counter = 0; public override void SetStaticDefaults() diff --git a/Items/Weapons/Ranged/TyrannysEnd.cs b/Items/Weapons/Ranged/TyrannysEnd.cs index dbde5bf53c..52d2921881 100644 --- a/Items/Weapons/Ranged/TyrannysEnd.cs +++ b/Items/Weapons/Ranged/TyrannysEnd.cs @@ -7,6 +7,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Ranged { @@ -37,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.height = 32; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LargeWeaponFire"); + Item.UseSound = CommonCalamitySounds.LargeWeaponFireSound; Item.value = CalamityGlobalItem.Rarity15BuyPrice; Item.Calamity().customRarity = CalamityRarity.Violet; diff --git a/Items/Weapons/Summon/PrototypeAndromechaRing.cs b/Items/Weapons/Summon/PrototypeAndromechaRing.cs index afa027c8e5..9ab42a94df 100644 --- a/Items/Weapons/Summon/PrototypeAndromechaRing.cs +++ b/Items/Weapons/Summon/PrototypeAndromechaRing.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon { //Note: In the future i may just do some changes to this item, and the cripple effect will probably be gone. But in the meanwhile //- Iban - public static readonly SoundStyle CrippleSound = new("Sounds/Custom/AndromedaCripple"); + public static readonly SoundStyle CrippleSound = new("CalamityMod/Sounds/Custom/AndromedaCripple"); public override void Load() { diff --git a/Items/Weapons/Summon/SlimePuppetStaff.cs b/Items/Weapons/Summon/SlimePuppetStaff.cs index 0efeb7a0dd..b23786f764 100644 --- a/Items/Weapons/Summon/SlimePuppetStaff.cs +++ b/Items/Weapons/Summon/SlimePuppetStaff.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.NPCs.SlimeGod namespace CalamityMod.Items.Weapons.Summon { @@ -31,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.knockBack = 3.6f; Item.value = CalamityGlobalItem.Rarity4BuyPrice; Item.rare = ItemRarityID.LightRed; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SlimeGodPossession"); + Item.UseSound = SlimeGodCore.PossessionSound; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; Item.DamageType = DamageClass.Summon; diff --git a/Items/Weapons/Typeless/AethersWhisper.cs b/Items/Weapons/Typeless/AethersWhisper.cs index d759afaca6..d7edd8a808 100644 --- a/Items/Weapons/Typeless/AethersWhisper.cs +++ b/Items/Weapons/Typeless/AethersWhisper.cs @@ -7,6 +7,7 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Typeless { @@ -37,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.height = 44; Item.noMelee = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LaserCannon"); + Item.UseSound = CommonCalamitySounds.LaserCannonSound; Item.value = CalamityGlobalItem.Rarity12BuyPrice; Item.Calamity().customRarity = CalamityRarity.Turquoise; diff --git a/Items/Weapons/Typeless/EyeofMagnus.cs b/Items/Weapons/Typeless/EyeofMagnus.cs index f6313124c9..9743d80ca2 100644 --- a/Items/Weapons/Typeless/EyeofMagnus.cs +++ b/Items/Weapons/Typeless/EyeofMagnus.cs @@ -3,6 +3,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using Terraria.ID; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Typeless { @@ -27,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.useTime = 20; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 5f; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LaserCannon"); + Item.UseSound = CommonCalamitySounds.LaserCannonSound; Item.autoReuse = true; Item.noMelee = true; Item.height = 50; diff --git a/Items/Weapons/Typeless/FiniteUse/Bazooka.cs b/Items/Weapons/Typeless/FiniteUse/Bazooka.cs index a648247a8a..332a0af866 100644 --- a/Items/Weapons/Typeless/FiniteUse/Bazooka.cs +++ b/Items/Weapons/Typeless/FiniteUse/Bazooka.cs @@ -6,11 +6,14 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Typeless.FiniteUse { public class Bazooka : ModItem { + public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/BazookaFull"); + public override void SetStaticDefaults() { DisplayName.SetDefault("Bazooka"); @@ -30,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse Item.knockBack = 10f; Item.value = Item.buyPrice(0, 36, 0, 0); Item.rare = ItemRarityID.Pink; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/BazookaFull"); + Item.UseSound = FireSound; Item.autoReuse = true; Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs b/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs index 84f6ee0026..d5c1ab9491 100644 --- a/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs +++ b/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse Item.knockBack = 8f; Item.value = CalamityGlobalItem.Rarity10BuyPrice; Item.rare = ItemRarityID.Red; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/Magnum"); + Item.UseSound = Magnum.FireSound; Item.autoReuse = true; Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Typeless/FiniteUse/Hydra.cs b/Items/Weapons/Typeless/FiniteUse/Hydra.cs index 4100eb51e1..e1a9aa44a1 100644 --- a/Items/Weapons/Typeless/FiniteUse/Hydra.cs +++ b/Items/Weapons/Typeless/FiniteUse/Hydra.cs @@ -6,11 +6,14 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Typeless.FiniteUse { public class Hydra : ModItem { + public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/Hydra"); + public override void SetStaticDefaults() { DisplayName.SetDefault("Hydra"); @@ -30,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse Item.knockBack = 10f; Item.value = Item.buyPrice(0, 80, 0, 0); Item.rare = ItemRarityID.Yellow; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/Hydra"); + Item.UseSound = FireSound; Item.autoReuse = true; Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Typeless/FiniteUse/LightningHawk.cs b/Items/Weapons/Typeless/FiniteUse/LightningHawk.cs index 5354d99e71..19d4d15791 100644 --- a/Items/Weapons/Typeless/FiniteUse/LightningHawk.cs +++ b/Items/Weapons/Typeless/FiniteUse/LightningHawk.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse Item.knockBack = 8f; Item.value = Item.buyPrice(0, 48, 0, 0); Item.rare = ItemRarityID.LightPurple; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/Magnum"); + Item.UseSound = Magnum.FireSound; Item.autoReuse = true; Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Typeless/FiniteUse/Magnum.cs b/Items/Weapons/Typeless/FiniteUse/Magnum.cs index 887679d652..f9c4bd6353 100644 --- a/Items/Weapons/Typeless/FiniteUse/Magnum.cs +++ b/Items/Weapons/Typeless/FiniteUse/Magnum.cs @@ -6,11 +6,14 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Typeless.FiniteUse { public class Magnum : ModItem { + public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/Magnum"); + public override void SetStaticDefaults() { DisplayName.SetDefault("Magnum"); @@ -30,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse Item.knockBack = 8f; Item.value = Item.buyPrice(0, 2, 0, 0); Item.rare = ItemRarityID.Green; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/Magnum"); + Item.UseSound = FireSound; Item.autoReuse = true; Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Typeless/LunicEye.cs b/Items/Weapons/Typeless/LunicEye.cs index dbd21cc5ab..6a1eb67e5c 100644 --- a/Items/Weapons/Typeless/LunicEye.cs +++ b/Items/Weapons/Typeless/LunicEye.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Typeless { @@ -29,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.useTime = 15; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 4.5f; - Item.UseSound = SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/LaserCannon"); + Item.UseSound = CommonCalamitySounds.LaserCannonSound; Item.autoReuse = true; Item.noMelee = true; Item.height = 50; diff --git a/Items/Weapons/Typeless/YanmeisKnife.cs b/Items/Weapons/Typeless/YanmeisKnife.cs index c8e024f962..16d737b092 100644 --- a/Items/Weapons/Typeless/YanmeisKnife.cs +++ b/Items/Weapons/Typeless/YanmeisKnife.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Typeless { public class YanmeisKnife : ModItem { - public static readonly SoundStyle ExpireSound = new("Sounds/Custom/YanmeiKnifeExpire"); + public static readonly SoundStyle ExpireSound = new("CalamityMod/Sounds/Custom/YanmeiKnifeExpire"); public override void SetStaticDefaults() { diff --git a/NPCs/Abyss/DevilFish.cs b/NPCs/Abyss/DevilFish.cs index 2c263ec9c9..b77f54dae4 100644 --- a/NPCs/Abyss/DevilFish.cs +++ b/NPCs/Abyss/DevilFish.cs @@ -18,7 +18,7 @@ namespace CalamityMod.NPCs.Abyss { public class DevilFish : ModNPC { - public static readonly SoundStyle MaskBreakSound = new("Sounds/Item/DevilMaskBreak"); + public static readonly SoundStyle MaskBreakSound = new("CalamityMod/Sounds/Item/DevilMaskBreak"); public bool brokenMask = false; public int hitCounter = 0; diff --git a/NPCs/Astral/Atlas.cs b/NPCs/Astral/Atlas.cs index 5bf378efc4..dd1728f086 100644 --- a/NPCs/Astral/Atlas.cs +++ b/NPCs/Astral/Atlas.cs @@ -48,12 +48,12 @@ namespace CalamityMod.NPCs.Astral private byte swing_counter; private short swing_untilNext; - public static readonly SoundStyle HurtSound = new("Sounds/NPCHit/AtlasHurt", 3); - public static readonly SoundStyle DeathSound = new("Sounds/NPCKilled/AtlasDeath") { Volume = 0.65f }; - public static readonly SoundStyle AggroSound = new("Sounds/Custom/AtlasSadAggro") { Volume = 0.5f }; - public static readonly SoundStyle UnaggroSound = new("Sounds/Custom/AtlasSadUnaggro") { Volume = 0.5f }; - public static readonly SoundStyle SwingSound = new("Sounds/Custom/AtlasSwing") { Volume = 0.65f }; - public static readonly SoundStyle IdleSound = new("Sounds/Custom/AtlasIdle", 2) { Volume = 0.6f }; + public static readonly SoundStyle HurtSound = new("CalamityMod/Sounds/NPCHit/AtlasHurt", 3); + public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AtlasDeath") { Volume = 0.65f }; + public static readonly SoundStyle AggroSound = new("CalamityMod/Sounds/Custom/AtlasSadAggro") { Volume = 0.5f }; + public static readonly SoundStyle UnaggroSound = new("CalamityMod/Sounds/Custom/AtlasSadUnaggro") { Volume = 0.5f }; + public static readonly SoundStyle SwingSound = new("CalamityMod/Sounds/Custom/AtlasSwing") { Volume = 0.65f }; + public static readonly SoundStyle IdleSound = new("CalamityMod/Sounds/Custom/AtlasIdle", 2) { Volume = 0.6f }; private float idle_counter { diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index a3d85b1ba8..fb5e60364a 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -29,9 +29,9 @@ namespace CalamityMod.NPCs.AstrumDeus [AutoloadBossHead] public class AstrumDeusHeadSpectral : ModNPC { - public static readonly SoundStyle SpawnSound = new("Sounds/Custom/AstrumDeusSpawn"); - public static readonly SoundStyle SplitSound = new("Sounds/Custom/AstrumDeusSplit"); - public static readonly SoundStyle DeathSound = new("Sounds/NPCKilled/AstrumDeusDeath"); + public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeusSpawn"); + public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeusSplit"); + public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AstrumDeusDeath"); public override void SetStaticDefaults() { diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 1197e8a87e..e2707dc4ca 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -138,8 +138,8 @@ namespace CalamityMod.NPCs.DevourerofGods public int DestroyedSegmentCount; //Sounds - public static readonly SoundStyle SpawnSound = new("Sounds/Custom/DevourerSpawn"); - public static readonly SoundStyle AttackSound = new("Sounds/Custom/DevourerAttack"); + public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/DevourerSpawn"); + public static readonly SoundStyle AttackSound = new("CalamityMod/Sounds/Custom/DevourerAttack"); public override void SetStaticDefaults() { diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index f8f3e6d35b..582080b40b 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -76,11 +76,11 @@ namespace CalamityMod.NPCs.Providence public int DeathAnimationTimer; //Sounds - public static readonly SoundStyle SpawnSound = new("Sounds/Custom/ProvidenceSpawn") { Volume = 1.2f }; - public static readonly SoundStyle HolyRaySound = new("Sounds/Custom/ProvidenceHolyRay") { Volume = 1.25f }; //note : Volume gets clamped between 0 and 1. I don't think this does anything, but it was in the original ModSound so im keeping it just in case - public static readonly SoundStyle HurtSound = new("Sounds/NPCHit/ProvidenceHurt"); - public static readonly SoundStyle DeathSound = new("Sounds/NPCKilled/ProvidenceDeath"); - public static readonly SoundStyle DeathAnimationSound = new("Sounds/Custom/ProvidenceDeathAnimation"); + public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/ProvidenceSpawn") { Volume = 1.2f }; + public static readonly SoundStyle HolyRaySound = new("CalamityMod/Sounds/Custom/ProvidenceHolyRay") { Volume = 1.25f }; //note : Volume gets clamped between 0 and 1. I don't think this does anything, but it was in the original ModSound so im keeping it just in case + public static readonly SoundStyle HurtSound = new("CalamityMod/Sounds/NPCHit/ProvidenceHurt"); + public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/ProvidenceDeath"); + public static readonly SoundStyle DeathAnimationSound = new("CalamityMod/Sounds/Custom/ProvidenceDeathAnimation"); public static float normalDR = 0.3f; public static float cocoonDR = 0.9f; diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 08382a838c..99325c3e3d 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -153,12 +153,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas private const int brothersSpawnCastTime = 150; //Sounds - public static readonly SoundStyle SpawnSound = new("Sounds/Custom/SupremeCalamitasSpawn") { Volume = 1.2f }; - public static readonly SoundStyle SepulcherSummonSound = new("Sounds/Custom/SCalSounds/SepulcherSpawn"); - public static readonly SoundStyle BrimstoneShotSound = new("Sounds/Custom/SCalSounds/BrimstoneShoot"); - public static readonly SoundStyle BrimstoneBigShotSound = new("Sounds/Custom/SCalSounds/BrimstoneBigShoot"); //DON'T YOU WANNA BE A [BIG SHOT] - public static readonly SoundStyle DashSound = new("Sounds/Custom/SCalSounds/SCalDash"); - public static readonly SoundStyle HellblastSound = new("Sounds/Custom/SCalSounds/BrimstoneHellblastSound"); + public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/SupremeCalamitasSpawn") { Volume = 1.2f }; + public static readonly SoundStyle SepulcherSummonSound = new("CalamityMod/Sounds/Custom/SCalSounds/SepulcherSpawn"); + public static readonly SoundStyle BrimstoneShotSound = new("CalamityMod/Sounds/Custom/SCalSounds/BrimstoneShoot"); + public static readonly SoundStyle BrimstoneBigShotSound = new("CalamityMod/Sounds/Custom/SCalSounds/BrimstoneBigShoot"); //DON'T YOU WANNA BE A [BIG SHOT] + public static readonly SoundStyle DashSound = new("CalamityMod/Sounds/Custom/SCalSounds/SCalDash"); + public static readonly SoundStyle HellblastSound = new("CalamityMod/Sounds/Custom/SCalSounds/BrimstoneHellblastSound"); diff --git a/Projectiles/Boss/DeusRitualDrama.cs b/Projectiles/Boss/DeusRitualDrama.cs index 70a524a94a..49ab0df458 100644 --- a/Projectiles/Boss/DeusRitualDrama.cs +++ b/Projectiles/Boss/DeusRitualDrama.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Boss { public class DeusRitualDrama : ModProjectile { - public static readonly SoundStyle PulseSound = new("Sounds/Custom/AstralBeaconOrbPulse"); + public static readonly SoundStyle PulseSound = new("CalamityMod/Sounds/Custom/AstralBeaconOrbPulse"); public float Time { diff --git a/Projectiles/Boss/HolyBlast.cs b/Projectiles/Boss/HolyBlast.cs index f54242eec7..6c1c7161e9 100644 --- a/Projectiles/Boss/HolyBlast.cs +++ b/Projectiles/Boss/HolyBlast.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Boss { public class HolyBlast : ModProjectile { - public static readonly SoundStyle ImpactSound = new("Sounds/Custom/ProvidenceHolyBlastImpact"); + public static readonly SoundStyle ImpactSound = new("CalamityMod/Sounds/Custom/ProvidenceHolyBlastImpact"); public override void SetStaticDefaults() { diff --git a/Sounds/CommonCalamitySounds.cs b/Sounds/CommonCalamitySounds.cs index 11e916c787..5ed362bc5c 100644 --- a/Sounds/CommonCalamitySounds.cs +++ b/Sounds/CommonCalamitySounds.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Sounds public static readonly SoundStyle WyrmScreamSound = new("CalamityMod/Sounds/Custom/WyrmScream"); - public static readonly SoundStyle LightningSound = new("CalamityMod/Sounds/Custom/LightningStrike") { Volume = 1.5f };; //This is just the regular SoundID.Thunder sound, except its only the first variant + public static readonly SoundStyle LightningSound = new("CalamityMod/Sounds/Custom/LightningStrike") { Volume = 1.5f }; //This is just the regular SoundID.Thunder sound, except its only the first variant public static readonly SoundStyle LaserCannonSound = new("CalamityMod/Sounds/Item/LaserCannon") { Volume = 0.85f }; @@ -31,8 +31,12 @@ namespace CalamityMod.Sounds public static readonly SoundStyle LargeWeaponFireSound = new("CalamityMod/Sounds/Item/LargeWeaponFire"); + public static readonly SoundStyle GaussWeaponFire = new("CalamityMod/Sounds/Item/GaussWeaponFire"); + public static readonly SoundStyle FlareSound = new("CalamityMod/Sounds/Item/FlareSound"); public static readonly SoundStyle PlasmaBoltSound = new("CalamityMod/Sounds/Item/PlasmaBolt") { Volume = 0.8f }; + + public static readonly SoundStyle PlasmaBlastSound = new("CalamityMod/Sounds/Item/PlasmaBlast"); } } diff --git a/Tiles/Astral/AstralBeacon.cs b/Tiles/Astral/AstralBeacon.cs index a6be0405db..51fbbd1eac 100644 --- a/Tiles/Astral/AstralBeacon.cs +++ b/Tiles/Astral/AstralBeacon.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.Astral public const int Height = 4; public static readonly Color FailColor = new Color(237, 93, 83); - public static readonly SoundStyle UseSound = new("Sounds/Custom/AstralBeaconUse"); + public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Custom/AstralBeaconUse"); public override void SetStaticDefaults() { diff --git a/UI/CodebreakerUI.cs b/UI/CodebreakerUI.cs index b6c3db8617..49bf20cd83 100644 --- a/UI/CodebreakerUI.cs +++ b/UI/CodebreakerUI.cs @@ -31,7 +31,7 @@ namespace CalamityMod.UI public static Rectangle MouseScreenArea => Utils.CenteredRectangle(Main.MouseScreen, Vector2.One * 2f); - public static readonly SoundStyle SummonSound = new("Sounds/Custom/CodebreakerBeam"); + public static readonly SoundStyle SummonSound = new("CalamityMod/Sounds/Custom/CodebreakerBeam"); public static void Draw(SpriteBatch spriteBatch) {