mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Properly support Essex carrier
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user