Rename OCA strike tasks.

This commit is contained in:
Dan Albert
2020-11-24 17:28:48 -08:00
parent 65ac30acda
commit b99462b628
7 changed files with 29 additions and 26 deletions

View File

@@ -147,8 +147,8 @@ class Package:
FlightType.CAS,
FlightType.STRIKE,
FlightType.ANTISHIP,
FlightType.OCA_STRIKE,
FlightType.RUNWAY_ATTACK,
FlightType.OCA_AIRCRAFT,
FlightType.OCA_RUNWAY,
FlightType.BAI,
FlightType.DEAD,
FlightType.SEAD,
@@ -173,6 +173,9 @@ class Package:
task = self.primary_task
if task is None:
return "No mission"
oca_strike_types = {FlightType.OCA_AIRCRAFT, FlightType.OCA_RUNWAY}
if task in oca_strike_types:
return "OCA Strike"
return str(task)
def __hash__(self) -> int: