fix a retro - crossed TR keylogic crash
This commit is contained in:
parent
94d3a68f43
commit
ca03e1f59f
4
Rules.py
4
Rules.py
|
@ -857,7 +857,7 @@ def set_trock_key_rules(world, player):
|
||||||
'Turtle Rock - Eye Bridge - Top Right']
|
'Turtle Rock - Eye Bridge - Top Right']
|
||||||
|
|
||||||
# If TR is only accessible from the middle, the big key must be further restricted to prevent softlock potential
|
# If TR is only accessible from the middle, the big key must be further restricted to prevent softlock potential
|
||||||
if not can_reach_front and not world.keyshuffle[player]:
|
if not can_reach_front and not world.keyshuffle[player] and not world.retro[player]:
|
||||||
# Must not go in the Big Key Chest - only 1 other chest available and 2+ keys required for all other chests
|
# Must not go in the Big Key Chest - only 1 other chest available and 2+ keys required for all other chests
|
||||||
non_big_key_locations += ['Turtle Rock - Big Key Chest']
|
non_big_key_locations += ['Turtle Rock - Big Key Chest']
|
||||||
if not can_reach_big_chest:
|
if not can_reach_big_chest:
|
||||||
|
@ -867,7 +867,7 @@ def set_trock_key_rules(world, player):
|
||||||
if world.bigkeyshuffle[player] and can_reach_big_chest:
|
if world.bigkeyshuffle[player] and can_reach_big_chest:
|
||||||
# Must not go in the dungeon - all 3 available chests (Chomps, Big Chest, Crystaroller) must be keys to access laser bridge, and the big key is required first
|
# Must not go in the dungeon - all 3 available chests (Chomps, Big Chest, Crystaroller) must be keys to access laser bridge, and the big key is required first
|
||||||
non_big_key_locations += ['Turtle Rock - Chain Chomps', 'Turtle Rock - Compass Chest', 'Turtle Rock - Roller Room - Left', 'Turtle Rock - Roller Room - Right']
|
non_big_key_locations += ['Turtle Rock - Chain Chomps', 'Turtle Rock - Compass Chest', 'Turtle Rock - Roller Room - Left', 'Turtle Rock - Roller Room - Right']
|
||||||
elif not world.retro[player]:
|
else:
|
||||||
# A key is required in the Big Key Chest to prevent a possible softlock. Place an extra key to ensure 100% locations still works
|
# A key is required in the Big Key Chest to prevent a possible softlock. Place an extra key to ensure 100% locations still works
|
||||||
world.push_item(world.get_location('Turtle Rock - Big Key Chest', player), ItemFactory('Small Key (Turtle Rock)', player), False)
|
world.push_item(world.get_location('Turtle Rock - Big Key Chest', player), ItemFactory('Small Key (Turtle Rock)', player), False)
|
||||||
world.get_location('Turtle Rock - Big Key Chest', player).event = True
|
world.get_location('Turtle Rock - Big Key Chest', player).event = True
|
||||||
|
|
Loading…
Reference in New Issue