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

◆ Eat()

void Terraria.GameContent.WellFedHelper.Eat ( int foodRank,
int foodBuffTime )
inline

Definition at line 35 of file WellFedHelper.cs.

36 {
37 int timeLeftToAdd = foodBuffTime;
38 if (foodRank >= 3)
39 {
40 AddTimeTo(ref _timeLeftRank3, ref timeLeftToAdd, 72000);
41 }
42 if (foodRank >= 2)
43 {
44 AddTimeTo(ref _timeLeftRank2, ref timeLeftToAdd, 72000);
45 }
46 if (foodRank >= 1)
47 {
48 AddTimeTo(ref _timeLeftRank1, ref timeLeftToAdd, 72000);
49 }
50 }
void AddTimeTo(ref int foodTimeCounter, ref int timeLeftToAdd, int counterMaximumTime)

References Terraria.GameContent.WellFedHelper._timeLeftRank1, Terraria.GameContent.WellFedHelper._timeLeftRank2, Terraria.GameContent.WellFedHelper._timeLeftRank3, and Terraria.GameContent.WellFedHelper.AddTimeTo().