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

◆ CountBuffs()

int Terraria.Player.CountBuffs ( )
inline

Definition at line 5908 of file Player.cs.

5909 {
5910 int num = 0;
5911 for (int i = 0; i < maxBuffs; i++)
5912 {
5913 if (buffType[num] > 0)
5914 {
5915 num++;
5916 }
5917 }
5918 return num;
5919 }
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
Definition Player.cs:1684
static int maxBuffs
Definition Player.cs:3380

References Terraria.Player.buffType, and Terraria.Player.maxBuffs.

Referenced by Terraria.Player.QuickBuff().

+ Here is the caller graph for this function: