otavepto b016f3dafa refactor user_stats
* use const str as a param for defined_achievements_find

* GetStat()/SetStat(): return false if given name is not defined by stats.txt

* according to docs:
GetAchievement()/SetAchievement()/ClearAchievement()/GetAchievementAndUnlockTime()/IndicateAchievementProgress()
will always return true if the name was not null and exists in Admin page (achievements.json)

* ClearAchievement(): don't write user data unless json object doesn't exist, or key "earned" is true

* reduce the code in GetAchievementDisplayAttribute()

* according to docs IndicateAchievementProgress() returns false if the achievement is already unlocked

* many logging
2024-01-25 23:24:16 +02:00
..
2024-01-25 23:24:16 +02:00
2023-12-28 01:30:46 +02:00
2024-01-25 23:24:16 +02:00
2023-12-28 01:30:46 +02:00
2023-12-28 01:30:46 +02:00
2024-01-25 23:24:16 +02:00
2023-12-28 01:30:46 +02:00
2024-01-25 23:24:16 +02:00
2024-01-25 23:24:16 +02:00
2024-01-20 18:46:43 +02:00
2024-01-20 18:46:43 +02:00
2024-01-20 18:46:43 +02:00
2023-12-28 01:30:46 +02:00