Option to define culling exclusion radius in campaign yaml file

This commit is contained in:
Raffson 2022-12-27 22:29:08 +01:00
parent bd4eb3e105
commit 39426dde45
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
3 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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,

View File

@ -15,6 +15,7 @@ description: "<p>This mission was designed for the We Run Liberation group [WRL]
</p>"
miz: Battle4Georgia.miz
max_frontline_length: 30
culling_exclusion_radius: 35
performance: 2
version: "10.5"
recommended_player_money: 2000