Fix TR small key getting shuffled away

This commit is contained in:
Kyle Franz 2021-10-23 23:52:58 -07:00 committed by Fabian Dill
parent 756c6554c9
commit 82aca3bce4
1 changed files with 3 additions and 2 deletions

View File

@ -936,8 +936,9 @@ def set_trock_key_rules(world, player):
# A key is required in the Big Key Chest to prevent a possible softlock. Place an extra key to ensure 100% locations still works
item = ItemFactory('Small Key (Turtle Rock)', player)
item.world = world
world.push_item(world.get_location('Turtle Rock - Big Key Chest', player), item, False)
world.get_location('Turtle Rock - Big Key Chest', player).event = True
location = world.get_location('Turtle Rock - Big Key Chest', player)
location.place_locked_item(item)
location.event = True
toss_junk_item(world, player)
if world.accessibility[player] != 'locations':