Force 'Nothing' task for ferry flights

pydcs doesn't export this task, although every aircraft is capable of doing 'Nothing' 😂
This commit is contained in:
Raffson
2023-07-02 12:52:19 +02:00
parent 569efdbb12
commit 9c6b070dbd

View File

@@ -322,7 +322,8 @@ class AircraftBehavior:
)
def configure_ferry(self, group: FlyingGroup[Any], flight: Flight) -> None:
self.configure_task(flight, group, Nothing)
# Every aircraft is capable of 'Nothing', but pydcs doesn't always export it
group.task = Nothing.name
self.configure_behavior(
flight,
group,