From 397a8cda6b5c3a75c28fbdc581ce908ea9f3cdc8 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 16 Jan 2024 23:13:16 -0500 Subject: [PATCH] Added electric dust to Ada Throwing Axe stealth --- Items/Weapons/Rogue/AdamantiteThrowingAxe.cs | 2 +- Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Items/Weapons/Rogue/AdamantiteThrowingAxe.cs b/Items/Weapons/Rogue/AdamantiteThrowingAxe.cs index 68acc98072..00283ddd32 100644 --- a/Items/Weapons/Rogue/AdamantiteThrowingAxe.cs +++ b/Items/Weapons/Rogue/AdamantiteThrowingAxe.cs @@ -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) diff --git a/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs index 713a556774..790423f127 100644 --- a/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs +++ b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs @@ -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;