From dd155fcdc5a26469eea25c61f7d5c8fd4c2ed16c Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 19 Oct 2019 20:30:06 -0400 Subject: [PATCH] calplayer fixes --- CalPlayer/CalamityPlayer.cs | 5 +++-- Items/Fishing/PolarisParrotfish.cs | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index f446fde7d3..b8738f371f 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -8,6 +8,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Summon; using CalamityMod.Dusts; using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.DifficultyItems; using CalamityMod.Items.Fishing; using CalamityMod.Items.Mounts; @@ -7497,11 +7498,11 @@ namespace CalamityMod.CalPlayer { player.ClearBuff(ModContent.BuffType()); } } } - if (player.ownedProjectileCounts[ModContent.ProjectileType()] != 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] != 0) { for (int i = 0; i < 1000; i++) { - if (Main.projectile[i].active && Main.projectile[i].type == ModContent.ProjectileType() && Main.projectile[i].owner == player.whoAmI) + if (Main.projectile[i].active && Main.projectile[i].type == ModContent.ProjectileType() && Main.projectile[i].owner == player.whoAmI) { Main.projectile[i].Kill(); break; diff --git a/Items/Fishing/PolarisParrotfish.cs b/Items/Fishing/PolarisParrotfish.cs index 3be9c8186a..146c039150 100644 --- a/Items/Fishing/PolarisParrotfish.cs +++ b/Items/Fishing/PolarisParrotfish.cs @@ -39,12 +39,12 @@ namespace CalamityMod.Items.Fishing public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { CalamityPlayer modPlayer = player.Calamity(); - if (modPlayer.polarisBoostThree) + if (modPlayer.polarisBoostThree) //Homes in and explodes { Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 2f); return false; } - else if (modPlayer.polarisBoostTwo) + else if (modPlayer.polarisBoostTwo) //Splits on enemy or tile hits { Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.25), knockBack, player.whoAmI, 0f, 1f); return false; @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Fishing return true; } - public override Vector2? HoldoutOrigin() + public override Vector2? HoldoutOrigin() //so it looks normal when holding { return new Vector2(10, 10); }