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

@@ -32,9 +32,9 @@ def exclusion_rules(world, player: int, exclude_locations: typing.Set[str]):
raise Exception(f"Unable to exclude location {loc_name} in player {player}'s world.") from e
else:
add_item_rule(location, lambda i: not (i.advancement or i.never_exclude))
location.excluded = True
location.progress_type = LocationProgressType.EXCLUDED
def set_rule(spot, rule: CollectionRule):
spot.access_rule = rule