mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix command line campaign generator.
This commit is contained in:
parent
e96210f48c
commit
47e038c9fa
@ -18,6 +18,7 @@ from game.data.weapons import (
|
|||||||
WEAPON_INTRODUCTION_YEARS,
|
WEAPON_INTRODUCTION_YEARS,
|
||||||
Weapon,
|
Weapon,
|
||||||
)
|
)
|
||||||
|
from game.db import FACTIONS
|
||||||
from game.profiling import logged_duration
|
from game.profiling import logged_duration
|
||||||
from game.settings import Settings
|
from game.settings import Settings
|
||||||
from game.theater.start_generator import GameGenerator, GeneratorSettings, ModSettings
|
from game.theater.start_generator import GameGenerator, GeneratorSettings, ModSettings
|
||||||
@ -199,8 +200,8 @@ def create_game(
|
|||||||
inject_custom_payloads(Path(persistency.base_path()))
|
inject_custom_payloads(Path(persistency.base_path()))
|
||||||
campaign = Campaign.from_json(campaign_path)
|
campaign = Campaign.from_json(campaign_path)
|
||||||
generator = GameGenerator(
|
generator = GameGenerator(
|
||||||
blue,
|
FACTIONS[blue],
|
||||||
red,
|
FACTIONS[red],
|
||||||
campaign.load_theater(),
|
campaign.load_theater(),
|
||||||
Settings(
|
Settings(
|
||||||
supercarrier=supercarrier,
|
supercarrier=supercarrier,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user