Bouncy Spiky Ball now fires 4 at once on SS
This commit is contained in:
1 parent
4b23b6480c
commit
2525df7db7
1 file changed
+12
-4
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
DisplayName.SetDefault("Bouncy Spiky Ball");
|
||||
Tooltip.SetDefault(@"Throws a very bouncy ball that ricochets off walls and enemies
|
||||
Receives a small boost in damage and velocity after bouncing off an enemy
|
||||
Stealth strikes provide a bigger boost after ricocheting");
|
||||
Stealth strikes throw four at once and provide a bigger boost after ricocheting");
|
||||
SacrificeTotal = 99;
|
||||
}
|
||||
|
||||
@@ -44,9 +44,17 @@ Stealth strikes provide a bigger boost after ricocheting");
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
int spread = 3;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3,4), velocity.Y + Main.rand.Next(-3,4)).RotatedBy(MathHelper.ToRadians(spread));
|
||||
int proj = Projectile.NewProjectile(source, position, perturbedspeed, type, damage, knockback, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
}
|
||||
spread -= Main.rand.Next(1,4);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user