Make player immortal upon mission completion / failure.
This commit is contained in:
parent
a82f8b6f2c
commit
693d563f27
|
@ -113,6 +113,8 @@ void completeMission(void)
|
|||
game.stats[STAT_MISSIONS_COMPLETED]++;
|
||||
|
||||
retreatEnemies();
|
||||
|
||||
player->flags |= EF_IMMORTAL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -125,6 +127,8 @@ void failMission(void)
|
|||
selectWidget("retry", "battleLost");
|
||||
|
||||
failIncompleteObjectives();
|
||||
|
||||
player->flags |= EF_IMMORTAL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue