|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
static |
Indexed by NPC type and then Buff type. If true, this NPC type (F:Terraria.NPC.type) will be immune (F:Terraria.NPC.buffImmune) to the specified buff type. If false, the NPC will not be immune.
By default, NPCs aren't immune to any buffs, but F:Terraria.ID.NPCID.Sets.ImmuneToRegularBuffs or F:Terraria.ID.NPCID.Sets.ImmuneToAllBuffs can make an NPC immune to all buffs. The values in this set override those settings.
Additionally, the effects of F:Terraria.ID.BuffID.Sets.GrantImmunityWith will also be applied. Inherited buff immunities do not need to be specifically assigned, as they will be automatically applied. Setting an inherited debuff to false in this set can be used to undo the effects of F:Terraria.ID.BuffID.Sets.GrantImmunityWith, if needed.
Defaults to null, indicating no immunity override.
Definition at line 683 of file NPCID.cs.
Referenced by Terraria.ID.NPCID.Sets.Sets(), and Terraria.NPC.SetDefaults().