TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ debuff

bool [] Terraria.Main.debuff = new bool[BuffID.Count]
static

Categorizes status effects for which this is set to true as being debuffs instead of buffs.
This has multiple effects on gameplay:

  • the Nurse can remove the status effect when healing the afflicted player (to prevent this, refer to F:Terraria.ID.BuffID.Sets.NurseCannotRemoveDebuff)
  • the status effect cannot be cleared from overflowing the status effect cap (buffs will be cleared instead)
  • the status effect cannot be cleared by right-clicking it (which can be done for all other status effect types)
    Defaults to false; all vanilla debuffs have their entries here set to true.

Definition at line 844 of file Main.cs.

Referenced by Terraria.NPC.AddBuff(), Terraria.Player.AddBuff_ActuallyTryToAddTheBuff(), Terraria.Main.GUIChatDrawInner(), Terraria.Main.Initialize_TileAndNPCData1(), Terraria.ModLoader.BuffLoader.ResizeArrays(), and Terraria.Main.TryRemovingBuff().