Added electric dust to Ada Throwing Axe stealth

This commit is contained in:
CongratsIsTrash committed 2024-01-16 23:13:16 -05:00
1 parent 1d5361042a
commit 397a8cda6b
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.DamageType = RogueDamageClass.Instance;
}
public override float StealthVelocityMultiplier => 1.25f;
public override float StealthVelocityMultiplier => 1.3f;
public override float StealthDamageMultiplier => 1.2f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
@@ -30,6 +30,12 @@ namespace CalamityMod.Projectiles.Rogue
{
float rotation = (Math.Abs(Projectile.velocity.X) + Math.Abs(Projectile.velocity.Y)) * 0.025f;
Projectile.rotation += rotation * Projectile.direction;
if (Projectile.Calamity().stealthStrike && Main.rand.NextBool(3))
{
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 226, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
}
if (Projectile.timeLeft < 570 && !Projectile.Calamity().stealthStrike)
{
Projectile.velocity.X *= 0.96f;