TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ID.BuffID.Sets Class Reference
+ Collaboration diagram for Terraria.ID.BuffID.Sets:

Classes

class  BuffMountData
 Stores data for mount buffs. More...
 

Static Public Attributes

static SetFactory Factory
 
static bool[] IsWellFed
 If true for a given T:Terraria.ID.BuffID, then that buff is some variation of F:Terraria.ID.BuffID.WellFed.
Defaults to false.
 
static bool[] IsFedState
 If true for a given T:Terraria.ID.BuffID, then that buff is related to player hunger.
Buffs in this set cannot be active at the same time.
Defaults to false.
 
static bool[] IsATagBuff
 If true for a given T:Terraria.ID.BuffID, then that buff is not considered a typical debuff, but is a buff used to "tag" entities for other purposes.

Whip debuffs are the primary example of tag buffs, they facilitate a combat mechanic rather than affect the NPC directly.


Buffs in this set can be applied to all NPCs unless that NPC sets F:Terraria.ID.NPCID.Sets.ImmuneToAllBuffs to prevent it.

Defaults to false.
 
static bool[] TimeLeftDoesNotDecrease
 If true for a given T:Terraria.ID.BuffID, then that buff will never run out.
Useful for buffs that are conditionally removed.
Defaults to false.
 
static bool[] CanBeRemovedByNetMessage
 If true for a given T:Terraria.ID.BuffID, then that buff can be removed from an NPC using M:Terraria.NPC.RequestBuffRemoval(System.Int32).
Useful for "flag" buffs that should go away on hit, like the Firecracker'sF:Terraria.ID.BuffID.FlameWhipEnemyDebuff.
Defaults to false.
 
static bool[] IsAFlaskBuff
 If true for a given T:Terraria.ID.BuffID, then that buff corresponds to a flask item.
Flask items are categorized into the F:Terraria.ID.ContentSamples.CreativeHelper.ItemGroup.Flask group in Journey Mode.
Defaults to false.
 
static bool[] NurseCannotRemoveDebuff
 If true for a given T:Terraria.ID.BuffID, then that debuff cannot be removed by the Nurse.
Defaults to false.
 
static BuffMountData[] BasicMountData
 If not null for a given T:Terraria.ID.BuffID, then that buff is linked to a T:Terraria.Mount and will forcibly mount the player if active.
All entries in this set should have F:Terraria.Main.buffNoTimeDisplay and F:Terraria.Main.buffNoSave set to true.
Defaults to null.
 
static bool[] LongerExpertDebuff
 If true for a given T:Terraria.ID.BuffID, then that buff will have a longer duration in P:Terraria.Main.expertMode.
 
static List< int >[] GrantImmunityWith
 An NPC will automatically become immune (F:Terraria.NPC.buffImmune) to the indexed buff type if it is already immune to any buff in the corresponding List.
For NPCs with F:Terraria.ID.NPCID.Sets.ImmuneToAllBuffs or F:Terraria.ID.NPCID.Sets.ImmuneToRegularBuffs set to true, the reverse of that logic is used to automatically set the NPC as vulnerable: The NPC will automatically become vulnerable to the indexed buff type if it is specifically vulnerable to all of the buffs in the corresponding List.

This set helps standardize several buff immunity inheritance rules that are effectively present in Terraria while providing modders the ability to do the same. For example, all NPC with immunity to F:Terraria.ID.BuffID.OnFire are also immune to F:Terraria.ID.BuffID.OnFire3 (aka, "On Fire!" and "Hellfire").
Modders can use this set to create buffs that act as variants of existing buffs, and should inherit the immunity value of those existing buffs. NPC from Terraria and other mods will automatically have these immunity rules applied, regardless of mod load order.
 

Static Private Member Functions

static Sets ()
 

Detailed Description

Definition at line 9 of file BuffID.cs.


The documentation for this class was generated from the following file: