mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add comment
This commit is contained in:
parent
84b61b271b
commit
fc467b62e0
@ -255,6 +255,9 @@ class FormationAttackBuilder(IBuilder[FlightPlanT, LayoutT], ABC):
|
||||
@property
|
||||
def primary_flight_is_air_assault(self) -> bool:
|
||||
if self.flight is self.package.primary_flight:
|
||||
# Can't call self.package.primary_flight.flight_plan here
|
||||
# because the flight-plan wasn't created yet.
|
||||
# Calling the fligh_plan property would result in infinite recursion
|
||||
return self.flight.flight_type == FlightType.AIR_ASSAULT
|
||||
else:
|
||||
assert self.package.primary_flight is not None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user