mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Use pydcs has_tacan attribute to check if tankers support TACAN.
This commit is contained in:
parent
08b7aff0d8
commit
bd1618e41d
@ -26,7 +26,6 @@ from dcs.planes import (
|
|||||||
Su_33,
|
Su_33,
|
||||||
Tu_22M3,
|
Tu_22M3,
|
||||||
)
|
)
|
||||||
from dcs.planes import IL_78M
|
|
||||||
from dcs.point import MovingPoint, PointAction
|
from dcs.point import MovingPoint, PointAction
|
||||||
from dcs.task import (
|
from dcs.task import (
|
||||||
AWACS,
|
AWACS,
|
||||||
@ -1761,7 +1760,7 @@ class RaceTrackBuilder(PydcsWaypointBuilder):
|
|||||||
def configure_refueling_actions(self, waypoint: MovingPoint) -> None:
|
def configure_refueling_actions(self, waypoint: MovingPoint) -> None:
|
||||||
waypoint.add_task(Tanker())
|
waypoint.add_task(Tanker())
|
||||||
|
|
||||||
if self.flight.unit_type.dcs_unit_type != IL_78M:
|
if self.flight.unit_type.dcs_unit_type.tacan:
|
||||||
tanker_info = self.air_support.tankers[-1]
|
tanker_info = self.air_support.tankers[-1]
|
||||||
tacan = tanker_info.tacan
|
tacan = tanker_info.tacan
|
||||||
tacan_callsign = {
|
tacan_callsign = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user