mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Convert escort request to a waypoint property.
Another step in reducing the rigidity of FlightPlan and making it testable. There is one intentional behavior change here: escort flights no longer request escorts. That actually has a very minimal effect because these properties are only used for two things: determining if a package needs escorts or not, and determining when the TARCAP should show up and leave. Since escorts won't have been in the package when the first part happens anyway, that has no effect. The only change is that TARCAP won't show up earlier or stay later just because of a TOT offset for an escort flight.
This commit is contained in:
@@ -41,6 +41,8 @@ class FlightWaypoint:
|
||||
# The minimum amount of fuel remaining at this waypoint in pounds.
|
||||
min_fuel: float | None = None
|
||||
|
||||
wants_escort: bool = False
|
||||
|
||||
actions: list[WaypointAction] = field(default_factory=list)
|
||||
options: dict[str, WaypointOption] = field(default_factory=dict)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user