Skip to content

Commit

Permalink
Fixes in response to beta testing and such. (ArchipelagoMW#9)
Browse files Browse the repository at this point in the history
Remove left-on debug prints.
  • Loading branch information
dewiniaid authored Jun 27, 2022
1 parent 5e00dfd commit bf0a12a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions worlds/hk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ def _add(item_name: str, location_name: str):
for shop, locations in self.created_multi_locations.items():
for _ in range(len(locations), getattr(self.world, shop_to_option[shop])[self.player].value):
loc = self.create_location(shop)
print(f"Created location {loc.name}")
unfilled_locations += 1

# Balance the pool
Expand All @@ -309,16 +308,13 @@ def _add(item_name: str, location_name: str):

# Add additional shop items, as needed.
if additional_shop_items > 0:
print(f"Additional shop items requested: {additional_shop_items}")
shops = list(shop for shop, locations in self.created_multi_locations.items() if len(locations) < 16)
if not self.world.EggShopSlots[self.player].value: # No eggshop, so don't place items there
shops.remove('Egg_Shop')

for _ in range(additional_shop_items):
print(f"Candidates: {shops}")
shop = self.world.random.choice(shops)
loc = self.create_location(shop)
print(f"Created location {loc.name}")
unfilled_locations += 1
if len(self.created_multi_locations[shop]) >= 16:
shops.remove(shop)
Expand Down

0 comments on commit bf0a12a

Please sign in to comment.