From 6d02d3da7a033ad6bef17d8429e7c7bba7cd6e3e Mon Sep 17 00:00:00 2001 From: codemann8 Date: Fri, 22 Mar 2024 06:35:10 -0500 Subject: [PATCH] Fix SP key placement/removal issue in HMG --- ItemList.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ItemList.py b/ItemList.py index 263acba8..16130fc9 100644 --- a/ItemList.py +++ b/ItemList.py @@ -405,8 +405,14 @@ def generate_itempool(world, player): 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 - placed_items['Swamp Palace - Trench 1 Pot Key'] = 'Small Key (Swamp Palace)' - placed_items['Swamp Palace - Pot Row Pot Key'] = 'Small Key (Swamp Palace)' + loc = world.get_location('Swamp Palace - Trench 1 Pot Key', player) + 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))