EPLRS for 2.1.5

This commit is contained in:
Khopa
2020-10-04 14:11:28 +02:00
parent efbc6fe3ae
commit 819d775282
2 changed files with 25 additions and 21 deletions

View File

@@ -80,6 +80,10 @@ class GroundObjectsGenerator:
vehicle.heading = u.heading
vehicle.player_can_drive = True
vg.add_unit(vehicle)
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,
heading=g.units[0].heading)