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

◆ SetIntStat()

bool Terraria.Social.WeGame.AchievementsSocialModule.SetIntStat ( string name,
int value )
inlineprivate

Definition at line 195 of file AchievementsSocialModule.cs.

196 {
197 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
198 //IL_0015: Unknown result type (might be due to invalid IL or missing references)
199 //IL_0017: Invalid comparison between Unknown and I4
200 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
201 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
202 IRailPlayerStats myPlayerStats = GetMyPlayerStats();
203 RailResult val = (RailResult)1;
204 if (myPlayerStats != null)
205 {
206 val = myPlayerStats.SetStatValue(name, value);
207 }
208 return (int)val == 0;
209 }

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