1 using Microsoft.Xna.Framework;
2 using Microsoft.Xna.Framework.Graphics;
3 using System.Collections.Generic;
31 public virtual bool Autoload(ref
string name) {
32 return mod.Properties.Autoload;
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) {
virtual bool Autoload(ref string name)
Allows you to automatically load a GlobalBuff instead of using Mod.AddGlobalBuff. Return true to allo...
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 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...
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 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 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 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...
Mod is an abstract class that you will override. It serves as a central place from which the mod's co...
This class allows you to modify the behavior of any buff in the game.
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...