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

◆ TryToResetHungerToNeutral()

void Terraria.Player.TryToResetHungerToNeutral ( )
inline

Definition at line 10066 of file Player.cs.

10067 {
10068 bool flag = false;
10069 for (int i = 0; i < maxBuffs; i++)
10070 {
10071 if (buffType[i] > 0 && buffTime[i] > 0 && (buffType[i] == 332 || buffType[i] == 333 || buffType[i] == 334))
10072 {
10073 buffTime[i] = 0;
10074 flag = true;
10075 }
10076 }
10077 if (flag)
10078 {
10080 }
10081 }
int[] buffTime
The remaining durations in ticks of all buffs this player has active. A value of 0 means that buff ...
Definition Player.cs:1692
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
void UpdateHungerBuffs()
Definition Player.cs:10083

References Terraria.Player.buffTime, Terraria.Player.buffType, Terraria.Player.maxBuffs, and Terraria.Player.UpdateHungerBuffs().

Referenced by Terraria.Player.ApplyPotionDelay(), and Terraria.Player.QuickHeal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: