tModLoader v2024.10
A mod to make and play Terraria mods
NPCDebuffImmunityData Class Reference

Unused: Replaced by NPCID.Sets.SpecificDebuffImmunity, NPCID.Sets.ImmuneToAllBuffs , and NPCID.Sets.ImmuneToRegularBuffs

Determines the default debuff immunities of an NPC. More...

Public Member Functions

void ApplyToNPC (NPC npc)
 Sets up NPC.buffImmune to be immune to the stored buffs. More...
 

Public Attributes

bool ImmuneToAllBuffsThatAreNotWhips
 If true, this NPC type (NPC.type) will be immune to all non-tag debuffs (BuffID.Sets.IsATagBuff).
 
bool ImmuneToWhips
 If true, this NPC type (NPC.type) will be immune to all tag debuffs (BuffID.Sets.IsATagBuff).
 
int[] SpecificallyImmuneTo
 This NPC type (NPC.type) will be immune to all BuffIDs in this array.
 

Detailed Description

Unused: Replaced by NPCID.Sets.SpecificDebuffImmunity, NPCID.Sets.ImmuneToAllBuffs , and NPCID.Sets.ImmuneToRegularBuffs

Determines the default debuff immunities of an NPC.

Member Function Documentation

◆ ApplyToNPC()

void NPCDebuffImmunityData.ApplyToNPC ( NPC  npc)

Sets up NPC.buffImmune to be immune to the stored buffs.

Parameters
npcThe NPC to apply immunities to.