diff --git a/src/battle/player.h b/src/battle/player.h index ace2b8c..7f39fb5 100644 --- a/src/battle/player.h +++ b/src/battle/player.h @@ -44,6 +44,7 @@ extern long lookup(char *name); extern Entity *spawnFighter(char *name, int x, int y, int side); extern int isAcceptControl(void); extern void resetAcceptControls(void); +extern void awardTrophy(char *id); extern App app; extern Battle battle; diff --git a/src/game/trophies.c b/src/game/trophies.c index e8ea045..f7e93ac 100644 --- a/src/game/trophies.c +++ b/src/game/trophies.c @@ -138,6 +138,7 @@ Trophy *getTrophy(char *id) static void loadTrophyData(char *filename) { + /* cJSON *root, *node; char *text; Trophy *t, *tail; @@ -160,7 +161,7 @@ static void loadTrophyData(char *filename) t->value = lookup(cJSON_GetObjectItem(node, "value")->valuestring); t->hidden = getJSONValue(node, "hidden", 0); - /* can't use the getJSONValue here, as it could lead to false positives */ + // can't use the getJSONValue here, as it could lead to false positives if (cJSON_GetObjectItem(node, "stat")) { t->stat = lookup(cJSON_GetObjectItem(node, "stat")->valuestring); @@ -173,6 +174,7 @@ static void loadTrophyData(char *filename) cJSON_Delete(root); free(text); + */ } void awardStatsTrophies(void)