mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user