Fall back to SEAD loadout for SEAD escort.

These usually do not need to differ.
This commit is contained in:
Dan Albert 2021-05-22 16:51:27 -07:00
parent 1087069277
commit 16fff8d87a

View File

@ -106,6 +106,9 @@ class Loadout:
}
for flight_type, names in legacy_names.items():
loadout_names[flight_type].extend(names)
# A SEAD escort typically does not need a different loadout than a regular
# SEAD flight, so fall back to SEAD if needed.
loadout_names[FlightType.SEAD_ESCORT].extend(loadout_names[FlightType.SEAD])
yield from loadout_names[flight.flight_type]
@classmethod