Fixed issue with WW2 LST group (boats superposed)

This commit is contained in:
Khopa 2020-06-23 12:06:19 +02:00
parent 6e43467ef6
commit 5e7facfeb6

View File

@ -16,7 +16,7 @@ class WW2LSTGroupGenerator(GroupGenerator):
# Add LS Samuel Chase # Add LS Samuel Chase
self.add_unit(LS_Samuel_Chase, "SamuelChase", self.position.x, self.position.y, self.heading) self.add_unit(LS_Samuel_Chase, "SamuelChase", self.position.x, self.position.y, self.heading)
for i in range(random.randint(2, 4)): for i in range(1, random.randint(3, 4)):
self.add_unit(LST_Mk_II, "LST" + str(i), self.position.x + i * random.randint(800, 1200), self.position.y, self.heading) self.add_unit(LST_Mk_II, "LST" + str(i), self.position.x + i * random.randint(800, 1200), self.position.y, self.heading)
self.get_generated_group().points[0].speed = 20 self.get_generated_group().points[0].speed = 20