From 1e6d04305efb7fde3dcf4a1e9061adf3ebcc4e7c Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:38:44 -0400 Subject: [PATCH] mythril knife inflicts poisoned/venom instead of cursed inferno/gsi --- Items/Weapons/Rogue/MythrilKnife.cs | 2 +- Projectiles/Rogue/MythrilKnifeProjectile.cs | 36 ++++++++++++++++----- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/Items/Weapons/Rogue/MythrilKnife.cs b/Items/Weapons/Rogue/MythrilKnife.cs index 0a5a243d27..f871e52f24 100644 --- a/Items/Weapons/Rogue/MythrilKnife.cs +++ b/Items/Weapons/Rogue/MythrilKnife.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { DisplayName.SetDefault("Mythril Knife"); - Tooltip.SetDefault("Stealth strikes inflict a wide assortment of debuffs"); + Tooltip.SetDefault("Stealth strikes inflict are coated in deadly toxins, inflicting irradiated, poison, and acid venom"); SacrificeTotal = 99; } diff --git a/Projectiles/Rogue/MythrilKnifeProjectile.cs b/Projectiles/Rogue/MythrilKnifeProjectile.cs index 8cff5d25ba..e926f54fac 100644 --- a/Projectiles/Rogue/MythrilKnifeProjectile.cs +++ b/Projectiles/Rogue/MythrilKnifeProjectile.cs @@ -1,5 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -29,6 +28,27 @@ namespace CalamityMod.Projectiles.Rogue Projectile.DamageType = RogueDamageClass.Instance; } + public override void AI() + { + if (Projectile.Calamity().stealthStrike) + { + if (Main.rand.NextBool(7)) + { + int index = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 171, 0.0f, 0.0f, 100, new Color(), 1f); + Main.dust[index].noGravity = true; + Main.dust[index].fadeIn = 1.5f; + Main.dust[index].velocity *= 0.25f; + } + if (Main.rand.NextBool(5)) + { + int index = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 46, 0.0f, 0.0f, 100, new Color(), 1f); + Main.dust[index].noGravity = true; + Main.dust[index].fadeIn = 1.5f; + Main.dust[index].velocity *= 0.25f; + } + } + } + public override bool OnTileCollide(Vector2 oldVelocity) { Projectile.penetrate--; @@ -70,9 +90,9 @@ namespace CalamityMod.Projectiles.Rogue if (!Projectile.Calamity().stealthStrike) return; - target.AddBuff(BuffID.CursedInferno, 300); - target.AddBuff(ModContent.BuffType(), 300); - target.AddBuff(ModContent.BuffType(), 300); + target.AddBuff(BuffID.Poisoned, 300); + target.AddBuff(BuffID.Venom, 120); + target.AddBuff(ModContent.BuffType(), 60); } public override void OnHitPvp(Player target, int damage, bool crit) @@ -80,9 +100,9 @@ namespace CalamityMod.Projectiles.Rogue if (!Projectile.Calamity().stealthStrike) return; - target.AddBuff(BuffID.CursedInferno, 300); - target.AddBuff(ModContent.BuffType(), 300); - target.AddBuff(ModContent.BuffType(), 300); + target.AddBuff(BuffID.Poisoned, 300); + target.AddBuff(BuffID.Venom, 120); + target.AddBuff(ModContent.BuffType(), 60); } } }