Generate battle environment : SEAD + CAS flight.

Added more factions.
This commit is contained in:
Khopa
2019-10-11 00:18:25 +02:00
parent 2d0c195e46
commit fdd8f102e6
11 changed files with 452 additions and 29 deletions

View File

@@ -100,13 +100,16 @@ def generate_groundobjects(theater: ConflictTheater, game):
if not cp.has_frontline:
continue
amount = random.randrange(1, 5)
amount = random.randrange(1, 11)
for i in range(0, amount):
available_categories = list(tpls)
if i >= amount - 1:
tpl_category = "aa"
else:
tpl_category = random.choice(available_categories)
if random.randint(0,1) == 1:
tpl_category = random.choice(available_categories)
else:
tpl_category = "aa"
tpl = random.choice(list(tpls[tpl_category].values()))