Options: allow yaml access to Priority Locations

This commit is contained in:
Fabian Dill
2022-02-01 16:36:14 +01:00
parent 2361f8f9d3
commit 0f20888563
5 changed files with 17 additions and 5 deletions

View File

@@ -428,6 +428,12 @@ class ExcludeLocations(OptionSet):
verify_location_name = True
class PriorityLocations(OptionSet):
"""Prevent these locations from having an unimportant item"""
displayname = "Priority Locations"
verify_location_name = True
class DeathLink(Toggle):
"""When you die, everyone dies. Of course the reverse is true too."""
displayname = "Death Link"
@@ -440,7 +446,8 @@ per_game_common_options = {
"start_inventory": StartInventory,
"start_hints": StartHints,
"start_location_hints": StartLocationHints,
"exclude_locations": ExcludeLocations
"exclude_locations": ExcludeLocations,
"priority_locations": PriorityLocations,
}
if __name__ == "__main__":