This commit is contained in:
Raffson 2024-01-20 17:25:40 +01:00
parent 26066ef8f4
commit febc901518
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -16,12 +16,10 @@ class StrikeIngressBuilder(PydcsWaypointBuilder):
def add_tasks(self, waypoint: MovingPoint) -> None:
bomber = self.group.units[0].unit_type in [B_17G, Tu_22M3]
bomber_guided = self.group.units[0].unit_type in [B_1B, B_52H]
waypoint.tasks.append(OptFormation.finger_four_open())
if bomber_guided or not bomber:
waypoint.tasks.append(OptFormation.finger_four_open())
self.add_strike_tasks(waypoint, WeaponType.ASM)
waypoint.tasks.append(OptFormation.trail_open())
if bomber_guided or not bomber:
waypoint.tasks.append(OptFormation.trail_open())
self.add_strike_tasks(waypoint, WeaponType.GuidedBombs)
waypoint.tasks.append(OptFormation.ww2_bomber_element_close())