diff --git a/changelog.md b/changelog.md index 918abd4d..e2c69706 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # 2.1.5 +## Features/Improvements : +* **[Units/Factions]** Enabled EPLRS for ground units that supports it (so they appear on A-10C II TAD and Helmet) + ## Fixes : * **[UI]** Fixed an issue that prevent saving after aborting a mission * **[Mission Generator]** Fixed aircraft landing point type being wrong diff --git a/gen/armor.py b/gen/armor.py index 10a54b4b..463d7571 100644 --- a/gen/armor.py +++ b/gen/armor.py @@ -184,9 +184,9 @@ class GroundConflictGenerator: for dcs_group, group in ally_groups: - if hasattr(group.unit_type, 'eplrs'): - if group.unit_type.eplrs: - group.points[0].tasks.append(EPLRS(group.id)) + if hasattr(group.units[0], 'eplrs'): + if group.units[0].eplrs: + dcs_group.points[0].tasks.append(EPLRS(dcs_group.id)) if group.role == CombatGroupRole.ARTILLERY: # Fire on any ennemy in range diff --git a/pydcs b/pydcs index ceea62a8..c203e5a1 160000 --- a/pydcs +++ b/pydcs @@ -1 +1 @@ -Subproject commit ceea62a8e0731c21b3e1a3e90682aa0affc168f1 +Subproject commit c203e5a1b8d5eb42d559dab074e668bf37fa5158