Add Forrestal support, use in US 1975.

https://github.com/dcs-liberation/dcs_liberation/issues/1657
This commit is contained in:
Dan Albert
2021-10-22 10:11:15 -07:00
parent 822d737f65
commit 46bf952562
3 changed files with 29 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
from dcs.ships import (
Forrestal,
PIOTR,
MOSCOW,
VINSON,
@@ -85,24 +86,25 @@ UNITS_WITH_RADAR = {
AirDefence.FuMG_401,
AirDefence.FuSe_65,
# Ships
VINSON,
PERRY,
TICONDEROG,
ALBATROS,
KUZNECOW,
MOLNIYA,
MOSCOW,
NEUSTRASH,
PIOTR,
REZKY,
CV_1143_5,
Stennis,
CVN_71,
CVN_72,
CVN_73,
USS_Arleigh_Burke_IIa,
CV_1143_5,
Forrestal,
KUZNECOW,
LHA_Tarawa,
MOLNIYA,
MOSCOW,
NEUSTRASH,
PERRY,
PIOTR,
REZKY,
Stennis,
TICONDEROG,
Type_052B,
Type_054A,
Type_052C,
Type_054A,
USS_Arleigh_Burke_IIa,
VINSON,
}

View File

@@ -25,6 +25,7 @@ from typing import (
from dcs.mapping import Point
from dcs.ships import (
Forrestal,
Stennis,
KUZNECOW,
LHA_Tarawa,
@@ -521,6 +522,7 @@ class ControlPoint(MissionTarget, ABC):
for group in g.groups:
for u in group.units:
if db.unit_type_from_name(u.type) in [
Forrestal,
Stennis,
KUZNECOW,
]:
@@ -1005,6 +1007,7 @@ class NavalControlPoint(ControlPoint, ABC):
for group in self.find_main_tgo().groups:
for u in group.units:
if db.unit_type_from_name(u.type) in [
Forrestal,
Stennis,
LHA_Tarawa,
KUZNECOW,