From 06216d977ba54dfd45d9cce9236a606381e73b7b Mon Sep 17 00:00:00 2001 From: codemann8 Date: Tue, 1 Nov 2022 16:14:01 -0500 Subject: [PATCH] Potential key lock logic fix --- Rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rules.py b/Rules.py index 07c7e6af..a7941814 100644 --- a/Rules.py +++ b/Rules.py @@ -2111,7 +2111,7 @@ def eval_small_key_door_main(state, door_name, dungeon, player): elif ruleType == KeyRuleType.AllowSmall: if (door_rule.small_location.item and door_rule.small_location.item.name == key_logic.small_key_name and door_rule.small_location.item.player == player): - return True # always okay if allow small is on + door_openable |= state.has_sm_key(key_logic.small_key_name, player, number) elif isinstance(ruleType, tuple): lock, lock_item = ruleType # this doesn't track logical locks yet, i.e. hammer locks the item and hammer is there, but the item isn't