mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Changed tanker_tacan from "N/A" to 0.0 when the tanker is not compatible with TACAN, in order to avoid mission script errors.
This commit is contained in:
parent
585b3e74a0
commit
91cfff58d9
@ -176,7 +176,7 @@ class PretenseLuaGenerator(LuaGenerator):
|
|||||||
for tanker in self.mission_data.tankers:
|
for tanker in self.mission_data.tankers:
|
||||||
if tanker.group_name == air_group:
|
if tanker.group_name == air_group:
|
||||||
tanker_freq = tanker.freq.hertz / 1000000
|
tanker_freq = tanker.freq.hertz / 1000000
|
||||||
tanker_tacan = tanker.tacan if tanker.tacan else "N/A"
|
tanker_tacan = tanker.tacan.number if tanker.tacan else 0.0
|
||||||
if tanker.variant == "KC-135 Stratotanker":
|
if tanker.variant == "KC-135 Stratotanker":
|
||||||
tanker_variant = "Boom"
|
tanker_variant = "Boom"
|
||||||
lua_string_zones += (
|
lua_string_zones += (
|
||||||
@ -453,7 +453,7 @@ class PretenseLuaGenerator(LuaGenerator):
|
|||||||
for tanker in self.mission_data.tankers:
|
for tanker in self.mission_data.tankers:
|
||||||
if tanker.group_name == air_group:
|
if tanker.group_name == air_group:
|
||||||
tanker_freq = tanker.freq.hertz / 1000000
|
tanker_freq = tanker.freq.hertz / 1000000
|
||||||
tanker_tacan = tanker.tacan.number
|
tanker_tacan = tanker.tacan.number if tanker.tacan else 0.0
|
||||||
if tanker.variant == "KC-135 Stratotanker":
|
if tanker.variant == "KC-135 Stratotanker":
|
||||||
tanker_variant = "Boom"
|
tanker_variant = "Boom"
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -241,6 +241,3 @@ class PretenseMissionGenerator(MissionGenerator):
|
|||||||
if not flight.client_units:
|
if not flight.client_units:
|
||||||
continue
|
continue
|
||||||
flight.aircraft_type.assign_channels_for_flight(flight, self.mission_data)
|
flight.aircraft_type.assign_channels_for_flight(flight, self.mission_data)
|
||||||
|
|
||||||
if self.game.settings.plugins.get("ewrj"):
|
|
||||||
self._configure_ewrj(aircraft_generator)
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user