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.)
This commit is contained in:
CaitSith2 2020-08-25 02:38:32 -07:00
parent 4ec8007514
commit 08f8677433
1 changed files with 1 additions and 1 deletions

View File

@ -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)