Add EWR to destruction events in debrief

Also impacted reinforcement generation on turn after EWR destroyed.
This commit is contained in:
walterroach 2020-11-09 14:49:44 -06:00
parent 9a9ef78583
commit 16d9c1ccad
2 changed files with 3 additions and 2 deletions

View File

@ -165,7 +165,7 @@ class Event:
"",
self.game.turn)
for i, ground_object in enumerate(cp.ground_objects):
if ground_object.dcs_identifier in ["AA", "CARRIER", "LHA"]:
if ground_object.dcs_identifier in ["AA", "CARRIER", "LHA", "EWR"]:
for g in ground_object.groups:
if not hasattr(g, "units_losts"):
g.units_losts = []

View File

@ -25,7 +25,8 @@ NAME_BY_CATEGORY = {
"derrick": "Derrick",
"ww2bunker": "Bunker",
"village": "Village",
"allycamp": "Camp"
"allycamp": "Camp",
"EWR":"EWR",
}
ABBREV_NAME = {