Update EW Script and refine logic (#555)

This commit is contained in:
Drexyl
2025-08-28 03:20:27 +10:00
committed by GitHub
parent 756602e682
commit d2aa615133
22 changed files with 245 additions and 136 deletions

View File

@@ -233,10 +233,14 @@ 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
# indicates if the aircraft has a built-in jammer allowing Defensive EWJamming to be used
# without the need for a jamming pod
has_built_in_ecm: bool
# Indicates if the aircraft has a built in jammer allowing Offensive EWJamming to be used
# without the need for a jamming pod
has_built_in_jamming: bool
task_priorities: dict[FlightType, int]
laser_code_configs: list[LaserCodeConfig]
@@ -600,6 +604,7 @@ class AircraftType(UnitType[Type[FlyingType]]):
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),
has_built_in_jamming=data.get("has_built_in_jamming", False),
laser_code_configs=[
LaserCodeConfig.from_yaml(d) for d in data.get("laser_codes", [])
],