updates to strike missions; frontline operations invalid units placement fixed; minor UI updates

This commit is contained in:
Vasyl Horbachenko
2018-09-09 04:15:44 +03:00
parent e0d82da6cb
commit 4ba1dd87e8
25 changed files with 176 additions and 97 deletions

View File

@@ -13,6 +13,7 @@ CATEGORY_MAPPING = {
"warehouse": [Warehouse.Warehouse],
"fuel": [Warehouse.Tank],
"ammo": [Warehouse.Ammunition_depot],
"farp": [Fortification.FARP_Tent],
}
@@ -40,7 +41,7 @@ class GroundObjectsGenerator:
country=side,
name=ground_object.string_identifier,
_type=unit_type,
position=Point(*ground_object.location),
position=ground_object.position,
heading=ground_object.heading
)
@@ -50,7 +51,7 @@ class GroundObjectsGenerator:
country=side,
name=ground_object.string_identifier,
_type=random.choice(CATEGORY_MAPPING[ground_object.category]),
position=Point(*ground_object.location),
position=ground_object.position,
heading=ground_object.heading
)