From 099152b8208670abac62d1c9e2a8fec8abf3ff42 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 28 Apr 2016 17:20:16 +0100 Subject: [PATCH] Trophy updates. --- data/trophies/trophies.json | 18 ++++++++++++------ src/game/trophies.c | 5 +++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/data/trophies/trophies.json b/data/trophies/trophies.json index addf45d..d5973c5 100644 --- a/data/trophies/trophies.json +++ b/data/trophies/trophies.json @@ -154,25 +154,25 @@ }, { "id" : "_CHALLENGE_25", - "title" : "", + "title" : "Dedicated", "description" : "Complete 25%% of all challenges", "value" : "TROPHY_BRONZE" }, { "id" : "_CHALLENGE_50", - "title" : "", + "title" : "Obssessed", "description" : "Complete 50%% of all challenges", "value" : "TROPHY_SILVER" }, { "id" : "_CHALLENGE_100", - "title" : "", + "title" : "Completitonist", "description" : "Complete 100%% of all challenges", "value" : "TROPHY_GOLD" }, { "id" : "ENEMY_50", - "title" : "", + "title" : "Hero", "description" : "Take down 50 enemies (player only)", "value" : "TROPHY_BRONZE", "stat" : "STAT_ENEMIES_KILLED_PLAYER", @@ -180,7 +180,7 @@ }, { "id" : "ENEMY_500", - "title" : "", + "title" : "Veteran", "description" : "Take down 500 enemies (player only)", "value" : "TROPHY_SILVER", "stat" : "STAT_ENEMIES_KILLED_PLAYER", @@ -188,7 +188,7 @@ }, { "id" : "ENEMY_5000", - "title" : "", + "title" : "Legend", "description" : "Take down 5,000 enemies (player only)", "value" : "TROPHY_GOLD", "stat" : "STAT_ENEMIES_KILLED_PLAYER", @@ -260,6 +260,12 @@ "statValue" : 13, "hidden" : 1 }, + { + "id" : "SURVIVOR", + "title" : "Survivor", + "description" : "Complete an epic battle without being killed", + "value" : "TROPHY_SILVER" + }, { "id" : "ATAF_DESTROYED", "title" : "Almost indestructable. Almost", diff --git a/src/game/trophies.c b/src/game/trophies.c index 667ebf3..ab497b6 100644 --- a/src/game/trophies.c +++ b/src/game/trophies.c @@ -453,6 +453,11 @@ void awardPostMissionTrophies(void) if (game.currentMission->epic) { awardTrophy("EPIC"); + + if (battle.stats[STAT_PLAYER_KILLED] == 0) + { + awardTrophy("SURVIVOR"); + } } }