Fix for incorrect keylock situation

Fix for spoiler playthrough (makes things pretty slow though)
This commit is contained in:
aerinon
2022-11-29 13:18:34 -07:00
parent 1134eb23e7
commit 56ee20c4d2
2 changed files with 7 additions and 7 deletions

View File

@@ -796,7 +796,8 @@ class CollectionState(object):
rule = key_logic.door_rules[door.name]
key = KeyRuleType.AllowSmall
if (key in rule.new_rules and key_total >= rule.new_rules[key] and door.name not in skip
and door.name in state.reached_doors[player] and door.name not in state.opened_doors[player]):
and door.name in state.reached_doors[player] and door.name not in state.opened_doors[player]
and rule.small_location.item is None):
if paired:
door_candidates.append((door.name, paired.name))
skip.add(paired.name)