mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
commit 35ab9103cebf823bab85fbb1c9ff4bc2b9c5701a Author: walterroach <37820425+walterroach@users.noreply.github.com> Date: Fri Oct 30 22:25:42 2020 -0500 more cleanup commit d3d008bc6b29f328ad48063bd4b0520e1b819d68 Author: walterroach <37820425+walterroach@users.noreply.github.com> Date: Fri Oct 30 22:17:59 2020 -0500 More briefinggen cleanup commit b2033f091d7191aecefb86fecb5cb060c074706e Author: walterroach <37820425+walterroach@users.noreply.github.com> Date: Fri Oct 30 22:08:48 2020 -0500 briefinggen cleanup commit 72ea0196c22d9493df078765800f3fafb9c054dc Author: walterroach <37820425+walterroach@users.noreply.github.com> Date: Fri Oct 30 21:57:52 2020 -0500 Add notifier method back to Operation commit efd39a9e03d02b9d581637d0d1c289af68e749c3 Author: walterroach <37820425+walterroach@users.noreply.github.com> Date: Fri Oct 30 21:34:37 2020 -0500 Revert "Move kneeboard and briefing gen to unified" Removes properties added to Operation This reverts commit 941f2af77074d79b992ae859a0108b67aac5460c.
39 lines
1.3 KiB
Python
39 lines
1.3 KiB
Python
from dcs.terrain.terrain import Terrain
|
|
|
|
from gen.conflictgen import Conflict
|
|
from .operation import Operation
|
|
from .. import db
|
|
|
|
MAX_DISTANCE_BETWEEN_GROUPS = 12000
|
|
|
|
|
|
class FrontlineAttackOperation(Operation):
|
|
interceptors = None # type: db.AssignedUnitsDict
|
|
escort = None # type: db.AssignedUnitsDict
|
|
strikegroup = None # type: db.AssignedUnitsDict
|
|
|
|
attackers = None # type: db.ArmorDict
|
|
defenders = None # type: db.ArmorDict
|
|
|
|
def prepare(self, terrain: Terrain, is_quick: bool):
|
|
super(FrontlineAttackOperation, self).prepare(terrain, is_quick)
|
|
if self.defender_name == self.game.player_name:
|
|
self.attackers_starting_position = None
|
|
self.defenders_starting_position = None
|
|
|
|
conflict = Conflict.frontline_cas_conflict(
|
|
attacker_name=self.attacker_name,
|
|
defender_name=self.defender_name,
|
|
attacker=self.current_mission.country(self.attacker_country),
|
|
defender=self.current_mission.country(self.defender_country),
|
|
from_cp=self.from_cp,
|
|
to_cp=self.to_cp,
|
|
theater=self.game.theater
|
|
)
|
|
|
|
self.initialize(mission=self.current_mission,
|
|
conflict=conflict)
|
|
|
|
def generate(self):
|
|
super(FrontlineAttackOperation, self).generate()
|