1using Microsoft.Xna.Framework;
2using Microsoft.Xna.Framework.Graphics;
3using System.Collections.Generic;
31 public virtual bool Autoload(ref
string name) {
38 public virtual void Update(
int type, Player player, ref
int buffIndex) {
44 public virtual void Update(
int type, NPC npc, ref
int buffIndex) {
50 public virtual bool ReApply(
int type, Player player,
int time,
int buffIndex) {
57 public virtual bool ReApply(
int type, NPC npc,
int time,
int buffIndex) {
64 public virtual void ModifyBuffTip(
int type, ref
string tip, ref
int rare) {
76 public virtual void DrawCustomBuffTip(
string buffTip, SpriteBatch spriteBatch,
int originX,
int originY) {
This class allows you to modify the behavior of any buff in the game.
Mod mod
The mod to which this GlobalBuff belongs.
virtual void ModifyBuffTip(int type, ref string tip, ref int rare)
Allows you to modify the tooltip that displays when the mouse hovers over the buff icon,...
virtual bool ReApply(int type, NPC npc, int time, int buffIndex)
Allows to you make special things happen when adding the given buff type to an NPC when the NPC alrea...
virtual void Update(int type, Player player, ref int buffIndex)
Allows you to make the buff with the given ID give certain effects to a player. If you remove the buf...
virtual void CustomBuffTipSize(string buffTip, List< Vector2 > sizes)
If you are using the DrawCustomBuffTip hook, then you must use this hook as well. Calculate the locat...
virtual bool Autoload(ref string name)
Allows you to automatically load a GlobalBuff instead of using Mod.AddGlobalBuff. Return true to allo...
string Name
The internal name of this GlobalBuff instance.
virtual void Update(int type, NPC npc, ref int buffIndex)
Allows you to make the buff with the given ID give certain effects to an NPC. If you remove the buff ...
virtual void DrawCustomBuffTip(string buffTip, SpriteBatch spriteBatch, int originX, int originY)
Allows you to draw whatever you want when a buff tooltip is drawn. The originX and originY parameters...
virtual bool ReApply(int type, Player player, int time, int buffIndex)
Allows to you make special things happen when adding the given type of buff to a player when the play...
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...