![how to update tmodloader terraria how to update tmodloader terraria](https://i.imgur.com/VvgP6O8.png)
![how to update tmodloader terraria how to update tmodloader terraria](https://i.imgur.com/Y15x1n4.png)
Return false to prevent the buff from being cancelled. More.Īllows you to make things happen when the buff icon is right-clicked. The vanilla re-apply code sets the buff time to the "time" argument if that argument is larger than the current buff time. Return true to block the vanilla re-apply code from being called returns false by default. 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. 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. Return false to prevent drawing the buff. PreDraw (SpriteBatch spriteBatch, int buffIndex, ref BuffDrawParams drawParams)Īllows you to draw things before the default draw code is ran.
HOW TO UPDATE TMODLOADER TERRARIA MOD
skipped is true if you or another mod has skipped drawing the buff (possibly hiding it or in favor of new visuals). PostDraw (SpriteBatch spriteBatch, int buffIndex, BuffDrawParams drawParams)Īllows you to draw things after the buff has been drawn. 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. This class serves as a place for you to define a new buff and how that buff behaves.