update exclusion procedure for clarity

This commit is contained in:
espeon65536
2021-07-23 08:55:44 -05:00
committed by Fabian Dill
parent 12eba33dbf
commit 64c80c32f0
4 changed files with 5 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ def locality_rules(world, player):
def exclusion_rules(world, player: int, excluded_locations: set):
for loc_name in excluded_locations:
location = world.get_location(loc_name, player)
add_item_rule(location, lambda i: i.can_exclude)
add_item_rule(location, lambda i: not (i.advancement or i.smallkey or i.bigkey or i.never_exclude))
def set_rule(spot, rule):