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

◆ SetFloatStat()

bool Terraria.Social.WeGame.AchievementsSocialModule.SetFloatStat ( string name,
float value )
inlineprivate

Definition at line 164 of file AchievementsSocialModule.cs.

165 {
166 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
167 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
168 //IL_0018: Invalid comparison between Unknown and I4
169 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
170 //IL_0015: Unknown result type (might be due to invalid IL or missing references)
171 IRailPlayerStats myPlayerStats = GetMyPlayerStats();
172 RailResult val = (RailResult)1;
173 if (myPlayerStats != null)
174 {
175 val = myPlayerStats.SetStatValue(name, (double)value);
176 }
177 return (int)val == 0;
178 }

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