From 5764e0a4b2bd678b473c191fb959291914a9e392 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 6 Mar 2016 17:14:13 +0000 Subject: [PATCH] Capital ships destroyed / lost triggers. --- src/battle/capitalShips.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle/capitalShips.c b/src/battle/capitalShips.c index 0e7ab4e..555f12a 100644 --- a/src/battle/capitalShips.c +++ b/src/battle/capitalShips.c @@ -94,10 +94,14 @@ void doCapitalShip(void) if (self->side == SIDE_ALLIES) { battle.stats[STAT_CAPITAL_SHIPS_LOST]++; + + runScriptFunction("CAPITAL_SHIPS_LOST %d", battle.stats[STAT_CAPITAL_SHIPS_LOST]); } else { battle.stats[STAT_CAPITAL_SHIPS_DESTROYED]++; + + runScriptFunction("CAPITAL_SHIPS_DESTROYED %d", battle.stats[STAT_CAPITAL_SHIPS_DESTROYED]); } } }