From aa64f28a4b9d0dfee5b93fe0f0b27bd4008b72d0 Mon Sep 17 00:00:00 2001 From: zhexu14 <64713351+zhexu14@users.noreply.github.com> Date: Wed, 3 May 2023 23:48:16 +1000 Subject: [PATCH] make BAI plannable against vehicles only --- game/theater/theatergroundobject.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/game/theater/theatergroundobject.py b/game/theater/theatergroundobject.py index acca4417..2a9f0870 100644 --- a/game/theater/theatergroundobject.py +++ b/game/theater/theatergroundobject.py @@ -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__(