Allow script to immediately terminate mission.

This commit is contained in:
Steve 2016-05-29 09:36:37 +01:00
parent 6d8f9f575e
commit b723d42dd4
1 changed files with 6 additions and 0 deletions

View File

@ -247,6 +247,12 @@ static void executeNextLine(ScriptRunner *runner)
completeAllObjectives();
completeMission();
}
else if (strcmp(command, "END_MISSION") == 0)
{
battle.unwinnable = 1;
completeMission();
battle.missionFinishedTimer = -FPS * 999;
}
else if (strcmp(command, "FAIL_MISSION") == 0)
{
addHudMessage(colors.red, _("Mission Failed!"));