Make mod selection nicer and deprecate MB-339.

Mod selection is now done via checkbox in the new game wizard.

The MB-339 is being turned into a paid module, and the free mod no longer works, so it's been removed.
This commit is contained in:
Simon Clark
2021-06-21 00:03:22 +01:00
parent d074500109
commit 11069cc219
35 changed files with 198 additions and 1805 deletions

View File

@@ -49,7 +49,7 @@ from . import (
OffMapSpawn,
)
from ..profiling import logged_duration
from ..settings import Settings
from ..settings import ModSettings, Settings
GroundObjectTemplates = Dict[str, Dict[str, Any]]
@@ -86,12 +86,14 @@ class GameGenerator:
theater: ConflictTheater,
settings: Settings,
generator_settings: GeneratorSettings,
mod_settings: ModSettings,
) -> None:
self.player = player
self.enemy = enemy
self.theater = theater
self.settings = settings
self.generator_settings = generator_settings
self.mod_settings = mod_settings
def generate(self) -> Game:
with logged_duration("TGO population"):
@@ -106,6 +108,7 @@ class GameGenerator:
settings=self.settings,
player_budget=self.generator_settings.player_budget,
enemy_budget=self.generator_settings.enemy_budget,
mod_settings=self.mod_settings,
)
GroundObjectGenerator(game, self.generator_settings).generate()