Update conditions when capital ships are destroyed.
This commit is contained in:
parent
541c9af0b8
commit
f7c1aa6f1b
|
@ -319,7 +319,7 @@ static void die(void)
|
||||||
|
|
||||||
updateObjective(self->name, TT_DESTROY);
|
updateObjective(self->name, TT_DESTROY);
|
||||||
|
|
||||||
updateObjective(self->groupName, TT_DESTROY);
|
updateCondition(self->name, TT_DESTROY);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handleDisabled(void)
|
static void handleDisabled(void)
|
||||||
|
@ -662,6 +662,8 @@ void loadCapitalShips(cJSON *node)
|
||||||
|
|
||||||
updateCapitalShipComponentProperties(e, flags);
|
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;
|
node = node->next;
|
||||||
|
|
|
@ -51,6 +51,7 @@ extern char *getJSONValueStr(cJSON *node, char *name, char *defValue);
|
||||||
extern char *getTranslatedString(char *string);
|
extern char *getTranslatedString(char *string);
|
||||||
extern void addLargeExplosion(void);
|
extern void addLargeExplosion(void);
|
||||||
extern char **toTypeArray(char *types, int *numTypes);
|
extern char **toTypeArray(char *types, int *numTypes);
|
||||||
|
extern void updateCondition(char *name, int type);
|
||||||
|
|
||||||
extern Battle battle;
|
extern Battle battle;
|
||||||
extern Entity *self;
|
extern Entity *self;
|
||||||
|
|
Loading…
Reference in New Issue