48 internal string texture;
57 public virtual bool Autoload(ref
string name, ref
string texture) {
78 public virtual void Update(Player player, ref
int buffIndex) {
84 public virtual void Update(NPC npc, ref
int buffIndex) {
90 public virtual bool ReApply(Player player,
int time,
int buffIndex) {
97 public virtual bool ReApply(NPC npc,
int time,
int buffIndex) {
This class serves as a place for you to define a new buff and how that buff behaves.
virtual bool Autoload(ref string name, ref string texture)
Allows you to automatically load a buff instead of using Mod.AddBuff. Return true to allow autoloadin...
bool canBeCleared
Whether or not it is always safe to call Player.DelBuff on this buff. Setting this to false will prev...
virtual void Update(NPC npc, ref int buffIndex)
Allows you to make this buff give certain effects to the given NPC. If you remove the buff from the N...
virtual void ModifyBuffTip(ref string tip, ref int rare)
Allows you to modify the tooltip that displays when the mouse hovers over the buff icon,...
Mod mod
The mod that added this ModBuff.
int Type
The buff id of this buff.
virtual bool ReApply(Player player, int time, int buffIndex)
Allows to you make special things happen when adding this buff to a player when the player already ha...
ModTranslation Description
The translations of this buff's description.
virtual bool ReApply(NPC npc, int time, int buffIndex)
Allows to you make special things happen when adding this buff to an NPC when the NPC already has thi...
string Name
The internal name of this type of buff.
bool longerExpertDebuff
If this buff is a debuff, setting this to true will make this buff last twice as long on players in e...
virtual void Update(Player player, ref int buffIndex)
Allows you to make this buff give certain effects to the given player. If you remove the buff from th...
ModTranslation DisplayName
The translations of this buff's display name.
virtual void SetDefaults()
This is where all buff related assignments go. For example: Main.buffName[Type] = "Display Name"; Mai...
Mod is an abstract class that you will override. It serves as a central place from which the mod's co...
bool Autoload
Whether or not this mod will autoload content by default. Autoloading content means you do not need t...