tried to fix brimflame sound error

This commit is contained in:
termigator1359 committed 2020-08-19 21:18:17 -04:00
1 parent 7a4097f58c
commit 716dbcd104
3 files changed
+5 -9

No files matched your search

+5
View File
@@ -1868,6 +1868,11 @@ namespace CalamityMod.CalPlayer
player.ClearBuff(ModContent.BuffType<BrimflameFrenzyBuff>());
player.AddBuff(ModContent.BuffType<BrimflameFrenzyCooldown>(), 30 * 60, true);
}
if (player.HasBuff(ModContent.BuffType<BrimflameFrenzyCooldown>())) //sound when ready to use again
{
if (player.buffTime[player.FindBuffIndex(ModContent.BuffType<BrimflameFrenzyCooldown>())] == 2);
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/BrimflameRecharge"), player.Center);
}
if (!modPlayer.bloodflareMelee && modPlayer.bloodflareFrenzy)
{
modPlayer.bloodflareFrenzy = false;
-6
View File
@@ -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<BrimflameFrenzyCooldown>())) //sound when ready to use again
{
if (player.buffTime[player.FindBuffIndex(ModContent.BuffType<BrimflameFrenzyCooldown>())] == 1);
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/BrimflameRecharge"), player.Center);
}
}
public override void AddRecipes()
@@ -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++)
{