mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Initial implementation of AEW&C missions.
Still a work in progress (the missions don't actually perform their task, just orbit). Currently: * AEW&C aircraft can be bought. * AEW&C missions can be planned at any control point and at front lines. * AEW&C will return after 4H or Bingo.
This commit is contained in:
committed by
Simon Clark
parent
4a0ccc4c2f
commit
e0501e46e3
@@ -47,6 +47,9 @@ class QAircraftTypeSelector(QComboBox):
|
||||
elif mission_type in [FlightType.OCA_RUNWAY]:
|
||||
if aircraft in gen.flights.ai_flight_planner_db.RUNWAY_ATTACK_CAPABLE:
|
||||
self.addItem(f"{db.unit_get_expanded_info(self.country, aircraft, 'name')}", userData=aircraft)
|
||||
elif mission_type in [FlightType.AEWC]:
|
||||
if aircraft in gen.flights.ai_flight_planner_db.AEWC_CAPABLE:
|
||||
self.addItem(f"{db.unit_get_expanded_info(self.country, aircraft, 'name')}", userData=aircraft)
|
||||
current_aircraft_index = self.findData(current_aircraft)
|
||||
if current_aircraft_index != -1:
|
||||
self.setCurrentIndex(current_aircraft_index)
|
||||
|
||||
Reference in New Issue
Block a user