Add missing tasks in aircraft yamls

This commit is contained in:
Raffson 2023-05-18 13:14:22 +02:00
parent f00a3fb1d2
commit b750099b16
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
5 changed files with 38 additions and 1 deletions

View File

@ -95,6 +95,7 @@ class Migrator:
def _update_squadrons(self) -> None:
for cp in self.game.theater.controlpoints:
for s in cp.squadrons:
print(s.aircraft, s.aircraft.task_priorities)
preferred_task = max(
s.aircraft.task_priorities,
key=lambda x: s.aircraft.task_priorities[x],

View File

@ -13,4 +13,13 @@ price: 10
role: Carrier-based Attack
gunfighter: true
variants:
A-7E Corsair II: {}
A-7E Corsair II: {}
tasks:
BAI: 660
CAS: 660
DEAD: 390
OCA/Aircraft: 660
OCA/Runway: 360
SEAD: 110
SEAD Escort: 110
Strike: 360

View File

@ -36,3 +36,18 @@ utc_kneeboard: true
# HelmetMountedDevice: 1
# InnerBoard: 0
# OuterBoard: 0
tasks:
Anti-ship: 150
BAI: 740
BARCAP: 450
CAS: 740
DEAD: 440
Escort: 450
Fighter sweep: 450
Intercept: 450
OCA/Aircraft: 740
OCA/Runway: 600
SEAD: 430
SEAD Escort: 430
Strike: 600
TARCAP: 450

View File

@ -4,3 +4,14 @@ price: 18
max_range: 350
variants:
F-16A MLU: null
tasks:
Anti-ship: 150
BARCAP: 420
CAS: 340
DEAD: 210
Escort: 420
Fighter sweep: 420
Intercept: 420
OCA/Runway: 570
Strike: 570
TARCAP: 420

View File

@ -5,6 +5,7 @@ variants:
F-16A: null
tasks:
BARCAP: 420
CAS: 340
Escort: 420
Fighter sweep: 420
Intercept: 420