Put common options first (#774)

* this applies to yaml and webhost
* this allows overwriting common options from the world
This commit is contained in:
black-sliver 2022-07-15 06:54:29 +02:00 committed by GitHub
parent aa954b776d
commit 8e15fe51b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def create():
for game_name, world in AutoWorldRegister.world_types.items():
all_options = {**world.options, **Options.per_game_common_options}
all_options = {**Options.per_game_common_options, **world.options}
res = Template(open(os.path.join("WebHostLib", "templates", "options.yaml")).read()).render(
options=all_options,
__version__=__version__, game=game_name, yaml_dump=yaml.dump,