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:
parent
ad100a1a17
commit
052a04ca05
@ -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]
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
7
resources/groups/WW2Essex.yaml
Normal file
7
resources/groups/WW2Essex.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
name: WW2Essex
|
||||
tasks:
|
||||
- HelicopterCarrier
|
||||
units:
|
||||
- USS Bennington (CV-20)
|
||||
layouts:
|
||||
- WW2 Essex Carrier
|
||||
BIN
resources/layouts/naval/WW2-Essex_Carrier.miz
Normal file
BIN
resources/layouts/naval/WW2-Essex_Carrier.miz
Normal file
Binary file not shown.
10
resources/layouts/naval/WW2-Essex_Carrier.yaml
Normal file
10
resources/layouts/naval/WW2-Essex_Carrier.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user