mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
make BAI plannable against vehicles only
This commit is contained in:
parent
2251018de2
commit
aa64f28a4b
@ -163,7 +163,6 @@ class TheaterGroundObject(MissionTarget, SidcDescribable, ABC):
|
||||
else:
|
||||
yield from [
|
||||
FlightType.STRIKE,
|
||||
FlightType.BAI,
|
||||
FlightType.REFUELING,
|
||||
]
|
||||
yield from super().mission_types(for_player)
|
||||
@ -602,6 +601,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