Changed garrison terminology to battle position. (#2352)

This commit is contained in:
SnappyComebacks
2022-07-26 22:41:45 -06:00
committed by GitHub
parent 2ecb3506b5
commit 2bd39bd9f5
9 changed files with 46 additions and 44 deletions

View File

@@ -11,14 +11,14 @@ from game.ato.flighttype import FlightType
@dataclass
class PlanBai(PackagePlanningTask[VehicleGroupGroundObject]):
def preconditions_met(self, state: TheaterState) -> bool:
if not state.has_garrison(self.target):
if not state.has_battle_position(self.target):
return False
if not self.target_area_preconditions_met(state):
return False
return super().preconditions_met(state)
def apply_effects(self, state: TheaterState) -> None:
state.eliminate_garrison(self.target)
state.eliminate_battle_position(self.target)
def propose_flights(self) -> None:
self.propose_flight(FlightType.BAI, 2)