mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
HK: Remove unused variables and imports (#4303)
* Remove unused variables and imports * Accidental duplication
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user