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

◆ RightClick()

virtual bool Terraria.ModLoader.ModBuff.RightClick ( 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
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 121 of file ModBuff.cs.

122 {
123 return true;
124 }