Require 4 keys to go from crystaroller to TR dark maze.

But not the other way around. To prevent some silly edge case I forgot
This commit is contained in:
cassidoxa
2022-11-24 19:32:25 -05:00
parent 0e3aee1211
commit 1b8592b500

View File

@@ -1038,6 +1038,7 @@ def set_trock_key_rules(world, player):
# might open all the locked doors in any order so we need maximally restrictive rules.
if can_reach_back:
set_rule(world.get_location('Turtle Rock - Big Key Chest', player), lambda state: (state.has_key('Small Key (Turtle Rock)', player, 4) or item_name(state, 'Turtle Rock - Big Key Chest', player) == ('Small Key (Turtle Rock)', player)))
set_rule(world.get_entrance('Turtle Rock Dark Room Staircase', player), lambda state: state.has_key('Small Key (Turtle Rock)', player, 4))
if world.accessibility != 'locations':
set_always_allow(world.get_location('Turtle Rock - Big Key Chest', player), lambda state, item: item.name == 'Small Key (Turtle Rock)' and item.player == player)
else: