EPLRS typo fixed

This commit is contained in:
Khopa
2020-10-04 14:11:28 +02:00
parent 5ecf9aeed8
commit 6317f376b7
4 changed files with 26 additions and 28 deletions

View File

@@ -184,9 +184,8 @@ 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:
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:

View File

@@ -81,9 +81,8 @@ class GroundObjectsGenerator:
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:
if hasattr(utype, 'eplrs'):
if utype.eplrs:
vg.points[0].tasks.append(EPLRS(vg.id))
else:
vg = self.m.ship_group(side, g.name, utype, position=g.position,