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

◆ UpdateIntStat()

override void Terraria.Social.WeGame.AchievementsSocialModule.UpdateIntStat ( string name,
int value )
inline

Definition at line 180 of file AchievementsSocialModule.cs.

181 {
182 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
183 //IL_001e: Unknown result type (might be due to invalid IL or missing references)
184 IRailPlayerStats myPlayerStats = GetMyPlayerStats();
185 if (myPlayerStats != null)
186 {
187 int num = 0;
188 if ((int)myPlayerStats.GetStatValue(name, ref num) == 0 && num < value)
189 {
190 myPlayerStats.SetStatValue(name, value);
191 }
192 }
193 }

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