From 34d46ee28ef3d81971e2a54845298fc83f668f2f Mon Sep 17 00:00:00 2001 From: Khopa Date: Fri, 29 May 2020 23:43:26 +0200 Subject: [PATCH] Fix objective name error when no more objective name are availables. --- gen/naming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/naming.py b/gen/naming.py index ab2c9e60..fb5a1814 100644 --- a/gen/naming.py +++ b/gen/naming.py @@ -68,7 +68,7 @@ class NameGenerator: def random_objective_name(self): 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: animal = random.choice(self.ANIMALS) self.ANIMALS.remove(animal)