Add on-leave toggle for pilots.

Pilots on leave will not be assignable to any flights (but will not be
unassigned from any already scheduled this turn).

https://github.com/dcs-liberation/dcs_liberation/issues/276
This commit is contained in:
Dan Albert
2021-05-27 17:09:09 -07:00
parent 9a9c351f47
commit 1521f0a9b1
5 changed files with 100 additions and 14 deletions

View File

@@ -126,7 +126,7 @@ class Event:
not loss.pilot.player
or not self.game.settings.invulnerable_player_pilots
):
loss.pilot.alive = False
loss.pilot.kill()
aircraft = loss.flight.unit_type
cp = loss.flight.departure
available = cp.base.total_units_of_type(aircraft)