EPLRS implemented for base defense unit.

This commit is contained in:
Khopa 2020-10-03 18:32:11 +02:00
parent db36a76c2c
commit 5ecf9aeed8
3 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,7 @@
# 2.1.4
## Fixes :
* **[UI]** Fixed an issue that prevent generating the mission (take off button no working) on old savegames.
# 2.1.3
* **[UI]** Fixed an issue that prevented generating the mission (take off button no working) on old savegames.
## Features/Improvements :
* **[Units/Factions]** Added A-10C_2 to USA 2005 and Bluefor modern factions

View File

@ -184,6 +184,7 @@ class GroundConflictGenerator:
for dcs_group, group in ally_groups:
# TODO : REPLACE EPRLS BY EPLRS once fix implemented in pydcs
if hasattr(group.units[0], 'eprls'):
if group.units[0].eprls:
dcs_group.points[0].tasks.append(EPLRS(dcs_group.id))

View File

@ -80,6 +80,11 @@ class GroundObjectsGenerator:
vehicle.heading = u.heading
vehicle.player_can_drive = True
vg.add_unit(vehicle)
#TODO : REPLACE EPRLS BY EPLRS once fix implemented in pydcs
if hasattr(utype, 'eprls'):
if utype.eprls:
vg.points[0].tasks.append(EPLRS(vg.id))
else:
vg = self.m.ship_group(side, g.name, utype, position=g.position,
heading=g.units[0].heading)