mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user