Update conditions when capital ships are destroyed.

This commit is contained in:
Steve 2016-04-16 08:59:14 +01:00
parent 541c9af0b8
commit f7c1aa6f1b
2 changed files with 5 additions and 2 deletions

View File

@ -318,8 +318,8 @@ static void die(void)
}
updateObjective(self->name, TT_DESTROY);
updateObjective(self->groupName, TT_DESTROY);
updateCondition(self->name, TT_DESTROY);
}
static void handleDisabled(void)
@ -662,6 +662,8 @@ void loadCapitalShips(cJSON *node)
updateCapitalShipComponentProperties(e, flags);
}
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "%s (%d / %d)", e->name, e->health, e->maxHealth);
}
node = node->next;

View File

@ -51,6 +51,7 @@ extern char *getJSONValueStr(cJSON *node, char *name, char *defValue);
extern char *getTranslatedString(char *string);
extern void addLargeExplosion(void);
extern char **toTypeArray(char *types, int *numTypes);
extern void updateCondition(char *name, int type);
extern Battle battle;
extern Entity *self;