Dynamic Pursuer damage fix

This commit is contained in:
Merkalto committed 2022-08-20 08:08:00 -05:00
1 parent 2a04fb3aa3
commit c8e87d7c70
1 file changed
+5 -1
+5 -1
View File
@@ -58,9 +58,13 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 initialVelocity = velocity;
int totalDamage = damage;
if (player.Calamity().StealthStrikeAvailable())
{
initialVelocity *= 1.2f;
int proj = Projectile.NewProjectile(source, position, initialVelocity, type, (int)(damage * 0.12f), knockback, player.whoAmI);
totalDamage = (int)(damage * 0.12f);
}
int proj = Projectile.NewProjectile(source, position, initialVelocity, type, totalDamage, knockback, player.whoAmI);
if (proj.WithinBounds(Main.maxProjectiles))
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;