Implement Skirmisher armor set bonus
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Buffs.Debuffs;
|
||||
|
||||
namespace ForgottenWawiTech.Content.GlobalNPCs
|
||||
{
|
||||
public class ThermalMarkGlobalNPC : GlobalNPC
|
||||
{
|
||||
public bool ThermalMarked { get; set; }
|
||||
|
||||
public override bool InstancePerEntity => true;
|
||||
|
||||
public override void ResetEffects(NPC npc)
|
||||
{
|
||||
ThermalMarked = false;
|
||||
}
|
||||
|
||||
public override void ModifyIncomingHit(NPC npc, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
if (npc.HasBuff(ModContent.BuffType<ThermalMarkDebuff>()))
|
||||
{
|
||||
modifiers.FinalDamage *= 1.12f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user