Added electric dust to Ada Throwing Axe stealth
This commit is contained in:
1 parent
1d5361042a
commit
397a8cda6b
2 files changed
+7
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user