Big Key Door fix for when big key double sided is off

Fix for basic issues - key total doesn't change
Potential key lock logic fix
This commit is contained in:
aerinon
2022-10-28 12:47:43 -06:00
parent e2392ef237
commit 9fafa8981e
2 changed files with 18 additions and 8 deletions

View File

@@ -2093,7 +2093,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