Added a new setting: "Maximum frontline length (km)"

It replaces the FRONTLINE_LENGTH constant, which was used previously. The default setting for the frontline length has been set to match the FRONTLINE_LENGTH value (80 km), but I feel the default should be a bit shorter. Discussion on the topic would be welcome.
This commit is contained in:
MetalStormGhost
2022-04-16 11:26:21 +03:00
committed by Raffson
parent 96a5a8e2ef
commit e1bf0ed47a
9 changed files with 36 additions and 19 deletions

View File

@@ -394,6 +394,15 @@ class Settings:
min=30,
max=150,
)
# Mission specific
max_frontline_length: int = bounded_int_option(
"Maximum frontline length (km)",
page=MISSION_GENERATOR_PAGE,
section=GAMEPLAY_SECTION,
default=80,
min=1,
max=100,
)
# Performance
perf_smoke_gen: bool = boolean_option(