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/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/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index bf487c51ff..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; diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index 111a53de0e..d76f527430 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -100,6 +100,28 @@ namespace CalamityMod.NPCs.CeaselessVoid CalamityAI.CeaselessVoidAI(npc, mod); } + public override bool CanHitPlayer(Player target, ref int cooldownSlot) + { + cooldownSlot = 1; + + Rectangle targetHitbox = target.Hitbox; + + float dist1 = Vector2.Distance(npc.Center, targetHitbox.TopLeft()); + float dist2 = Vector2.Distance(npc.Center, targetHitbox.TopRight()); + float dist3 = Vector2.Distance(npc.Center, targetHitbox.BottomLeft()); + float dist4 = Vector2.Distance(npc.Center, targetHitbox.BottomRight()); + + float minDist = dist1; + if (dist2 < minDist) + minDist = dist2; + if (dist3 < minDist) + minDist = dist3; + if (dist4 < minDist) + minDist = dist4; + + return minDist <= 50f; + } + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { SpriteEffects spriteEffects = SpriteEffects.None; 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