Fix : Reduced maximum number of uboat

This commit is contained in:
Khopa 2020-06-23 12:05:15 +02:00
parent cd4ef8ae32
commit 6e43467ef6

View File

@ -13,7 +13,7 @@ class UBoatGroupGenerator(GroupGenerator):
def generate(self): def generate(self):
for i in range(random.randint(2, 6)): for i in range(random.randint(1, 4)):
self.add_unit(Uboat_VIIC_U_flak, "Uboat" + str(i), self.position.x + i * random.randint(100, 250), self.position.y + (random.randint(100, 200)-100), self.heading) self.add_unit(Uboat_VIIC_U_flak, "Uboat" + str(i), self.position.x + i * random.randint(100, 250), self.position.y + (random.randint(100, 200)-100), self.heading)
self.get_generated_group().points[0].speed = 20 self.get_generated_group().points[0].speed = 20