mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix objective name error when no more objective name are availables.
This commit is contained in:
parent
59986d74f4
commit
34d46ee28e
@ -68,7 +68,7 @@ class NameGenerator:
|
|||||||
|
|
||||||
def random_objective_name(self):
|
def random_objective_name(self):
|
||||||
if len(self.ANIMALS) == 0:
|
if len(self.ANIMALS) == 0:
|
||||||
random.choice(ALPHA_MILITARY).upper() + " #" + str(random.randint(0, 100))
|
return random.choice(ALPHA_MILITARY).upper() + "#" + str(random.randint(0, 100))
|
||||||
else:
|
else:
|
||||||
animal = random.choice(self.ANIMALS)
|
animal = random.choice(self.ANIMALS)
|
||||||
self.ANIMALS.remove(animal)
|
self.ANIMALS.remove(animal)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user