add separate can_exclude property, so non-progression items can be marked non-excluded

This commit is contained in:
espeon65536
2021-07-15 08:46:07 -05:00
committed by Fabian Dill
parent 39a5921522
commit 0eee1f2d01
5 changed files with 16 additions and 6 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: not (i.advancement or i.smallkey or i.bigkey))
add_item_rule(location, lambda i: i.can_exclude)
def set_rule(spot, rule):