mythril knife inflicts poisoned/venom instead of cursed inferno/gsi

This commit is contained in:
ben-tk committed 2022-10-13 15:38:44 -04:00
1 parent 82bdc90420
commit 1e6d04305e
2 files changed
+29 -9

No files matched your search

+1 -1
View File
@@ -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;
}
+28 -8
View File
@@ -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<Irradiated>(), 300);
target.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 300);
target.AddBuff(BuffID.Poisoned, 300);
target.AddBuff(BuffID.Venom, 120);
target.AddBuff(ModContent.BuffType<Irradiated>(), 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<Irradiated>(), 300);
target.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 300);
target.AddBuff(BuffID.Poisoned, 300);
target.AddBuff(BuffID.Venom, 120);
target.AddBuff(ModContent.BuffType<Irradiated>(), 60);
}
}
}