From 85c7eaf24863bd77f2589f37d01663ee52593547 Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Sat, 1 Jan 2022 13:01:30 -0800 Subject: [PATCH] In shopsanity, guarantee a bee will be purchaseable --- Fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Fill.py b/Fill.py index 7deb6fcc..891aae6d 100644 --- a/Fill.py +++ b/Fill.py @@ -478,7 +478,7 @@ def sell_potions(world, player): if shop.region.name in shop_to_location_table and shop.region.name != 'Capacity Upgrade': loc_choices += [world.get_location(loc, player) for loc in shop_to_location_table[shop.region.name]] locations = [loc for loc in loc_choices if not loc.item] - for potion in ['Green Potion', 'Blue Potion', 'Red Potion']: + for potion in ['Green Potion', 'Blue Potion', 'Red Potion', 'Bee']: location = random.choice(locations) locations.remove(location) p_item = next(item for item in world.itempool if item.name == potion and item.player == player) @@ -837,4 +837,4 @@ def set_prize_drops(world, player): world.prizes[player]['stun'] = new_prizes.pop() # saved fish prize - world.prizes[player]['fish'] = new_prizes.pop() \ No newline at end of file + world.prizes[player]['fish'] = new_prizes.pop()