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

◆ UpdateLadyBugLuckTime()

void Terraria.Player.UpdateLadyBugLuckTime ( )
inlineprivate

Definition at line 17188 of file Player.cs.

17189 {
17190 if (ladyBugLuckTimeLeft > 0.0)
17191 {
17192 ladyBugLuckTimeLeft -= Main.desiredWorldEventsUpdateRate;
17193 if (ladyBugLuckTimeLeft < 0.0)
17194 {
17195 ladyBugLuckTimeLeft = 0.0;
17196 }
17197 }
17198 else if (ladyBugLuckTimeLeft < 0.0)
17199 {
17200 ladyBugLuckTimeLeft += Main.desiredWorldEventsUpdateRate;
17201 if (ladyBugLuckTimeLeft > 0.0)
17202 {
17203 ladyBugLuckTimeLeft = 0.0;
17204 }
17205 }
17206 }
double ladyBugLuckTimeLeft
Definition Player.cs:3203

References Terraria.Main.desiredWorldEventsUpdateRate, and Terraria.Player.ladyBugLuckTimeLeft.

Referenced by Terraria.Player.UpdateLuckFactors().

+ Here is the caller graph for this function: