From 0eaeaba3869eea1dfd9aeda5185183827a06200c Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 4 Apr 2016 11:40:13 +0100 Subject: [PATCH] Disabling trophies for now. Will activate in v0.7 or later. --- src/battle/player.h | 1 + src/game/trophies.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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)