27 lines
671 B
C#
27 lines
671 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|