Skip to content

Commit

Permalink
HK: Remove unused variables and imports (ArchipelagoMW#4303)
Browse files Browse the repository at this point in the history
* Remove unused variables and imports

* Accidental duplication
  • Loading branch information
nicholassaylor authored Dec 4, 2024
1 parent f43fa61 commit 769fbc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion worlds/hk/Options.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing
import re
from dataclasses import dataclass, make_dataclass
from dataclasses import make_dataclass

from .ExtractedData import logic_options, starts, pool_options
from .Rules import cost_terms
Expand Down
4 changes: 2 additions & 2 deletions worlds/hk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _add(item_name: str, location_name: str, randomized: bool):

for shop, locations in self.created_multi_locations.items():
for _ in range(len(locations), getattr(self.options, shop_to_option[shop]).value):
loc = self.create_location(shop)
self.create_location(shop)
unfilled_locations += 1

# Balance the pool
Expand All @@ -356,7 +356,7 @@ def _add(item_name: str, location_name: str, randomized: bool):
if shops:
for _ in range(additional_shop_items):
shop = self.random.choice(shops)
loc = self.create_location(shop)
self.create_location(shop)
unfilled_locations += 1
if len(self.created_multi_locations[shop]) >= 16:
shops.remove(shop)
Expand Down

0 comments on commit 769fbc5

Please sign in to comment.