From 2f41de91cf7196366acd5c4d1bdd1bb254a8f576 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 6 Jan 2022 11:38:51 -0500 Subject: [PATCH] fixed issues with howl's heart --- CalPlayer/CalamityPlayer.cs | 17 +++++++++-------- Items/Accessories/HowlsHeart.cs | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index add8f0d468..516b20a4a2 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5,6 +5,7 @@ using CalamityMod.Buffs.Pets; using CalamityMod.Buffs.Potions; using CalamityMod.Buffs.StatBuffs; using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.Summon; using CalamityMod.DataStructures; using CalamityMod.Dusts; using CalamityMod.Events; @@ -3709,21 +3710,21 @@ namespace CalamityMod.CalPlayer howlsHeartVanity = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(BuffType()) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(BuffType(), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[ProjectileType()] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center, -Vector2.UnitY, ProjectileType(), (int)(HowlDamage * player.MinionDamage()), 1f, player.whoAmI, 0f, 1f); + Projectile.NewProjectile(player.Center, -Vector2.UnitY, ModContent.ProjectileType(), (int)(HowlDamage * player.MinionDamage()), 1f, player.whoAmI, 0f, 1f); } - if (player.ownedProjectileCounts[ProjectileType()] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center, -Vector2.UnitY, ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center, -Vector2.UnitY, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } - if (player.ownedProjectileCounts[ProjectileType()] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center, -Vector2.UnitY, ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center, -Vector2.UnitY, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Items/Accessories/HowlsHeart.cs b/Items/Accessories/HowlsHeart.cs index 14171c81c6..c3ab8ff3fd 100644 --- a/Items/Accessories/HowlsHeart.cs +++ b/Items/Accessories/HowlsHeart.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID;