Merge branch 'doors-shops' of https://github.com/cassidoxa/ALttPEntranceRandomizer into ShopCode

This commit is contained in:
aerinon
2020-02-11 14:57:03 -07:00
2 changed files with 12 additions and 10 deletions

View File

@@ -406,8 +406,10 @@ def set_up_shops(world, player):
if world.retro[player]:
rss = world.get_region('Red Shield Shop', player).shop
if not rss.locked:
rss.custom = True
rss.add_inventory(2, 'Single Arrow', 80)
for shop in random.sample([s for s in world.shops if s.custom and not s.locked and s.region.player == player], 5):
for shop in random.sample([s for s in world.shops if not s.locked and s.region.player == player], 5):
shop.custom = True
shop.locked = True
shop.add_inventory(0, 'Single Arrow', 80)
shop.add_inventory(1, 'Small Key (Universal)', 100)