Fix SP key placement/removal issue in HMG

This commit is contained in:
codemann8
2024-03-22 06:35:10 -05:00
parent da749e4a11
commit 6d02d3da7a

View File

@@ -405,8 +405,14 @@ def generate_itempool(world, player):
if world.logic[player] == 'hybridglitches' and world.pottery[player] not in ['none', 'cave']: if world.logic[player] == 'hybridglitches' and world.pottery[player] not in ['none', 'cave']:
# In HMG force swamp smalls in pots to allow getting out of swamp palace # In HMG force swamp smalls in pots to allow getting out of swamp palace
placed_items['Swamp Palace - Trench 1 Pot Key'] = 'Small Key (Swamp Palace)' loc = world.get_location('Swamp Palace - Trench 1 Pot Key', player)
placed_items['Swamp Palace - Pot Row Pot Key'] = 'Small Key (Swamp Palace)' world.push_item(loc, ItemFactory('Small Key (Swamp Palace)', player), False)
loc.event = True
loc.locked = True
loc = world.get_location('Swamp Palace - Pot Row Pot Key', player)
world.push_item(loc, ItemFactory('Small Key (Swamp Palace)', player), False)
loc.event = True
loc.locked = True
world.itempool.remove(ItemFactory('Small Key (Swamp Palace)', player)) world.itempool.remove(ItemFactory('Small Key (Swamp Palace)', player))
world.itempool.remove(ItemFactory('Small Key (Swamp Palace)', player)) world.itempool.remove(ItemFactory('Small Key (Swamp Palace)', player))