HK: Remove unused variables and imports (#4303)
* Remove unused variables and imports * Accidental duplication
This commit is contained in:
parent
f43fa612d5
commit
769fbc55a9
|
@ -1,6 +1,6 @@
|
||||||
import typing
|
import typing
|
||||||
import re
|
import re
|
||||||
from dataclasses import dataclass, make_dataclass
|
from dataclasses import make_dataclass
|
||||||
|
|
||||||
from .ExtractedData import logic_options, starts, pool_options
|
from .ExtractedData import logic_options, starts, pool_options
|
||||||
from .Rules import cost_terms
|
from .Rules import cost_terms
|
||||||
|
|
|
@ -340,7 +340,7 @@ class HKWorld(World):
|
||||||
|
|
||||||
for shop, locations in self.created_multi_locations.items():
|
for shop, locations in self.created_multi_locations.items():
|
||||||
for _ in range(len(locations), getattr(self.options, shop_to_option[shop]).value):
|
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
|
unfilled_locations += 1
|
||||||
|
|
||||||
# Balance the pool
|
# Balance the pool
|
||||||
|
@ -356,7 +356,7 @@ class HKWorld(World):
|
||||||
if shops:
|
if shops:
|
||||||
for _ in range(additional_shop_items):
|
for _ in range(additional_shop_items):
|
||||||
shop = self.random.choice(shops)
|
shop = self.random.choice(shops)
|
||||||
loc = self.create_location(shop)
|
self.create_location(shop)
|
||||||
unfilled_locations += 1
|
unfilled_locations += 1
|
||||||
if len(self.created_multi_locations[shop]) >= 16:
|
if len(self.created_multi_locations[shop]) >= 16:
|
||||||
shops.remove(shop)
|
shops.remove(shop)
|
||||||
|
|
Loading…
Reference in New Issue