mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-24 17:34:16 +08:00
b016f3dafa
* 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