poseidon has randomized piercing now
This commit is contained in:
1 parent
a016ed4ca6
commit
d2a0ae314d
2 files changed
+8
-1
No files matched your search
@@ -32,5 +32,12 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.shoot = ModContent.ProjectileType<PoseidonTyphoon>();
|
||||
item.shootSpeed = 10f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int typhoon = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 1f);
|
||||
Main.projectile[typhoon].penetrate = Main.rand.Next(4,11);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.height = 30;
|
||||
projectile.friendly = true;
|
||||
projectile.magic = true;
|
||||
projectile.penetrate = 10;
|
||||
projectile.penetrate = 10; //randomized in the item file now, penetrates 4 to 10 times
|
||||
projectile.timeLeft = 300;
|
||||
projectile.ignoreWater = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user