Force enemies to flee when the mission is complete.
This commit is contained in:
parent
095e8b65a4
commit
0b459a9927
|
@ -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_NO_MT_BOX (2 << 6)
|
||||||
#define EF_CIVILIAN (2 << 7)
|
#define EF_CIVILIAN (2 << 7)
|
||||||
#define EF_HAS_ROPE (2 << 8)
|
#define EF_HAS_ROPE (2 << 8)
|
||||||
|
#define EF_ALWAYS_FLEES (2 << 9)
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -105,6 +105,8 @@ void completeMission(void)
|
||||||
selectWidget("continue", "battleWon");
|
selectWidget("continue", "battleWon");
|
||||||
|
|
||||||
game.stats[STAT_MISSIONS_COMPLETED]++;
|
game.stats[STAT_MISSIONS_COMPLETED]++;
|
||||||
|
|
||||||
|
fleeAllEnemies();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ extern void activateNextWaypoint(void);
|
||||||
extern void selectWidget(const char *name, const char *group);
|
extern void selectWidget(const char *name, const char *group);
|
||||||
extern Entity *spawnExtractionPoint(void);
|
extern Entity *spawnExtractionPoint(void);
|
||||||
extern void failIncompleteObjectives(void);
|
extern void failIncompleteObjectives(void);
|
||||||
|
extern void fleeAllEnemies(void);
|
||||||
|
|
||||||
extern Battle battle;
|
extern Battle battle;
|
||||||
extern Entity *player;
|
extern Entity *player;
|
||||||
|
|
Loading…
Reference in New Issue