Skip to content

Commit

Permalink
Set everything/everywhere in options.py explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhar committed Dec 13, 2023
1 parent 09cef15 commit 439733b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions WebHostLib/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,18 @@ def get_html_doc(option_type: type(Options.Option)) -> str:
"gameItemGroups": [
group for group in world.item_name_groups.keys() if group != "Everything"
],
"gameItemDescriptions": world.web.item_descriptions,
"gameLocations": tuple(world.location_names),
"gameLocationGroups": [
group for group in world.location_name_groups.keys() if group != "Everywhere"
],
"gameLocationDescriptions": world.web.location_descriptions,
"gameItemDescriptions": {
"Everything": "All possible items in the entire game.",
**world.web.item_descriptions,
},
"gameLocationDescriptions": {
"Everywhere": "All possible locations in the entire game.",
**world.web.location_descriptions,
},
}

with open(os.path.join(target_folder, 'weighted-options.json'), "w") as f:
Expand Down

0 comments on commit 439733b

Please sign in to comment.