mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Move missiongenerator helper to missiongenerator.
This commit is contained in:
@@ -2,8 +2,6 @@ from datetime import datetime
|
||||
from enum import Enum
|
||||
from typing import Type
|
||||
|
||||
from dcs.countries import country_dict
|
||||
|
||||
# mypy can't resolve these if they're wildcard imports for some reason.
|
||||
from dcs.ships import (
|
||||
CVN_71,
|
||||
@@ -131,13 +129,6 @@ def upgrade_to_supercarrier(unit: Type[ShipType], name: str) -> Type[ShipType]:
|
||||
return unit
|
||||
|
||||
|
||||
def country_id_from_name(name: str) -> int:
|
||||
for k, v in country_dict.items():
|
||||
if v.name == name:
|
||||
return k
|
||||
return -1
|
||||
|
||||
|
||||
class DefaultLiveries:
|
||||
class Default(Enum):
|
||||
af_standard = ""
|
||||
|
||||
Reference in New Issue
Block a user