OoT: place shop progression first rather than only tunics

This commit is contained in:
espeon65536 2021-09-26 22:47:58 -05:00 committed by Fabian Dill
parent b7aa5a17b7
commit 0d9e186e18
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ class OOTWorld(World):
shop_locations = list(
filter(lambda location: location.type == 'Shop' and location.name not in self.shop_prices,
self.world.get_unfilled_locations(player=self.player)))
shop_items.sort(key=lambda item: 1 if item.name in {"Buy Goron Tunic", "Buy Zora Tunic"} else 0)
shop_items.sort(key=lambda item: int(item.advancement)) # place progression shop items first
self.world.random.shuffle(shop_locations)
for item in shop_items:
self.world.itempool.remove(item)