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

@@ -14,14 +14,14 @@ class BreakthroughAttack(FrontLineStanceTask):
def have_sufficient_front_line_advantage(self) -> bool:
return self.ground_force_balance >= 2.0
def opposing_garrisons_eliminated(self, state: TheaterState) -> bool:
garrisons = state.enemy_garrisons[self.enemy_cp]
return not bool(garrisons.blocking_capture)
def opposing_battle_positions_eliminated(self, state: TheaterState) -> bool:
battle_positions = state.enemy_battle_positions[self.enemy_cp]
return not bool(battle_positions.blocking_capture)
def preconditions_met(self, state: TheaterState) -> bool:
if not super().preconditions_met(state):
return False
return self.opposing_garrisons_eliminated(state)
return self.opposing_battle_positions_eliminated(state)
def apply_effects(self, state: TheaterState) -> None:
super().apply_effects(state)