From 60b80083e0fedcc3311e345518a4690c152ea8f6 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 4 Jul 2022 19:09:03 +0200 Subject: [PATCH] LttP: fix shop inventory corruption in upgrade fairy --- worlds/alttp/Shops.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worlds/alttp/Shops.py b/worlds/alttp/Shops.py index 77eec9dd..5abbdd07 100644 --- a/worlds/alttp/Shops.py +++ b/worlds/alttp/Shops.py @@ -460,10 +460,11 @@ def shuffle_shops(world, items, player: int): f"Not all upgrades put into Player{player}' item pool. Putting remaining items in Capacity Upgrade shop instead.") bombupgrades = sum(1 for item in new_items if 'Bomb Upgrade' in item) arrowupgrades = sum(1 for item in new_items if 'Arrow Upgrade' in item) + slots = iter(range(2)) if bombupgrades: - capacityshop.add_inventory(1, 'Bomb Upgrade (+5)', 100, bombupgrades) + capacityshop.add_inventory(next(slots), 'Bomb Upgrade (+5)', 100, bombupgrades) if arrowupgrades: - capacityshop.add_inventory(1, 'Arrow Upgrade (+5)', 100, arrowupgrades) + capacityshop.add_inventory(next(slots), 'Arrow Upgrade (+5)', 100, arrowupgrades) else: for item in new_items: world.push_precollected(ItemFactory(item, player))