mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Now clears Retribution triggers when generating a Pretense campaign.
This commit is contained in:
parent
1db232417f
commit
0faa27dca5
@ -53,6 +53,8 @@ class PretenseLuaGenerator(LuaGenerator):
|
||||
self.mission.triggerrules.triggers.append(t)
|
||||
|
||||
def generate_plugin_data(self) -> None:
|
||||
self.mission.triggerrules.triggers.clear()
|
||||
|
||||
lua_data = LuaData("dcsRetribution")
|
||||
|
||||
install_path = lua_data.add_item("installPath")
|
||||
@ -391,8 +393,8 @@ class PretenseLuaGenerator(LuaGenerator):
|
||||
for air_group in self.game.pretense_air[cp_side][cp_name_trimmed][
|
||||
mission_type
|
||||
]:
|
||||
tanker_freq = 257
|
||||
tanker_tacan = 37
|
||||
tanker_freq = 257.0
|
||||
tanker_tacan = 37.0
|
||||
for tanker in self.mission_data.tankers:
|
||||
if tanker.group_name == air_group:
|
||||
tanker_freq = tanker.freq.hertz / 1000000
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user