mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Finish moving gen into game.
This commit is contained in:
@@ -10,7 +10,7 @@ from PySide2.QtWidgets import (
|
||||
QFrame,
|
||||
)
|
||||
|
||||
import gen.flights.ai_flight_planner_db
|
||||
import game.ato.ai_flight_planner_db
|
||||
from game.dcs.aircrafttype import AircraftType
|
||||
from game.dcs.groundunittype import GroundUnitType
|
||||
from game.dcs.unittype import UnitType
|
||||
@@ -105,26 +105,26 @@ class QUnitInfoWindow(QDialog):
|
||||
def generateAircraftTasks(self) -> str:
|
||||
aircraft_tasks = ""
|
||||
unit_type = self.unit_type.dcs_unit_type
|
||||
if unit_type in gen.flights.ai_flight_planner_db.CAP_CAPABLE:
|
||||
if unit_type in game.ato.ai_flight_planner_db.CAP_CAPABLE:
|
||||
aircraft_tasks = (
|
||||
aircraft_tasks
|
||||
+ f"{FlightType.BARCAP}, {FlightType.ESCORT}, {FlightType.INTERCEPTION}, {FlightType.SWEEP}, {FlightType.TARCAP}, "
|
||||
)
|
||||
if unit_type in gen.flights.ai_flight_planner_db.CAS_CAPABLE:
|
||||
if unit_type in game.ato.ai_flight_planner_db.CAS_CAPABLE:
|
||||
aircraft_tasks = (
|
||||
aircraft_tasks
|
||||
+ f"{FlightType.CAS}, {FlightType.BAI}, {FlightType.OCA_AIRCRAFT}, "
|
||||
)
|
||||
if unit_type in gen.flights.ai_flight_planner_db.SEAD_CAPABLE:
|
||||
if unit_type in game.ato.ai_flight_planner_db.SEAD_CAPABLE:
|
||||
aircraft_tasks = aircraft_tasks + f"{FlightType.SEAD}, "
|
||||
if unit_type in gen.flights.ai_flight_planner_db.DEAD_CAPABLE:
|
||||
if unit_type in game.ato.ai_flight_planner_db.DEAD_CAPABLE:
|
||||
aircraft_tasks = aircraft_tasks + f"{FlightType.DEAD}, "
|
||||
if unit_type in gen.flights.ai_flight_planner_db.ANTISHIP_CAPABLE:
|
||||
if unit_type in game.ato.ai_flight_planner_db.ANTISHIP_CAPABLE:
|
||||
aircraft_tasks = aircraft_tasks + f"{FlightType.ANTISHIP}, "
|
||||
if unit_type in gen.flights.ai_flight_planner_db.RUNWAY_ATTACK_CAPABLE:
|
||||
if unit_type in game.ato.ai_flight_planner_db.RUNWAY_ATTACK_CAPABLE:
|
||||
aircraft_tasks = aircraft_tasks + f"{FlightType.OCA_RUNWAY}, "
|
||||
if unit_type in gen.flights.ai_flight_planner_db.STRIKE_CAPABLE:
|
||||
if unit_type in game.ato.ai_flight_planner_db.STRIKE_CAPABLE:
|
||||
aircraft_tasks = aircraft_tasks + f"{FlightType.STRIKE}, "
|
||||
if unit_type in gen.flights.ai_flight_planner_db.REFUELING_CAPABALE:
|
||||
if unit_type in game.ato.ai_flight_planner_db.REFUELING_CAPABALE:
|
||||
aircraft_tasks = aircraft_tasks + f"{FlightType.REFUELING}, "
|
||||
return aircraft_tasks[:-2]
|
||||
|
||||
Reference in New Issue
Block a user