From 716dbcd104392a5301243cf34ce3e3cd260cf828 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 19 Aug 2020 21:18:17 -0400 Subject: [PATCH] tried to fix brimflame sound error --- CalPlayer/CalamityPlayerMiscEffects.cs | 5 +++++ Items/Armor/BrimflameScowl.cs | 6 ------ Projectiles/Rogue/DukesDecapitatorBubble.cs | 3 --- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 7dafae2282..9c9bee6b4c 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1868,6 +1868,11 @@ namespace CalamityMod.CalPlayer player.ClearBuff(ModContent.BuffType()); player.AddBuff(ModContent.BuffType(), 30 * 60, true); } + if (player.HasBuff(ModContent.BuffType())) //sound when ready to use again + { + if (player.buffTime[player.FindBuffIndex(ModContent.BuffType())] == 2); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/BrimflameRecharge"), player.Center); + } if (!modPlayer.bloodflareMelee && modPlayer.bloodflareFrenzy) { modPlayer.bloodflareFrenzy = false; diff --git a/Items/Armor/BrimflameScowl.cs b/Items/Armor/BrimflameScowl.cs index 416347c154..81e4eeb934 100644 --- a/Items/Armor/BrimflameScowl.cs +++ b/Items/Armor/BrimflameScowl.cs @@ -82,12 +82,6 @@ namespace CalamityMod.Items.Armor "While under this effect, your damage is significantly boosted\n" + "However, this comes at the cost of rapid life loss and no mana regeneration\n" + "This can be toggled off, however, a brimstone frenzy has a 30 second cooldown"; - - if (player.HasBuff(ModContent.BuffType())) //sound when ready to use again - { - if (player.buffTime[player.FindBuffIndex(ModContent.BuffType())] == 1); - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/BrimflameRecharge"), player.Center); - } } public override void AddRecipes() diff --git a/Projectiles/Rogue/DukesDecapitatorBubble.cs b/Projectiles/Rogue/DukesDecapitatorBubble.cs index 829d2c7a65..b6fd8f3f71 100644 --- a/Projectiles/Rogue/DukesDecapitatorBubble.cs +++ b/Projectiles/Rogue/DukesDecapitatorBubble.cs @@ -66,9 +66,6 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { Main.PlaySound(SoundID.Item54, projectile.position); - projectile.position = projectile.Center; - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); int num190 = Main.rand.Next(5, 9); for (int num191 = 0; num191 < num190; num191++) {