Generate ship groups for carriers. Carriers can be destroyed. Faction need to have carrier available.

This commit is contained in:
Khopa
2019-10-26 22:59:59 +02:00
parent 2936df6a02
commit 76638b549f
20 changed files with 245 additions and 46 deletions

View File

@@ -181,7 +181,7 @@ class Event:
# -- AA Site groups
for i, ground_object in enumerate(cp.ground_objects):
if ground_object.dcs_identifier == "AA":
if ground_object.dcs_identifier in ["AA", "CARRIER"]:
for g in ground_object.groups:
for u in g.units:
if u.name == destroyed_ground_unit_name: