Support achievements that are triggered automatically with stats.

The achievements config MUST be generated with the achievements_gen.py script.
This commit is contained in:
Mr_Goldberg 2022-07-12 01:09:27 -04:00
parent 3f8ce69b6d
commit 8695ea2dce
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
5 changed files with 151 additions and 76 deletions

View file

@ -131,7 +131,7 @@ public:
//stats
std::map<std::string, Stat_config> getStats() { return stats; }
void setStatDefiniton(std::string name, struct Stat_config stat_config) {stats[name] = stat_config; }
void setStatDefiniton(std::string name, struct Stat_config stat_config) {stats[ascii_to_lowercase(name)] = stat_config; }
//subscribed lobby/group ids
std::set<uint64> subscribed_groups;