Properly support Essex carrier

This commit is contained in:
Raffson
2025-07-13 18:41:20 +02:00
parent ad100a1a17
commit 052a04ca05
6 changed files with 27 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ from dcs.ships import (
Stennis,
Type_071,
hms_invincible,
Essex,
)
from dcs.terrain.terrain import Airport, ParkingSlot
from dcs.unitgroup import ShipGroup, StaticGroup
@@ -1428,6 +1429,7 @@ class NavalControlPoint(
CVN_72,
CVN_73,
CVN_75,
Essex,
]:
return True
return False

View File

@@ -297,7 +297,9 @@ class GenericCarrierGroundObjectGenerator(ControlPointGroundObjectGenerator):
if go.category in ["CARRIER", "LHA"]
][0]
groups = [
g for g in carrier_go.groups if "Carrier" in g.name or "LHA" in g.name
g
for g in carrier_go.groups
if "carrier" in g.name.lower() or "lha" in g.name.lower()
]
return groups[0].units[0]