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

@@ -490,7 +490,7 @@ class Game:
# By default, use the existing frontline conflict position
for front_line in self.theater.conflicts():
position = FrontLineConflictDescription.frontline_position(
front_line, self.theater
front_line, self.theater, self.settings
)
zones.append(position[0])
zones.append(front_line.blue_cp.position)