TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ RightClick()

virtual bool Terraria.ModLoader.GlobalBuff.RightClick ( int type,
int buffIndex )
inlinevirtual

Allows you to make things happen when the buff icon is right-clicked. Return false to prevent the buff from being cancelled.

Parameters
typeThe buff type
buffIndexThe index in Main.LocalPlayer.buffType and .buffTime of the buff
Returns
true for allowing the buff to be cancelled, false to prevent the buff from being cancelled

Definition at line 105 of file GlobalBuff.cs.

106 {
107 return true;
108 }