calplayer fixes
This commit is contained in:
1 parent
3891b05c8b
commit
dd155fcdc5
2 files changed
+6
-5
No files matched your search
@@ -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<PolarisBuff>()); }
|
||||
}
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<Projectiles.Ranged.Drataliornus>()] != 0)
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<Projectiles.Ranged.DrataliornusProj>()] != 0)
|
||||
{
|
||||
for (int i = 0; i < 1000; i++)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].type == ModContent.ProjectileType<Projectiles.Ranged.Drataliornus>() && Main.projectile[i].owner == player.whoAmI)
|
||||
if (Main.projectile[i].active && Main.projectile[i].type == ModContent.ProjectileType<Projectiles.Ranged.DrataliornusProj>() && Main.projectile[i].owner == player.whoAmI)
|
||||
{
|
||||
Main.projectile[i].Kill();
|
||||
break;
|
||||
|
||||
@@ -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<PolarStar>(), 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<PolarStar>(), (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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user