In shopsanity, guarantee a bee will be purchaseable

This commit is contained in:
2022-01-01 13:01:30 -08:00
parent 7e0a072639
commit 85c7eaf248

View File

@@ -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()
world.prizes[player]['fish'] = new_prizes.pop()