mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
add separate can_exclude property, so non-progression items can be marked non-excluded
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user