From 08f86774332a531e6b62a2ae3e2e1dd561107f50 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Tue, 25 Aug 2020 02:38:32 -0700 Subject: [PATCH] Exclude potion shop from shop sanity. As potion shop is hard-coded into the game, until some assembly changes are made to handle it specifically, for changing its prices/contents, including this shop could potentially make the only sphere one small key not accessible, (and causes duplicate red/green/blue potions to exist.) --- ItemPool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ItemPool.py b/ItemPool.py index b006217e..ca186630 100644 --- a/ItemPool.py +++ b/ItemPool.py @@ -352,7 +352,7 @@ def shuffle_shops(world, items, player: int): shops = [] total_inventory = [] for shop in world.shops: - if shop.type == ShopType.Shop and shop.region.player == player: + if shop.type == ShopType.Shop and shop.region.player == player and shop.region.name != 'Potion Shop': shops.append(shop) total_inventory.extend(shop.inventory)