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

◆ UpdateFloatStat()

override void Terraria.Social.WeGame.AchievementsSocialModule.UpdateFloatStat ( string name,
float value )
inline

Definition at line 211 of file AchievementsSocialModule.cs.

212 {
213 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
214 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
215 IRailPlayerStats myPlayerStats = GetMyPlayerStats();
216 if (myPlayerStats != null)
217 {
218 double num = 0.0;
219 if ((int)myPlayerStats.GetStatValue(name, ref num) == 0 && (float)num < value)
220 {
221 myPlayerStats.SetStatValue(name, (double)value);
222 }
223 }
224 }

References Terraria.Social.WeGame.AchievementsSocialModule.GetMyPlayerStats(), and System.value.