Fix New Package for naval control points.

Also reordered the tasks so ship-specific tasks appear first.

Fixes https://github.com/Khopa/dcs_liberation/issues/628
This commit is contained in:
Dan Albert
2020-12-26 14:25:15 -08:00
parent b6e37b9e67
commit 8be2841bdf
3 changed files with 8 additions and 6 deletions

View File

@@ -550,7 +550,6 @@ class NavalControlPoint(ControlPoint, ABC):
return True
def mission_types(self, for_player: bool) -> Iterator[FlightType]:
yield from super().mission_types(for_player)
from gen.flights.flight import FlightType
if self.is_friendly(for_player):
yield from [
@@ -561,6 +560,7 @@ class NavalControlPoint(ControlPoint, ABC):
]
else:
yield FlightType.ANTISHIP
yield from super().mission_types(for_player)
@property
def heading(self) -> int: