diff --git a/Buffs/StatBuffs/RageMode.cs b/Buffs/StatBuffs/RageMode.cs index 3aac5ffebd..1d691878c7 100644 --- a/Buffs/StatBuffs/RageMode.cs +++ b/Buffs/StatBuffs/RageMode.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Buffs.StatBuffs // Otherwise, Rage Mode ends instantly. else { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/RageEnd"), player.position); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/RageEnd"), player.position); player.DelBuff(buffIndex--); // TML documentation requires you to decrement buffIndex if deleting the buff during Update. mp.rageModeActive = false; mp.rage = 0f; diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 4facbdb339..b5c01974ea 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2895,7 +2895,7 @@ namespace CalamityMod.CalPlayer { int seconds = CalamityUtils.SecondsToFrames(15f); player.AddBuff(ModContent.BuffType(), seconds, false); - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AngelicAllianceActivation"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/AngelicAllianceActivation"), player.Center); // Spawn an archangel for every minion you have float angelAmt = 0f; @@ -3003,7 +3003,7 @@ namespace CalamityMod.CalPlayer { brimflameFrenzy = true; player.AddBuff(ModContent.BuffType(), 10 * 60, true); - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/BrimflameAbility"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/AbilitySounds/BrimflameAbility"), player.Center); for (int num502 = 0; num502 < 36; num502++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Brimstone, 0f, 0f, 0, default, 1f); @@ -3036,7 +3036,7 @@ namespace CalamityMod.CalPlayer if (player.whoAmI == Main.myPlayer) player.AddCooldown(BloodflareRangedSet.ID, 1800); - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/BloodflareRangerActivation"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/BloodflareRangerActivation"), player.Center); for (int d = 0; d < 64; d++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Phantoplasm, 0f, 0f, 0, default, 1f); @@ -3083,7 +3083,7 @@ namespace CalamityMod.CalPlayer player.AddBuff(ModContent.BuffType(), 300, false); } player.AddCooldown(OmegaBlue.ID, 1800); - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/OmegaBlueAbility"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/OmegaBlueAbility"), player.Center); for (int i = 0; i < 66; i++) { int d = Dust.NewDust(player.position, player.width, player.height, 20, 0, 0, 100, Color.Transparent, 2.6f); @@ -3095,7 +3095,7 @@ namespace CalamityMod.CalPlayer } if (dsSetBonus) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/DemonshadeEnrage"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/DemonshadeEnrage"), player.Center); for (int num502 = 0; num502 < 36; num502++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Brimstone, 0f, 0f, 0, default, 1f); @@ -3131,7 +3131,7 @@ namespace CalamityMod.CalPlayer } if (plagueReaper && !player.HasCooldown(PlagueBlackout.ID)) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/PlagueReaperAbility"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/PlagueReaperAbility"), player.Center); player.AddCooldown(PlagueBlackout.ID, 1800); } if (forbiddenCirclet && forbiddenCooldown <= 0) @@ -3205,7 +3205,7 @@ namespace CalamityMod.CalPlayer // Gael's Greatsword replaces Rage Mode with an uber skull attack if (gaelRageAttackCooldown == 0 && player.ActiveItem().type == ModContent.ItemType() && rage > 0f) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaDispel"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/SilvaDispel"), player.Center); for (int i = 0; i < 3; i++) Dust.NewDust(player.position, 120, 120, 218, 0f, 0f, 100, default, 1.5f); @@ -3249,7 +3249,7 @@ namespace CalamityMod.CalPlayer player.AddBuff(ModContent.BuffType(), 2); // Play Rage Activation sound - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/RageActivate"), player.position); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/RageActivate"), player.position); // TODO -- improve Rage activation visuals for (int num502 = 0; num502 < 64; num502++) @@ -3280,7 +3280,7 @@ namespace CalamityMod.CalPlayer player.AddBuff(ModContent.BuffType(), AdrenalineDuration); // Play Adrenaline Activation sound - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AdrenalineActivate"), player.position); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/AdrenalineActivate"), player.position); // TODO -- improve Adrenaline activation visuals for (int num502 = 0; num502 < 64; num502++) @@ -4250,7 +4250,7 @@ namespace CalamityMod.CalPlayer Main.dust[sVeilDustIndex2].noLight = false; } - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaDispel"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/SilvaDispel"), player.Center); NetMessage.SendData(MessageID.Dodge, -1, -1, null, player.whoAmI, 1f, 0f, 0f, 0, 0, 0); } @@ -4324,7 +4324,7 @@ namespace CalamityMod.CalPlayer player.GiveIFrames(player.longInvince ? 100 : 60, true); rogueStealth += 0.5f; - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaActivation"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/SilvaActivation"), player.Center); for (int i = 0; i < 10; i++) { @@ -4499,7 +4499,7 @@ namespace CalamityMod.CalPlayer { if (silvaCountdown == silvaReviveDuration && !hasSilvaEffect) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaActivation"), (int)player.position.X, (int)player.position.Y); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/SilvaActivation"), (int)player.position.X, (int)player.position.Y); player.AddBuff(ModContent.BuffType(), silvaReviveDuration); diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 45bcd4e0af..660a8618ba 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -371,7 +371,7 @@ namespace CalamityMod.CalPlayer if (playFullRageSound) { playFullRageSound = false; - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/FullRage"), (int)player.position.X, (int)player.position.Y); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/FullRage"), (int)player.position.X, (int)player.position.Y); } } else @@ -417,7 +417,7 @@ namespace CalamityMod.CalPlayer if (playFullAdrenalineSound) { playFullAdrenalineSound = false; - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/FullAdrenaline"), (int)player.position.X, (int)player.position.Y); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/FullAdrenaline"), (int)player.position.X, (int)player.position.Y); } } else @@ -1155,7 +1155,7 @@ namespace CalamityMod.CalPlayer silvaCountdown -= 1; if (silvaCountdown <= 0) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaDispel"), player.Center); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/SilvaDispel"), player.Center); player.AddCooldown(SilvaRevive.ID, CalamityUtils.SecondsToFrames(5 * 60)); } diff --git a/CalPlayer/CalamityPlayerNetcode.cs b/CalPlayer/CalamityPlayerNetcode.cs index 18b840cb7a..b8de863662 100644 --- a/CalPlayer/CalamityPlayerNetcode.cs +++ b/CalPlayer/CalamityPlayerNetcode.cs @@ -156,6 +156,7 @@ namespace CalamityMod.CalPlayer return; ModPacket packet = mod.GetPacket(256); packet.Write((byte)CalamityModMessageType.CooldownAddition); + packet.Write(player.whoAmI); cd.Write(packet); player.SendPacket(packet, server); } @@ -166,6 +167,7 @@ namespace CalamityMod.CalPlayer return; ModPacket packet = mod.GetPacket(256); packet.Write((byte)CalamityModMessageType.CooldownRemoval); + packet.Write(player.whoAmI); packet.Write(cooldownIDs.Count); foreach (string id in cooldownIDs) packet.Write(CooldownRegistry.Get(id).netID); @@ -178,6 +180,7 @@ namespace CalamityMod.CalPlayer return; ModPacket packet = mod.GetPacket(1024); packet.Write((byte)CalamityModMessageType.SyncCooldownDictionary); + packet.Write(player.whoAmI); packet.Write(cooldowns.Count); foreach (CooldownInstance cd in cooldowns.Values) cd.Write(packet); diff --git a/Cooldowns/BloodflareRangedSet.cs b/Cooldowns/BloodflareRangedSet.cs index 9aa7a2122b..0844a47ccb 100644 --- a/Cooldowns/BloodflareRangedSet.cs +++ b/Cooldowns/BloodflareRangedSet.cs @@ -13,6 +13,6 @@ namespace CalamityMod.Cooldowns public override Color CooldownStartColor => new Color(216, 60, 90); public override Color CooldownEndColor => new Color(251, 106, 150); - public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/BloodflareRangerRecharge"); + public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/AbilitySounds/BloodflareRangerRecharge"); } } \ No newline at end of file diff --git a/Cooldowns/BrimflameFrenzy.cs b/Cooldowns/BrimflameFrenzy.cs index 3cf17e9702..df0606856b 100644 --- a/Cooldowns/BrimflameFrenzy.cs +++ b/Cooldowns/BrimflameFrenzy.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Cooldowns public override Color CooldownStartColor => Color.Lerp(new Color(107, 6, 6), new Color(228, 78, 78), 1 - instance.Completion); public override Color CooldownEndColor => Color.Lerp(new Color(107, 6, 6), new Color(228, 78, 78), 1 - instance.Completion); - public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/BrimflameRecharge"); + public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/AbilitySounds/BrimflameRecharge"); //Add red eyes to the icon diff --git a/Cooldowns/ChaosState.cs b/Cooldowns/ChaosState.cs index 72341f34f6..ba7573a6b2 100644 --- a/Cooldowns/ChaosState.cs +++ b/Cooldowns/ChaosState.cs @@ -1,4 +1,5 @@ using Microsoft.Xna.Framework; +using Terraria.Audio; namespace CalamityMod.Cooldowns { @@ -12,6 +13,7 @@ namespace CalamityMod.Cooldowns public override Color OutlineColor => outlineColor; public override Color CooldownStartColor => Color.Lerp(cooldownColorStart, cooldownColorEnd, 1 - instance.Completion); public override Color CooldownEndColor => Color.Lerp(cooldownColorStart, cooldownColorEnd, 1 - instance.Completion); + public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/AbilitySounds/ChaosStateOver"); //It's the same cooldown with different skins each time, basically. public string skinTexture; diff --git a/Cooldowns/OmegaBlue.cs b/Cooldowns/OmegaBlue.cs index 7ed4467f01..56109c292d 100644 --- a/Cooldowns/OmegaBlue.cs +++ b/Cooldowns/OmegaBlue.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Cooldowns public override Color OutlineColor => instance.timeLeft > 1500 ? new Color(231, 164, 1) : new Color(72, 135, 205); public override Color CooldownStartColor => instance.timeLeft > 1500 ? Color.Lerp(new Color(98, 110, 179), new Color(216, 176, 80), (instance.timeLeft - 1500) / 300f) : new Color(98, 110, 179); public override Color CooldownEndColor => instance.timeLeft > 1500 ? Color.Lerp(new Color(179, 132, 98), new Color(216, 176, 80), (instance.timeLeft - 1500) / 300f) : new Color(179, 132, 98); - public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/OmegaBlueRecharge"); + public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/AbilitySounds/OmegaBlueRecharge"); public override void OnCompleted() { diff --git a/Cooldowns/PlagueBlackout.cs b/Cooldowns/PlagueBlackout.cs index 6f733dd1e9..d0f6c8cabe 100644 --- a/Cooldowns/PlagueBlackout.cs +++ b/Cooldowns/PlagueBlackout.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Cooldowns public override Color OutlineColor => new Color(174, 237, 122); public override Color CooldownStartColor => Color.DarkSlateGray; public override Color CooldownEndColor => Color.DarkSlateGray; - public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/PlagueReaperRecharge"); + public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/AbilitySounds/PlagueReaperRecharge"); public override void OnCompleted() { diff --git a/Cooldowns/PotionSickness.cs b/Cooldowns/PotionSickness.cs index 2f1bbdd710..f437962176 100644 --- a/Cooldowns/PotionSickness.cs +++ b/Cooldowns/PotionSickness.cs @@ -1,4 +1,5 @@ using Microsoft.Xna.Framework; +using Terraria.Audio; namespace CalamityMod.Cooldowns { @@ -11,5 +12,6 @@ namespace CalamityMod.Cooldowns public override Color OutlineColor => new Color(255, 142, 165); public override Color CooldownStartColor => Color.Lerp(new Color(208, 234, 255), new Color(231, 3, 54), instance.Completion); public override Color CooldownEndColor => Color.Lerp(new Color(208, 234, 255), new Color(231, 3, 54), instance.Completion); + public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/AbilitySounds/PotionSicknessOver"); } } \ No newline at end of file diff --git a/Items/Critters/PiggyItem.png b/Items/Critters/PiggyItem.png index bb7b57d0bb..34c9df0b9a 100644 Binary files a/Items/Critters/PiggyItem.png and b/Items/Critters/PiggyItem.png differ diff --git a/Items/Weapons/Melee/BiomeBlade.cs b/Items/Weapons/Melee/BiomeBlade.cs index 425f17f5b4..b71d08d3c8 100644 --- a/Items/Weapons/Melee/BiomeBlade.cs +++ b/Items/Weapons/Melee/BiomeBlade.cs @@ -88,14 +88,14 @@ namespace CalamityMod.Items.Weapons.Melee effectDescTooltip.text = mainAttunement.function_description; effectDescTooltip.overrideColor = mainAttunement.tooltipColor; - mainAttunementTooltip.text = "Main Attumenent : [" + mainAttunement.name + "]"; + mainAttunementTooltip.text = "Main Attunement : [" + mainAttunement.name + "]"; mainAttunementTooltip.overrideColor = mainAttunement.tooltipColor; } //If theres a secondary attunement if (secondaryAttunement != null) { - secondaryAttunementTooltip.text = "Secondary Attumenent : [" + secondaryAttunement.name + "]"; + secondaryAttunementTooltip.text = "Secondary Attunement : [" + secondaryAttunement.name + "]"; secondaryAttunementTooltip.overrideColor = Color.Lerp(secondaryAttunement.tooltipColor, Color.Gray, 0.5f); } } diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index 2bbd4221d7..049802374e 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -35,12 +35,12 @@ namespace CalamityMod.Items.Weapons.Melee public static int BaseDamage = 800; public static int PhoenixAttunement_BaseDamage = 800; - public static int PhoenixAttunement_LocalIFrames = 20; //Remember its got one extra update + public static int PhoenixAttunement_LocalIFrames = 30; //Remember its got one extra update public static float PhoenixAttunement_BoltDamageReduction = 0.5f; - public static float PhoenixAttunement_BoltThrowDamageMultiplier = 1.5f; + public static float PhoenixAttunement_BoltThrowDamageMultiplier = 1f; public static float PhoenixAttunement_BaseDamageReduction = 0.5f; public static float PhoenixAttunement_FullChargeDamageBoost = 2.1f; - public static float PhoenixAttunement_ThrowDamageBoost = 3.6f; + public static float PhoenixAttunement_ThrowDamageBoost = 3.2f; public static int PolarisAttunement_BaseDamage = 1200; public static int PolarisAttunement_FullChargeDamage = 1900; @@ -116,7 +116,7 @@ namespace CalamityMod.Items.Weapons.Melee passiveDescTooltip.text = mainAttunement.passive_description; passiveDescTooltip.overrideColor = mainAttunement.tooltipPassiveColor; - mainAttunementTooltip.text = "Active Attumenent : [" + mainAttunement.name + "]"; + mainAttunementTooltip.text = "Active Attunement : [" + mainAttunement.name + "]"; mainAttunementTooltip.overrideColor = Color.Lerp(mainAttunement.tooltipColor, mainAttunement.tooltipColor2, 0.5f + (float)Math.Sin(Main.GlobalTime) * 0.5f); blessingTooltip.text = "Passive Blessing : [" + mainAttunement.passive_name + "]"; diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index bc8109b92a..ed8d47c8ef 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -126,7 +126,7 @@ namespace CalamityMod.Items.Weapons.Melee passiveDescTooltip.text = "Your secondary attunement can now provide passive bonuses"; passiveDescTooltip.overrideColor = new Color(163, 163, 163); - mainAttunementTooltip.text = "Active Attumenent : [None]"; + mainAttunementTooltip.text = "Active Attunement : [None]"; mainAttunementTooltip.overrideColor = new Color(163, 163, 163); secondaryAttunementTooltip.text = "Passive Attunement : [None]"; @@ -138,7 +138,7 @@ namespace CalamityMod.Items.Weapons.Melee effectDescTooltip.text = mainAttunement.function_description + "\n" + mainAttunement.function_description_extra; effectDescTooltip.overrideColor = mainAttunement.tooltipColor; - mainAttunementTooltip.text = "Active Attumenent : [" + mainAttunement.name + "]"; + mainAttunementTooltip.text = "Active Attunement : [" + mainAttunement.name + "]"; mainAttunementTooltip.overrideColor = Color.Lerp(mainAttunement.tooltipColor, mainAttunement.tooltipColor2, 0.5f + (float)Math.Sin(Main.GlobalTime) * 0.5f); } @@ -148,7 +148,7 @@ namespace CalamityMod.Items.Weapons.Melee passiveDescTooltip.text = secondaryAttunement.passive_description; passiveDescTooltip.overrideColor = secondaryAttunement.tooltipColor; - secondaryAttunementTooltip.text = "Passive Attumenent : [" + secondaryAttunement.name + "]"; + secondaryAttunementTooltip.text = "Passive Attunement : [" + secondaryAttunement.name + "]"; secondaryAttunementTooltip.overrideColor = Color.Lerp(Color.Lerp(secondaryAttunement.tooltipColor, secondaryAttunement.tooltipColor2, 0.5f + (float)Math.Sin(Main.GlobalTime) * 0.5f), Color.Gray, 0.5f); } } diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index 35fbb9c39c..9083cb70a8 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -116,14 +116,14 @@ namespace CalamityMod.Items.Weapons.Melee effectDescTooltip.text = mainAttunement.function_description + "\n" + mainAttunement.function_description_extra ; effectDescTooltip.overrideColor = mainAttunement.tooltipColor; - mainAttunementTooltip.text = "Main Attumenent : [" + mainAttunement.name + "]"; + mainAttunementTooltip.text = "Main Attunement : [" + mainAttunement.name + "]"; mainAttunementTooltip.overrideColor = mainAttunement.tooltipColor; } //If theres a secondary attunement if (secondaryAttunement != null) { - secondaryAttunementTooltip.text = "Secondary Attumenent : [" + secondaryAttunement.name + "]"; + secondaryAttunementTooltip.text = "Secondary Attunement : [" + secondaryAttunement.name + "]"; secondaryAttunementTooltip.overrideColor = Color.Lerp(secondaryAttunement.tooltipColor, Color.Gray, 0.5f); } } diff --git a/Items/Weapons/Rogue/KelvinCatalyst.cs b/Items/Weapons/Rogue/KelvinCatalyst.cs index edf25a841f..2b47aa77ab 100644 --- a/Items/Weapons/Rogue/KelvinCatalyst.cs +++ b/Items/Weapons/Rogue/KelvinCatalyst.cs @@ -53,17 +53,12 @@ namespace CalamityMod.Items.Weapons.Rogue public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 200); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ItemID.FrozenKey); - recipe.AddIngredient(ItemID.FrostCore, 2); + recipe.AddIngredient(ModContent.ItemType(), 100); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType(), 10); recipe.AddTile(TileID.IceMachine); recipe.SetResult(this); diff --git a/NPCs/DevourerofGods/DevourerofGodsBody.cs b/NPCs/DevourerofGods/DevourerofGodsBody.cs index 15a3d1de45..356dcb1735 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBody.cs +++ b/NPCs/DevourerofGods/DevourerofGodsBody.cs @@ -197,28 +197,32 @@ namespace CalamityMod.NPCs.DevourerofGods { if (Main.npc[(int)npc.ai[2]].ModNPC()?.AttemptingToEnterPortal ?? false) { - Projectile portal = Main.projectile[Main.npc[(int)npc.ai[2]].ModNPC().PortalIndex]; - float newOpacity = 1f - Utils.InverseLerp(270f, 100f, npc.Distance(portal.Center), true); - if (Main.netMode != NetmodeID.MultiplayerClient && newOpacity > 0f && npc.Opacity > newOpacity) + if (Main.netMode != NetmodeID.MultiplayerClient) { - npc.Opacity = newOpacity; - - // Create dust at the portal position. - if (Vector2.Dot((npc.rotation - MathHelper.PiOver2).ToRotationVector2(), Main.npc[(int)npc.ai[2]].velocity) > 0f) + Projectile portal = Main.projectile[Main.npc[(int)npc.ai[2]].ModNPC().PortalIndex]; + float newOpacity = 1f - Utils.InverseLerp(270f, 100f, npc.Distance(portal.Center), true); + if (newOpacity > 0f && npc.Opacity > newOpacity) { - for (int i = 0; i < 2; i++) - { - Dust cosmicMagic = Dust.NewDustPerfect(portal.Center, Main.rand.NextBool() ? 180 : 173); - cosmicMagic.velocity = Main.rand.NextVector2Unit() * Main.rand.NextFloat(2f, 8f); - cosmicMagic.scale *= Main.rand.NextFloat(1f, 1.8f); - cosmicMagic.noGravity = true; - } - } - npc.netUpdate = true; - } + npc.Opacity = newOpacity; - if (npc.Opacity < 0.2f) - npc.Opacity = 0f; + // Create dust at the portal position. + if (Vector2.Dot((npc.rotation - MathHelper.PiOver2).ToRotationVector2(), Main.npc[(int)npc.ai[2]].velocity) > 0f) + { + for (int i = 0; i < 2; i++) + { + Dust cosmicMagic = Dust.NewDustPerfect(portal.Center, Main.rand.NextBool() ? 180 : 173); + cosmicMagic.velocity = Main.rand.NextVector2Unit() * Main.rand.NextFloat(2f, 8f); + cosmicMagic.scale *= Main.rand.NextFloat(1f, 1.8f); + cosmicMagic.noGravity = true; + } + } + + if (npc.Opacity < 0.2f) + npc.Opacity = 0f; + + npc.netUpdate = true; + } + } } else npc.alpha = Main.npc[(int)npc.ai[2]].alpha; @@ -333,17 +337,22 @@ namespace CalamityMod.NPCs.DevourerofGods public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) { - if ((damage * (crit ? 2D : 1D)) >= npc.life) + if ((damage * (crit ? 2D : 1D)) >= npc.life || (npc.realLife >= 0 && Main.npc[npc.realLife].ModNPC().Dying)) { - if (npc.realLife >= 0 && !Main.npc[npc.realLife].ModNPC().Dying) + if (npc.realLife >= 0) { damage = 0D; npc.dontTakeDamage = true; - Main.npc[npc.realLife].ModNPC().Dying = true; - Main.npc[npc.realLife].life = 1; Main.npc[npc.realLife].dontTakeDamage = true; - Main.npc[npc.realLife].active = true; - Main.npc[npc.realLife].netUpdate = true; + Main.npc[npc.realLife].life = 1; + + if (!Main.npc[npc.realLife].ModNPC().Dying) + { + Main.npc[npc.realLife].ModNPC().Dying = true; + Main.npc[npc.realLife].dontTakeDamage = true; + Main.npc[npc.realLife].active = true; + Main.npc[npc.realLife].netUpdate = true; + } } return false; } diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 6781b9a93c..97cbab0edd 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -179,6 +179,8 @@ namespace CalamityMod.NPCs.DevourerofGods public override void SendExtraAI(BinaryWriter writer) { + bool wasDyingBefore = Dying; + // Phase 1 syncs writer.Write(npc.dontTakeDamage); writer.Write(spawnedGuardians); @@ -211,6 +213,13 @@ namespace CalamityMod.NPCs.DevourerofGods writer.Write(Dying); writer.Write(DeathAnimationTimer); writer.Write(DestroyedSegmentCount); + + // Be sure to inform clients of the fact that The Devourer of Gods is dying if only the server recieved this packet. + if (Main.netMode == NetmodeID.Server && !wasDyingBefore && Dying) + { + npc.netSpam = 0; + npc.netUpdate = true; + } } public override void ReceiveExtraAI(BinaryReader reader) diff --git a/NPCs/DevourerofGods/DevourerofGodsTail.cs b/NPCs/DevourerofGods/DevourerofGodsTail.cs index 83297d6003..b3d4e26723 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTail.cs +++ b/NPCs/DevourerofGods/DevourerofGodsTail.cs @@ -217,28 +217,32 @@ namespace CalamityMod.NPCs.DevourerofGods { if (Main.npc[(int)npc.ai[2]].ModNPC()?.AttemptingToEnterPortal ?? false) { - Projectile portal = Main.projectile[Main.npc[(int)npc.ai[2]].ModNPC().PortalIndex]; - float newOpacity = 1f - Utils.InverseLerp(200f, 130f, npc.Distance(portal.Center), true); - if (Main.netMode != NetmodeID.MultiplayerClient && newOpacity > 0f && npc.Opacity > newOpacity) + if (Main.netMode != NetmodeID.MultiplayerClient) { - npc.Opacity = newOpacity; - - // Create dust at the portal position. - if (Vector2.Dot((npc.rotation - MathHelper.PiOver2).ToRotationVector2(), Main.npc[(int)npc.ai[2]].velocity) > 0f) + Projectile portal = Main.projectile[Main.npc[(int)npc.ai[2]].ModNPC().PortalIndex]; + float newOpacity = 1f - Utils.InverseLerp(270f, 100f, npc.Distance(portal.Center), true); + if (newOpacity > 0f && npc.Opacity > newOpacity) { - for (int i = 0; i < 2; i++) - { - Dust cosmicMagic = Dust.NewDustPerfect(portal.Center, Main.rand.NextBool() ? 180 : 173); - cosmicMagic.velocity = Main.rand.NextVector2Unit() * Main.rand.NextFloat(2f, 8f); - cosmicMagic.scale *= Main.rand.NextFloat(1f, 1.8f); - cosmicMagic.noGravity = true; - } - } - npc.netUpdate = true; - } + npc.Opacity = newOpacity; - if (npc.Opacity < 0.2f) - npc.Opacity = 0f; + // Create dust at the portal position. + if (Vector2.Dot((npc.rotation - MathHelper.PiOver2).ToRotationVector2(), Main.npc[(int)npc.ai[2]].velocity) > 0f) + { + for (int i = 0; i < 2; i++) + { + Dust cosmicMagic = Dust.NewDustPerfect(portal.Center, Main.rand.NextBool() ? 180 : 173); + cosmicMagic.velocity = Main.rand.NextVector2Unit() * Main.rand.NextFloat(2f, 8f); + cosmicMagic.scale *= Main.rand.NextFloat(1f, 1.8f); + cosmicMagic.noGravity = true; + } + } + + if (npc.Opacity < 0.2f) + npc.Opacity = 0f; + + npc.netUpdate = true; + } + } } else npc.alpha = Main.npc[(int)npc.ai[2]].alpha; @@ -385,22 +389,27 @@ namespace CalamityMod.NPCs.DevourerofGods } public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) - { - if ((damage * (crit ? 2D : 1D)) >= npc.life) + { + if ((damage * (crit ? 2D : 1D)) >= npc.life || (npc.realLife >= 0 && Main.npc[npc.realLife].ModNPC().Dying)) { - if (npc.realLife >= 0 && !Main.npc[npc.realLife].ModNPC().Dying) + if (npc.realLife >= 0) { damage = 0D; npc.dontTakeDamage = true; - Main.npc[npc.realLife].ModNPC().Dying = true; - Main.npc[npc.realLife].life = 1; Main.npc[npc.realLife].dontTakeDamage = true; - Main.npc[npc.realLife].active = true; - Main.npc[npc.realLife].netUpdate = true; + Main.npc[npc.realLife].life = 1; + + if (!Main.npc[npc.realLife].ModNPC().Dying) + { + Main.npc[npc.realLife].ModNPC().Dying = true; + Main.npc[npc.realLife].dontTakeDamage = true; + Main.npc[npc.realLife].active = true; + Main.npc[npc.realLife].netUpdate = true; + } } return false; - } - return true; + } + return true; } public override bool CheckDead() diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 8bea978483..35acfe9457 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -133,6 +133,7 @@ namespace CalamityMod.NPCs.Providence public override void ReceiveExtraAI(BinaryReader reader) { + bool wasDyingBefore = Dying; text = reader.ReadBoolean(); useDefenseFrames = reader.ReadBoolean(); biomeType = reader.ReadInt32(); @@ -149,6 +150,13 @@ namespace CalamityMod.NPCs.Providence DeathAnimationTimer = reader.ReadInt32(); for (int i = 0; i < 4; i++) npc.Calamity().newAI[i] = reader.ReadSingle(); + + // Be sure to inform clients of the fact that Providence is dying if only the server recieved this packet. + if (Main.netMode == NetmodeID.Server && !wasDyingBefore && Dying) + { + npc.netSpam = 0; + npc.netUpdate = true; + } } public override void AI() @@ -1883,8 +1891,6 @@ namespace CalamityMod.NPCs.Providence { DespawnSpecificProjectiles(true); Dying = true; - npc.life = 1; - npc.dontTakeDamage = true; npc.active = true; npc.netUpdate = true; } @@ -1893,10 +1899,14 @@ namespace CalamityMod.NPCs.Providence public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) { - if (!Dying && (damage * (crit ? 2D : 1D)) >= npc.life) + if ((damage * (crit ? 2D : 1D)) >= npc.life) { damage = 0D; - CheckDead(); + + npc.life = 1; + npc.dontTakeDamage = true; + if (!Dying) + CheckDead(); return false; } diff --git a/Sounds/Custom/AdrenalineActivate.cs b/Sounds/Custom/AbilitySounds/AdrenalineActivate.cs similarity index 89% rename from Sounds/Custom/AdrenalineActivate.cs rename to Sounds/Custom/AbilitySounds/AdrenalineActivate.cs index 552c962755..3036d021e8 100644 --- a/Sounds/Custom/AdrenalineActivate.cs +++ b/Sounds/Custom/AbilitySounds/AdrenalineActivate.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class AdrenalineActivate : ModSound { diff --git a/Sounds/Custom/AdrenalineActivate.ogg b/Sounds/Custom/AbilitySounds/AdrenalineActivate.ogg similarity index 100% rename from Sounds/Custom/AdrenalineActivate.ogg rename to Sounds/Custom/AbilitySounds/AdrenalineActivate.ogg diff --git a/Sounds/Custom/AngelicAllianceActivation.cs b/Sounds/Custom/AbilitySounds/AngelicAllianceActivation.cs similarity index 91% rename from Sounds/Custom/AngelicAllianceActivation.cs rename to Sounds/Custom/AbilitySounds/AngelicAllianceActivation.cs index 2df6ffa472..0b843ee6f8 100644 --- a/Sounds/Custom/AngelicAllianceActivation.cs +++ b/Sounds/Custom/AbilitySounds/AngelicAllianceActivation.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class AngelicAllianceActivation : ModSound { diff --git a/Sounds/Custom/AngelicAllianceActivation.ogg b/Sounds/Custom/AbilitySounds/AngelicAllianceActivation.ogg similarity index 100% rename from Sounds/Custom/AngelicAllianceActivation.ogg rename to Sounds/Custom/AbilitySounds/AngelicAllianceActivation.ogg diff --git a/Sounds/Custom/BloodflareRangerActivation.cs b/Sounds/Custom/AbilitySounds/BloodflareRangerActivation.cs similarity index 91% rename from Sounds/Custom/BloodflareRangerActivation.cs rename to Sounds/Custom/AbilitySounds/BloodflareRangerActivation.cs index 93e5344498..9a1f637463 100644 --- a/Sounds/Custom/BloodflareRangerActivation.cs +++ b/Sounds/Custom/AbilitySounds/BloodflareRangerActivation.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class BloodflareRangerActivation : ModSound { diff --git a/Sounds/Custom/BloodflareRangerActivation.ogg b/Sounds/Custom/AbilitySounds/BloodflareRangerActivation.ogg similarity index 100% rename from Sounds/Custom/BloodflareRangerActivation.ogg rename to Sounds/Custom/AbilitySounds/BloodflareRangerActivation.ogg diff --git a/Sounds/Custom/BloodflareRangerRecharge.cs b/Sounds/Custom/AbilitySounds/BloodflareRangerRecharge.cs similarity index 91% rename from Sounds/Custom/BloodflareRangerRecharge.cs rename to Sounds/Custom/AbilitySounds/BloodflareRangerRecharge.cs index dd12c8d67b..dba119abb6 100644 --- a/Sounds/Custom/BloodflareRangerRecharge.cs +++ b/Sounds/Custom/AbilitySounds/BloodflareRangerRecharge.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class BloodflareRangerRecharge : ModSound { diff --git a/Sounds/Custom/BloodflareRangerRecharge.ogg b/Sounds/Custom/AbilitySounds/BloodflareRangerRecharge.ogg similarity index 100% rename from Sounds/Custom/BloodflareRangerRecharge.ogg rename to Sounds/Custom/AbilitySounds/BloodflareRangerRecharge.ogg diff --git a/Sounds/Custom/BrimflameAbility.cs b/Sounds/Custom/AbilitySounds/BrimflameAbility.cs similarity index 89% rename from Sounds/Custom/BrimflameAbility.cs rename to Sounds/Custom/AbilitySounds/BrimflameAbility.cs index 96b19a81c9..cfbef663c5 100644 --- a/Sounds/Custom/BrimflameAbility.cs +++ b/Sounds/Custom/AbilitySounds/BrimflameAbility.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class BrimflameAbility : ModSound { diff --git a/Sounds/Custom/BrimflameAbility.ogg b/Sounds/Custom/AbilitySounds/BrimflameAbility.ogg similarity index 100% rename from Sounds/Custom/BrimflameAbility.ogg rename to Sounds/Custom/AbilitySounds/BrimflameAbility.ogg diff --git a/Sounds/Custom/BrimflameRecharge.cs b/Sounds/Custom/AbilitySounds/BrimflameRecharge.cs similarity index 89% rename from Sounds/Custom/BrimflameRecharge.cs rename to Sounds/Custom/AbilitySounds/BrimflameRecharge.cs index 018856f104..39f805799a 100644 --- a/Sounds/Custom/BrimflameRecharge.cs +++ b/Sounds/Custom/AbilitySounds/BrimflameRecharge.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class BrimflameRecharge : ModSound { diff --git a/Sounds/Custom/BrimflameRecharge.ogg b/Sounds/Custom/AbilitySounds/BrimflameRecharge.ogg similarity index 100% rename from Sounds/Custom/BrimflameRecharge.ogg rename to Sounds/Custom/AbilitySounds/BrimflameRecharge.ogg diff --git a/Sounds/Custom/AbilitySounds/ChaosStateOver.cs b/Sounds/Custom/AbilitySounds/ChaosStateOver.cs new file mode 100644 index 0000000000..41436a6f6e --- /dev/null +++ b/Sounds/Custom/AbilitySounds/ChaosStateOver.cs @@ -0,0 +1,18 @@ +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Custom.AbilitySounds +{ + public class ChaosStateOver : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume * 1f; + soundInstance.Pan = pan; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Custom/AbilitySounds/ChaosStateOver.ogg b/Sounds/Custom/AbilitySounds/ChaosStateOver.ogg new file mode 100644 index 0000000000..8019d05fd4 Binary files /dev/null and b/Sounds/Custom/AbilitySounds/ChaosStateOver.ogg differ diff --git a/Sounds/Custom/DemonshadeEnrage.cs b/Sounds/Custom/AbilitySounds/DemonshadeEnrage.cs similarity index 89% rename from Sounds/Custom/DemonshadeEnrage.cs rename to Sounds/Custom/AbilitySounds/DemonshadeEnrage.cs index 1880e41480..6b7dc3d5d0 100644 --- a/Sounds/Custom/DemonshadeEnrage.cs +++ b/Sounds/Custom/AbilitySounds/DemonshadeEnrage.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class DemonshadeEnrage : ModSound { diff --git a/Sounds/Custom/DemonshadeEnrage.ogg b/Sounds/Custom/AbilitySounds/DemonshadeEnrage.ogg similarity index 100% rename from Sounds/Custom/DemonshadeEnrage.ogg rename to Sounds/Custom/AbilitySounds/DemonshadeEnrage.ogg diff --git a/Sounds/Custom/FullAdrenaline.cs b/Sounds/Custom/AbilitySounds/FullAdrenaline.cs similarity index 91% rename from Sounds/Custom/FullAdrenaline.cs rename to Sounds/Custom/AbilitySounds/FullAdrenaline.cs index 6993f7794f..5a83a6e18d 100644 --- a/Sounds/Custom/FullAdrenaline.cs +++ b/Sounds/Custom/AbilitySounds/FullAdrenaline.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class FullAdrenaline : ModSound { diff --git a/Sounds/Custom/FullAdrenaline.ogg b/Sounds/Custom/AbilitySounds/FullAdrenaline.ogg similarity index 100% rename from Sounds/Custom/FullAdrenaline.ogg rename to Sounds/Custom/AbilitySounds/FullAdrenaline.ogg diff --git a/Sounds/Custom/FullRage.cs b/Sounds/Custom/AbilitySounds/FullRage.cs similarity index 91% rename from Sounds/Custom/FullRage.cs rename to Sounds/Custom/AbilitySounds/FullRage.cs index 0331603f79..3060c13df3 100644 --- a/Sounds/Custom/FullRage.cs +++ b/Sounds/Custom/AbilitySounds/FullRage.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class FullRage : ModSound { diff --git a/Sounds/Custom/FullRage.ogg b/Sounds/Custom/AbilitySounds/FullRage.ogg similarity index 100% rename from Sounds/Custom/FullRage.ogg rename to Sounds/Custom/AbilitySounds/FullRage.ogg diff --git a/Sounds/Custom/OmegaBlueAbility.cs b/Sounds/Custom/AbilitySounds/OmegaBlueAbility.cs similarity index 89% rename from Sounds/Custom/OmegaBlueAbility.cs rename to Sounds/Custom/AbilitySounds/OmegaBlueAbility.cs index c8e98126c0..77a13c5fa4 100644 --- a/Sounds/Custom/OmegaBlueAbility.cs +++ b/Sounds/Custom/AbilitySounds/OmegaBlueAbility.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class OmegaBlueAbility : ModSound { diff --git a/Sounds/Custom/OmegaBlueAbility.ogg b/Sounds/Custom/AbilitySounds/OmegaBlueAbility.ogg similarity index 100% rename from Sounds/Custom/OmegaBlueAbility.ogg rename to Sounds/Custom/AbilitySounds/OmegaBlueAbility.ogg diff --git a/Sounds/Custom/OmegaBlueRecharge.cs b/Sounds/Custom/AbilitySounds/OmegaBlueRecharge.cs similarity index 89% rename from Sounds/Custom/OmegaBlueRecharge.cs rename to Sounds/Custom/AbilitySounds/OmegaBlueRecharge.cs index 724c63e751..e3c099f846 100644 --- a/Sounds/Custom/OmegaBlueRecharge.cs +++ b/Sounds/Custom/AbilitySounds/OmegaBlueRecharge.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class OmegaBlueRecharge : ModSound { diff --git a/Sounds/Custom/OmegaBlueRecharge.ogg b/Sounds/Custom/AbilitySounds/OmegaBlueRecharge.ogg similarity index 100% rename from Sounds/Custom/OmegaBlueRecharge.ogg rename to Sounds/Custom/AbilitySounds/OmegaBlueRecharge.ogg diff --git a/Sounds/Custom/PlagueReaperAbility.cs b/Sounds/Custom/AbilitySounds/PlagueReaperAbility.cs similarity index 89% rename from Sounds/Custom/PlagueReaperAbility.cs rename to Sounds/Custom/AbilitySounds/PlagueReaperAbility.cs index 90050fecd8..2be0a93a1c 100644 --- a/Sounds/Custom/PlagueReaperAbility.cs +++ b/Sounds/Custom/AbilitySounds/PlagueReaperAbility.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class PlagueReaperAbility : ModSound { diff --git a/Sounds/Custom/PlagueReaperAbility.ogg b/Sounds/Custom/AbilitySounds/PlagueReaperAbility.ogg similarity index 100% rename from Sounds/Custom/PlagueReaperAbility.ogg rename to Sounds/Custom/AbilitySounds/PlagueReaperAbility.ogg diff --git a/Sounds/Custom/PlagueReaperRecharge.cs b/Sounds/Custom/AbilitySounds/PlagueReaperRecharge.cs similarity index 89% rename from Sounds/Custom/PlagueReaperRecharge.cs rename to Sounds/Custom/AbilitySounds/PlagueReaperRecharge.cs index bd8328aa13..9e2955e598 100644 --- a/Sounds/Custom/PlagueReaperRecharge.cs +++ b/Sounds/Custom/AbilitySounds/PlagueReaperRecharge.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class PlagueReaperRecharge : ModSound { diff --git a/Sounds/Custom/PlagueReaperRecharge.ogg b/Sounds/Custom/AbilitySounds/PlagueReaperRecharge.ogg similarity index 100% rename from Sounds/Custom/PlagueReaperRecharge.ogg rename to Sounds/Custom/AbilitySounds/PlagueReaperRecharge.ogg diff --git a/Sounds/Custom/AbilitySounds/PotionSicknessOver.cs b/Sounds/Custom/AbilitySounds/PotionSicknessOver.cs new file mode 100644 index 0000000000..a06c76405e --- /dev/null +++ b/Sounds/Custom/AbilitySounds/PotionSicknessOver.cs @@ -0,0 +1,18 @@ +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Custom.AbilitySounds +{ + public class PotionSicknessOver : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume * 1f; + soundInstance.Pan = pan; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Custom/AbilitySounds/PotionSicknessOver.ogg b/Sounds/Custom/AbilitySounds/PotionSicknessOver.ogg new file mode 100644 index 0000000000..b103893e80 Binary files /dev/null and b/Sounds/Custom/AbilitySounds/PotionSicknessOver.ogg differ diff --git a/Sounds/Custom/RageActivate.cs b/Sounds/Custom/AbilitySounds/RageActivate.cs similarity index 89% rename from Sounds/Custom/RageActivate.cs rename to Sounds/Custom/AbilitySounds/RageActivate.cs index 6455eceb57..58d4c84154 100644 --- a/Sounds/Custom/RageActivate.cs +++ b/Sounds/Custom/AbilitySounds/RageActivate.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class RageActivate : ModSound { diff --git a/Sounds/Custom/RageActivate.ogg b/Sounds/Custom/AbilitySounds/RageActivate.ogg similarity index 100% rename from Sounds/Custom/RageActivate.ogg rename to Sounds/Custom/AbilitySounds/RageActivate.ogg diff --git a/Sounds/Custom/RageEnd.cs b/Sounds/Custom/AbilitySounds/RageEnd.cs similarity index 91% rename from Sounds/Custom/RageEnd.cs rename to Sounds/Custom/AbilitySounds/RageEnd.cs index a441f4a359..f0055e75ad 100644 --- a/Sounds/Custom/RageEnd.cs +++ b/Sounds/Custom/AbilitySounds/RageEnd.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class RageEnd : ModSound { diff --git a/Sounds/Custom/RageEnd.ogg b/Sounds/Custom/AbilitySounds/RageEnd.ogg similarity index 100% rename from Sounds/Custom/RageEnd.ogg rename to Sounds/Custom/AbilitySounds/RageEnd.ogg diff --git a/Sounds/Custom/SilvaActivation.cs b/Sounds/Custom/AbilitySounds/SilvaActivation.cs similarity index 91% rename from Sounds/Custom/SilvaActivation.cs rename to Sounds/Custom/AbilitySounds/SilvaActivation.cs index 0340b5dfd3..46594a634c 100644 --- a/Sounds/Custom/SilvaActivation.cs +++ b/Sounds/Custom/AbilitySounds/SilvaActivation.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class SilvaActivation : ModSound { diff --git a/Sounds/Custom/SilvaActivation.ogg b/Sounds/Custom/AbilitySounds/SilvaActivation.ogg similarity index 100% rename from Sounds/Custom/SilvaActivation.ogg rename to Sounds/Custom/AbilitySounds/SilvaActivation.ogg diff --git a/Sounds/Custom/SilvaDispel.cs b/Sounds/Custom/AbilitySounds/SilvaDispel.cs similarity index 91% rename from Sounds/Custom/SilvaDispel.cs rename to Sounds/Custom/AbilitySounds/SilvaDispel.cs index d0d6b12a60..368c8eeca8 100644 --- a/Sounds/Custom/SilvaDispel.cs +++ b/Sounds/Custom/AbilitySounds/SilvaDispel.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Sounds.Custom +namespace CalamityMod.Sounds.Custom.AbilitySounds { public class SilvaDispel : ModSound { diff --git a/Sounds/Custom/SilvaDispel.ogg b/Sounds/Custom/AbilitySounds/SilvaDispel.ogg similarity index 100% rename from Sounds/Custom/SilvaDispel.ogg rename to Sounds/Custom/AbilitySounds/SilvaDispel.ogg