Implement Skirmisher armor set bonus
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user