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

◆ UpdateLuck()

void Terraria.Player.UpdateLuck ( )
inline

Definition at line 26892 of file Player.cs.

26893 {
26896 if (luckNeedsSync && whoAmI == Main.myPlayer)
26897 {
26898 luckNeedsSync = false;
26899 NetMessage.SendData(134, -1, -1, null, whoAmI);
26900 }
26901 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
bool luckNeedsSync
Definition Player.cs:3213
void RecalculateLuck()
Definition Player.cs:26985
void UpdateLuckFactors()
Definition Player.cs:26970

References Terraria.Player.luckNeedsSync, Terraria.Main.myPlayer, Terraria.Player.RecalculateLuck(), Terraria.NetMessage.SendData(), Terraria.Player.UpdateLuckFactors(), and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.Update().

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