mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
B1-B bomber strike ingress now has expend=Expend.All and WeaponType.Guided strike mission.
This commit is contained in:
parent
568fd35ddc
commit
dfa33724e9
@ -1,7 +1,7 @@
|
|||||||
import copy
|
import copy
|
||||||
|
|
||||||
from dcs import Point
|
from dcs import Point
|
||||||
from dcs.planes import B_17G, B_52H, Tu_22M3
|
from dcs.planes import B_17G, B_52H, Tu_22M3, B_1B
|
||||||
from dcs.point import MovingPoint
|
from dcs.point import MovingPoint
|
||||||
from dcs.task import Bombing, Expend, OptFormation, WeaponType
|
from dcs.task import Bombing, Expend, OptFormation, WeaponType
|
||||||
|
|
||||||
@ -11,10 +11,12 @@ from .pydcswaypointbuilder import PydcsWaypointBuilder
|
|||||||
|
|
||||||
class StrikeIngressBuilder(PydcsWaypointBuilder):
|
class StrikeIngressBuilder(PydcsWaypointBuilder):
|
||||||
def add_tasks(self, waypoint: MovingPoint) -> None:
|
def add_tasks(self, waypoint: MovingPoint) -> None:
|
||||||
bomber = self.group.units[0].unit_type in [B_17G, B_52H, Tu_22M3]
|
bomber = self.group.units[0].unit_type in [B_17G, Tu_22M3]
|
||||||
if bomber:
|
bomber_guided = self.group.units[0].unit_type in [B_1B, B_52H]
|
||||||
if self.group.units[0].unit_type == B_52H:
|
if bomber_guided:
|
||||||
self.add_strike_tasks(waypoint, WeaponType.Guided)
|
self.add_strike_tasks(waypoint, WeaponType.Guided)
|
||||||
|
self.add_bombing_tasks(waypoint)
|
||||||
|
elif bomber:
|
||||||
self.add_bombing_tasks(waypoint)
|
self.add_bombing_tasks(waypoint)
|
||||||
else:
|
else:
|
||||||
self.add_strike_tasks(waypoint)
|
self.add_strike_tasks(waypoint)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user