mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Changed garrison terminology to battle position. (#2352)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user