diff --git a/game/version.py b/game/version.py index 6d5fe16f..58b03430 100644 --- a/game/version.py +++ b/game/version.py @@ -170,6 +170,8 @@ VERSION = _build_version_string() #: #: Version 10.5 #: * Support for scenery objectives defined by quad zones. -#: * Campaign designers can now define `max_frontline_length` (in km) setting: -#: `max_frontline_length: 25` +#: * Campaign designers can now define more settings: +#: `max_frontline_length: 25` (in km) +#: `culling_exclusion_radius: 35` (in km) + CAMPAIGN_FORMAT_VERSION = (10, 5) diff --git a/qt_ui/windows/newgame/QNewGameWizard.py b/qt_ui/windows/newgame/QNewGameWizard.py index 5c770341..b0efaf39 100644 --- a/qt_ui/windows/newgame/QNewGameWizard.py +++ b/qt_ui/windows/newgame/QNewGameWizard.py @@ -144,6 +144,8 @@ class NewGameWizard(QtWidgets.QWizard): automate_aircraft_reinforcements=self.field("automate_aircraft_purchases"), supercarrier=self.field("supercarrier"), max_frontline_length=campaign.data.get("max_frontline_length", 80), + perf_culling=campaign.data.get("culling_exclusion_radius") is not None, + perf_culling_distance=campaign.data.get("culling_exclusion_radius", 100), ) generator_settings = GeneratorSettings( start_date=start_date, diff --git a/resources/campaigns/Battle4Georgia.yaml b/resources/campaigns/Battle4Georgia.yaml index de0d2f8c..fe0e998f 100644 --- a/resources/campaigns/Battle4Georgia.yaml +++ b/resources/campaigns/Battle4Georgia.yaml @@ -15,6 +15,7 @@ description: "
This mission was designed for the We Run Liberation group [WRL]
" miz: Battle4Georgia.miz max_frontline_length: 30 +culling_exclusion_radius: 35 performance: 2 version: "10.5" recommended_player_money: 2000