From f9d02696fd818567f0dfe39230b892da85dfe7ec Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 3 Apr 2016 08:37:09 +0100 Subject: [PATCH] Added mines destroyed stat. --- src/defs.h | 1 + src/galaxy/stats.c | 1 + src/system/lookup.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/defs.h b/src/defs.h index cc7d658..a07cb3c 100644 --- a/src/defs.h +++ b/src/defs.h @@ -342,6 +342,7 @@ enum STAT_EPIC_KILL_STREAK, STAT_CAPITAL_SHIPS_DESTROYED, STAT_CAPITAL_SHIPS_LOST, + STAT_MINES_DESTROYED, /* add stats before here, so as not to mess up the stats screen */ STAT_TIME, STAT_MAX diff --git a/src/galaxy/stats.c b/src/galaxy/stats.c index 9f99a4e..847c689 100644 --- a/src/galaxy/stats.c +++ b/src/galaxy/stats.c @@ -68,6 +68,7 @@ void initStats(void) statDescription[STAT_WAYPOINTS_VISITED] = _("Waypoints Visited"); statDescription[STAT_CAPITAL_SHIPS_DESTROYED] = _("Capital Ships Destroyed"); statDescription[STAT_CAPITAL_SHIPS_LOST] = _("Capital Ships Lost"); + statDescription[STAT_MINES_DESTROYED] = _("Mines Destroyed"); statDescription[STAT_TIME] = _("Time Played"); } diff --git a/src/system/lookup.c b/src/system/lookup.c index 964129d..299aa76 100644 --- a/src/system/lookup.c +++ b/src/system/lookup.c @@ -175,6 +175,7 @@ void initLookups(void) addLookup("STAT_EPIC_KILL_STREAK", STAT_EPIC_KILL_STREAK); addLookup("STAT_CAPITAL_SHIPS_DESTROYED", STAT_CAPITAL_SHIPS_DESTROYED); addLookup("STAT_CAPITAL_SHIPS_LOST", STAT_CAPITAL_SHIPS_LOST); + addLookup("STAT_MINES_DESTROYED", STAT_MINES_DESTROYED); addLookup("STAT_TIME", STAT_TIME); }