In shopsanity, guarantee a bee will be purchaseable
This commit is contained in:
4
Fill.py
4
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()
|
||||
world.prizes[player]['fish'] = new_prizes.pop()
|
||||
|
||||
Reference in New Issue
Block a user