Signus debuff changes
This commit is contained in:
1 parent
2ee9869c2a
commit
bfa6b060f1
5 files changed
+15
-9
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System.IO;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.NPCs.CalamityAIs.CalamityRegularEnemyAIs;
|
||||
using CalamityMod.World;
|
||||
@@ -179,6 +180,14 @@ namespace CalamityMod.NPCs.Signus
|
||||
return NPC.alpha == 0;
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
if (info.Damage <= 0)
|
||||
return;
|
||||
|
||||
target.AddBuff(ModContent.BuffType<Voidfrost>(), 180);
|
||||
}
|
||||
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
if (NPC.life <= 0)
|
||||
|
||||
@@ -60,13 +60,5 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
Projectile.Damage();
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
if (info.Damage <= 0)
|
||||
return;
|
||||
|
||||
target.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 120);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.IO;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -89,7 +90,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (info.Damage <= 0)
|
||||
return;
|
||||
|
||||
target.AddBuff(ModContent.BuffType<WhisperingDeath>(), 180);
|
||||
target.AddBuff(ModContent.BuffType<Laceration>(), 180);
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<Laceration>(), 240);
|
||||
Projectile.Kill();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Graphics.Primitives;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -104,6 +105,8 @@ namespace CalamityMod.Projectiles.Summon
|
||||
return MathHelper.Lerp(0f, maxWidth, expansionCompletion);
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<Voidfrost>(), 240);
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Projectile.localAI[0] = 0f;
|
||||
|
||||
Reference in new issue
Block a user