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

@@ -54,7 +54,8 @@ class Debriefing:
type = db.unit_type_from_name(aircraft.split("|")[4])
player_unit = (country == self.player_country_id)
aircraft = DebriefingDeadUnitInfo(country, player_unit, type)
self.dead_aircraft.append(aircraft)
if type is not None:
self.dead_aircraft.append(aircraft)
except Exception as e:
print(e)
@@ -64,7 +65,8 @@ class Debriefing:
type = db.unit_type_from_name(unit.split("|")[4])
player_unit = (country == self.player_country_id)
unit = DebriefingDeadUnitInfo(country, player_unit, type)
self.dead_units.append(unit)
if type is not None:
self.dead_units.append(unit)
except Exception as e:
print(e)