mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Migrator update for SEAD-Sweep
This commit is contained in:
parent
87399c9ada
commit
1157d264ee
@ -6,6 +6,7 @@ from typing import TYPE_CHECKING, Any
|
|||||||
|
|
||||||
from dcs.countries import countries_by_name
|
from dcs.countries import countries_by_name
|
||||||
|
|
||||||
|
from game.ato import FlightType
|
||||||
from game.ato.packagewaypoints import PackageWaypoints
|
from game.ato.packagewaypoints import PackageWaypoints
|
||||||
from game.data.doctrine import MODERN_DOCTRINE, COLDWAR_DOCTRINE, WWII_DOCTRINE
|
from game.data.doctrine import MODERN_DOCTRINE, COLDWAR_DOCTRINE, WWII_DOCTRINE
|
||||||
from game.theater import ParkingType, SeasonalConditions
|
from game.theater import ParkingType, SeasonalConditions
|
||||||
@ -127,6 +128,8 @@ class Migrator:
|
|||||||
if isinstance(s.country, str):
|
if isinstance(s.country, str):
|
||||||
c = country_dict.get(s.country, s.country)
|
c = country_dict.get(s.country, s.country)
|
||||||
s.country = countries_by_name[c]()
|
s.country = countries_by_name[c]()
|
||||||
|
if FlightType.SEAD in s.auto_assignable_mission_types:
|
||||||
|
s.auto_assignable_mission_types.add(FlightType.SEAD_SWEEP)
|
||||||
|
|
||||||
# code below is used to fix corruptions wrt overpopulation
|
# code below is used to fix corruptions wrt overpopulation
|
||||||
parking_type = ParkingType().from_squadron(s)
|
parking_type = ParkingType().from_squadron(s)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user