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:
2
Rules.py
2
Rules.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user