From e4f91fd3bad2400447f23b62ff0cdb0902cb12f9 Mon Sep 17 00:00:00 2001 From: RndName Date: Mon, 2 May 2022 12:56:38 +0200 Subject: [PATCH] Fix AAA not placed as frontline unit - Spawn AAA like SHORAD - change SA-19 unit class from AAA to SHORAD fixes #2194 --- changelog.md | 1 + game/ground_forces/ai_ground_planner.py | 2 +- resources/units/ground_units/2S6 Tunguska.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index a875c748..d3a47c33 100644 --- a/changelog.md +++ b/changelog.md @@ -26,6 +26,7 @@ Saves from 5.x are not compatible with 6.0. * **[Mission Generation]** Fixed an issue with SEAD missions flown by the AI when using the Skynet Plugin and anti-radiation missiles (ARM). The AI now correctly engages the SAM when it comes alive instead of diving into it. * **[Mission Generation]** Fixed an issue where SEAD/DEAD/BAI flights fired all missiles / bombs against a single unit in a group instead of targeting the whole group. * **[Mission Generation]** Fixed adding additional mission types for a squadron causing error messages when the mission type is not supported by the aircraft type by default +* **[Mission Generation]** AAA ground units now spawn correctly at the frontline * **[UI]** Fixed and issue where the liberation main exe was still running after application close. # 5.2.0 diff --git a/game/ground_forces/ai_ground_planner.py b/game/ground_forces/ai_ground_planner.py index 89120ebc..5514deb1 100644 --- a/game/ground_forces/ai_ground_planner.py +++ b/game/ground_forces/ai_ground_planner.py @@ -119,7 +119,7 @@ class GroundPlanner: elif unit_class is UnitClass.ATGM: collection = self.atgm_group role = CombatGroupRole.ATGM - elif unit_class is UnitClass.SHORAD: + elif unit_class in [UnitClass.SHORAD, UnitClass.AAA]: collection = self.shorad_groups role = CombatGroupRole.SHORAD elif unit_class is UnitClass.RECON: diff --git a/resources/units/ground_units/2S6 Tunguska.yaml b/resources/units/ground_units/2S6 Tunguska.yaml index 6942c6b0..a4a225fe 100644 --- a/resources/units/ground_units/2S6 Tunguska.yaml +++ b/resources/units/ground_units/2S6 Tunguska.yaml @@ -1,4 +1,4 @@ -class: AAA +class: SHORAD description: "The 2K22 Tunguska (Russian: 2\u041A22 '\u0422\u0443\u043D\u0433\u0443\ \u0441\u043A\u0430') is a Russian tracked self-propelled anti-aircraft weapon armed\ \ with a surface-to-air gun and missile system. It is designed to provide day and\