Properly support Essex carrier

This commit is contained in:
Raffson 2025-07-13 18:41:20 +02:00
parent ad100a1a17
commit 052a04ca05
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
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]

View File

@ -49,7 +49,8 @@
],
"preset_groups": [
"Ally Flak",
"WW2LST"
"WW2LST",
"WW2Essex"
],
"naval_units": [
"USS Bennington (CV-20)"
@ -58,7 +59,9 @@
"WW2 Asset Pack": "https://www.digitalcombatsimulator.com/en/products/other/wwii_assets_pack/"
},
"carrier_names": [],
"helicopter_carrier_names": [],
"helicopter_carrier_names": [
"USS Essex (CV-9)"
],
"has_jtac": false,
"doctrine": "ww2",
"building_set": "ww2ally",

View File

@ -0,0 +1,7 @@
name: WW2Essex
tasks:
- HelicopterCarrier
units:
- USS Bennington (CV-20)
layouts:
- WW2 Essex Carrier

Binary file not shown.

View File

@ -0,0 +1,10 @@
name: WW2 Essex Carrier
tasks:
- HelicopterCarrier
groups:
- Carrier: # the word "Carrier" or "LHA" needs to be present in the group-name
- name: WW2 Carrier Group 0
unit_count:
- 1
unit_types:
- Essex