fixed issues with howl's heart
This commit is contained in:
1 parent
497aae2ad2
commit
2f41de91cf
2 files changed
+10
-8
No files matched your search
@@ -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<HowlTrio>()) == -1)
|
||||
if (player.FindBuffIndex(ModContent.BuffType<HowlTrio>()) == -1)
|
||||
{
|
||||
player.AddBuff(BuffType<HowlTrio>(), 3600, true);
|
||||
player.AddBuff(ModContent.BuffType<HowlTrio>(), 3600, true);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ProjectileType<HowlsHeartHowl>()] < 1)
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<HowlsHeartHowl>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center, -Vector2.UnitY, ProjectileType<HowlsHeartHowl>(), (int)(HowlDamage * player.MinionDamage()), 1f, player.whoAmI, 0f, 1f);
|
||||
Projectile.NewProjectile(player.Center, -Vector2.UnitY, ModContent.ProjectileType<HowlsHeartHowl>(), (int)(HowlDamage * player.MinionDamage()), 1f, player.whoAmI, 0f, 1f);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ProjectileType<HowlsHeartCalcifer>()] < 1)
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<HowlsHeartCalcifer>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center, -Vector2.UnitY, ProjectileType<HowlsHeartCalcifer>(), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center, -Vector2.UnitY, ModContent.ProjectileType<HowlsHeartCalcifer>(), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ProjectileType<HowlsHeartTurnipHead>()] < 1)
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<HowlsHeartTurnipHead>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center, -Vector2.UnitY, ProjectileType<HowlsHeartTurnipHead>(), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center, -Vector2.UnitY, ModContent.ProjectileType<HowlsHeartTurnipHead>(), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user