mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add "has_built_in_ecm" field to AircraftType
To be used with EW-jamming script...
This commit is contained in:
parent
464ece60da
commit
4f8ce77e50
@ -229,6 +229,10 @@ class AircraftType(UnitType[Type[FlyingType]]):
|
||||
# when no TGP is mounted on any station.
|
||||
has_built_in_target_pod: bool
|
||||
|
||||
# indicates if the aircraft has a built-in jammer allowing EWJamming to be used
|
||||
# without the need for a jamming pod
|
||||
has_built_in_ecm: bool
|
||||
|
||||
task_priorities: dict[FlightType, int]
|
||||
laser_code_configs: list[LaserCodeConfig]
|
||||
|
||||
@ -591,6 +595,7 @@ class AircraftType(UnitType[Type[FlyingType]]):
|
||||
can_carry_crates=data.get("can_carry_crates", aircraft.helicopter),
|
||||
task_priorities=task_priorities,
|
||||
has_built_in_target_pod=data.get("has_built_in_target_pod", False),
|
||||
has_built_in_ecm=data.get("has_built_in_ecm", False),
|
||||
laser_code_configs=[
|
||||
LaserCodeConfig.from_yaml(d) for d in data.get("laser_codes", [])
|
||||
],
|
||||
|
||||
@ -8,3 +8,4 @@ variants:
|
||||
E-7A Wedgetail: {}
|
||||
tasks:
|
||||
AEW&C: 30
|
||||
has_built_in_ecm: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user