mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
make BAI plannable against vehicles only
This commit is contained in:
parent
76e6aff9d7
commit
352c2ddc56
@ -164,7 +164,6 @@ class TheaterGroundObject(MissionTarget, SidcDescribable, ABC):
|
||||
else:
|
||||
yield from [
|
||||
FlightType.STRIKE,
|
||||
FlightType.BAI,
|
||||
FlightType.REFUELING,
|
||||
]
|
||||
yield from super().mission_types(for_player)
|
||||
@ -584,6 +583,13 @@ class VehicleGroupGroundObject(TheaterGroundObject):
|
||||
def should_head_to_conflict(self) -> bool:
|
||||
return True
|
||||
|
||||
def mission_types(self, for_player: bool) -> Iterator[FlightType]:
|
||||
from game.ato import FlightType
|
||||
|
||||
if not self.is_friendly(for_player):
|
||||
yield FlightType.BAI
|
||||
yield from super().mission_types(for_player)
|
||||
|
||||
|
||||
class EwrGroundObject(IadsGroundObject):
|
||||
def __init__(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user