mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Perform aircraft transfers at the end of the turn.
This commit is contained in:
@@ -61,6 +61,13 @@ class AirLosses:
|
||||
losses_by_type[loss.flight.unit_type] += loss.flight.count
|
||||
return losses_by_type
|
||||
|
||||
def surviving_flight_members(self, flight: Flight) -> int:
|
||||
losses = 0
|
||||
for loss in self.losses:
|
||||
if loss.flight == flight:
|
||||
losses += 1
|
||||
return flight.count - losses
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class StateData:
|
||||
|
||||
Reference in New Issue
Block a user