Attempt to complete eliminate all objective immediately, if no enemies are remaining.
This commit is contained in:
parent
fb8063b581
commit
1115309331
|
@ -206,6 +206,11 @@ void activateObjectives(char *objectives)
|
||||||
{
|
{
|
||||||
addHudMessage(colors.cyan, "New Objective : %s", o->description);
|
addHudMessage(colors.cyan, "New Objective : %s", o->description);
|
||||||
o->active = 1;
|
o->active = 1;
|
||||||
|
|
||||||
|
if (o->isEliminateAll && battle.stats[STAT_ENEMIES_KILLED] == battle.numInitialEnemies)
|
||||||
|
{
|
||||||
|
updateObjective(o->targetName, o->targetType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue