Files
ForgottenWawiTech/Content/Buffs/Debuffs/ThermalMarkDebuff.cs
T

26 lines
746 B
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using ForgottenWawiTech.Content.GlobalNPCs;
namespace ForgottenWawiTech.Content.Buffs.Debuffs
{
public class ThermalMarkDebuff : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
BuffID.Sets.LongerExpertDebuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
npc.GetGlobalNPC<ThermalMarkGlobalNPC>().ThermalMarked = true;
Lighting.AddLight(npc.Center, 0.9f, 0.45f, 0.2f);
}
}
}