Update conditions when capital ships are destroyed.
This commit is contained in:
parent
541c9af0b8
commit
f7c1aa6f1b
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue