Add "has_built_in_ecm" field to AircraftType

To be used with EW-jamming script...
This commit is contained in:
Raffson 2025-05-01 17:21:52 +02:00
parent 464ece60da
commit 4f8ce77e50
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 6 additions and 0 deletions

View File

@ -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", [])
],

View File

@ -8,3 +8,4 @@ variants:
E-7A Wedgetail: {}
tasks:
AEW&C: 30
has_built_in_ecm: true