From 54745e786e80e362a831e39c15b918009e225a2a Mon Sep 17 00:00:00 2001 From: RndName Date: Fri, 7 Jan 2022 14:33:06 +0100 Subject: [PATCH] Fix incorrect threat range of SA-5 The SA-5 was not part of the radar_db.py and therefore the threat_range calculation was wrong / ever LN counted as threat even when the TR was dead. Also fixed a wrong unit for the SA-11 TELAR. #1816 --- changelog.md | 1 + game/data/radar_db.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 9e1d6850..e5439a84 100644 --- a/changelog.md +++ b/changelog.md @@ -24,6 +24,7 @@ Saves from 5.x are not compatible with 6.0. * **[Mission Generation]** Corrected Viggen FR22 & FR24 preset channels for the DCS 2.7.9 update * **[Mission Generation]** Fixed an issue which prevented the mission generation if two controlpoints are really close to each other (e.g. Marianas campaigns) * **[Mission Generation]** Fixed the SA-5 Generator to use the P-19 FlatFace SR as a Fallback radar if the faction does not have access to the TinShield SR. +* **[Mission Generation]** Fixed incorrect SA-5 threat range when TR destroyed. It will not count as threat anymore when the TR is dead. * **[UI]** Enable / Disable the settings, save and stats actions if no game is loaded to prevent an error as these functions can only be used on a valid game. # 5.0.0 diff --git a/game/data/radar_db.py b/game/data/radar_db.py index 1644b98b..464f4419 100644 --- a/game/data/radar_db.py +++ b/game/data/radar_db.py @@ -25,7 +25,7 @@ from dcs.vehicles import AirDefence TELARS = { AirDefence._2S6_Tunguska, - AirDefence.SA_11_Buk_SR_9S18M1, + AirDefence.SA_11_Buk_LN_9A310M1, AirDefence.Osa_9A33_ln, AirDefence.Tor_9A331, AirDefence.Roland_ADS, @@ -38,6 +38,7 @@ TRACK_RADARS = { AirDefence.Hawk_tr, AirDefence.Patriot_str, AirDefence.SNR_75V, + AirDefence.RPC_5N62V, AirDefence.Rapier_fsa_blindfire_radar, AirDefence.HQ_7_STR_SP, } @@ -52,6 +53,7 @@ LAUNCHER_TRACKER_PAIRS = { AirDefence.S_75M_Volhov: AirDefence.SNR_75V, AirDefence.Rapier_fsa_launcher: AirDefence.Rapier_fsa_blindfire_radar, AirDefence.HQ_7_LN_SP: AirDefence.HQ_7_STR_SP, + AirDefence.S_200_Launcher: AirDefence.RPC_5N62V, } UNITS_WITH_RADAR = { @@ -80,6 +82,8 @@ UNITS_WITH_RADAR = { AirDefence.Roland_Radar, AirDefence.Snr_s_125_tr, AirDefence.SNR_75V, + AirDefence.RLS_19J6, + AirDefence.RPC_5N62V, AirDefence.Rapier_fsa_blindfire_radar, AirDefence.HQ_7_LN_SP, AirDefence.HQ_7_STR_SP,