diff --git a/src/defs.h b/src/defs.h index 2a41fa3..e1fa3dd 100644 --- a/src/defs.h +++ b/src/defs.h @@ -72,6 +72,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define EF_NO_MT_BOX (2 << 6) #define EF_CIVILIAN (2 << 7) #define EF_HAS_ROPE (2 << 8) +#define EF_ALWAYS_FLEES (2 << 9) enum { diff --git a/src/galaxy/mission.c b/src/galaxy/mission.c index 6eb5cdc..b1dae65 100644 --- a/src/galaxy/mission.c +++ b/src/galaxy/mission.c @@ -105,6 +105,8 @@ void completeMission(void) selectWidget("continue", "battleWon"); game.stats[STAT_MISSIONS_COMPLETED]++; + + fleeAllEnemies(); } } diff --git a/src/galaxy/mission.h b/src/galaxy/mission.h index a2c8ab2..8b733ba 100644 --- a/src/galaxy/mission.h +++ b/src/galaxy/mission.h @@ -40,6 +40,7 @@ extern void activateNextWaypoint(void); extern void selectWidget(const char *name, const char *group); extern Entity *spawnExtractionPoint(void); extern void failIncompleteObjectives(void); +extern void fleeAllEnemies(void); extern Battle battle; extern Entity *player;