Core: Fix forbid_important_item_rule with parenthesis (#1107)

This commit is contained in:
Alchav 2022-10-16 01:32:17 -04:00 committed by GitHub
parent 5e97463bdc
commit f7fc6fa7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ def inaccessible_location_rules(world: MultiWorld, state: CollectionState, locat
unreachable_locations = [location for location in locations if not location.can_reach(maximum_exploration_state)]
if unreachable_locations:
def forbid_important_item_rule(item: Item):
return not (item.classification & 0b0011) and world.accessibility[item.player] != 'minimal'
return not ((item.classification & 0b0011) and world.accessibility[item.player] != 'minimal')
for location in unreachable_locations:
add_item_rule(location, forbid_important_item_rule)