Return true to block the vanilla re-apply code from being called returns false by default. ReApply (NPC npc, int time, int buffIndex)Īllows to you make special things happen when adding this buff to an NPC when the NPC already has this buff. The vanilla re-apply code sets the buff time to the "time" argument if that argument is larger than the current buff time. ![]() ![]() ReApply (Player player, int time, int buffIndex)Īllows to you make special things happen when adding this buff to a player when the player already has this buff. ModifyBuffTip (ref string tip, ref int rare)Īllows you to modify the tooltip that displays when the mouse hovers over the buff icon, as well as the color the buff's name is drawn in. Use this method to either force or stop an autoload, and to change the default display name and texture path. Name is initialized to the overriding class name and texture is initialized to the namespace and overriding class name with periods replaced with slashes. ![]() Return true to allow autoloading by default returns the mod's autoload property. Autoload (ref string name, ref string texture)Īllows you to automatically load a buff instead of using Mod.AddBuff.
0 Comments
Leave a Reply. |