|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Removes the buff type and shuffles the remaining buff indexes down to fill the gap. Note that only buffs contained in F:Terraria.ID.BuffID.Sets.CanBeRemovedByNetMessage can be removed with this method. The intention is that those specific buffs are "owned" by the player who inflicts them, so they can be freely removed by multiplayer clients.
In all other cases code running on the server or in single player is in charge of the NPC debuffs and M:Terraria.NPC.DelBuff(System.Int32) should be used directly.
| buffTypeToRemove | The buff type |
Definition at line 106754 of file NPC.cs.
References Terraria.ID.BuffID.Sets.CanBeRemovedByNetMessage, Terraria.Main.netMode, and Terraria.NetMessage.SendData().
Here is the call graph for this function: