mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Fix LTTP filler items (#621)
This commit is contained in:
@@ -24,6 +24,7 @@ from .EntranceShuffle import link_entrances, link_inverted_entrances, plando_con
|
|||||||
|
|
||||||
lttp_logger = logging.getLogger("A Link to the Past")
|
lttp_logger = logging.getLogger("A Link to the Past")
|
||||||
|
|
||||||
|
extras_list = sum(difficulties['normal'].extras[0:5], [])
|
||||||
|
|
||||||
class ALTTPWeb(WebWorld):
|
class ALTTPWeb(WebWorld):
|
||||||
setup_en = Tutorial(
|
setup_en = Tutorial(
|
||||||
@@ -479,11 +480,12 @@ class ALTTPWorld(World):
|
|||||||
fill_locations.remove(spot_to_fill) # very slow, unfortunately
|
fill_locations.remove(spot_to_fill) # very slow, unfortunately
|
||||||
trash_count -= 1
|
trash_count -= 1
|
||||||
|
|
||||||
|
|
||||||
def get_filler_item_name(self) -> str:
|
def get_filler_item_name(self) -> str:
|
||||||
if self.world.goal[self.player] == "icerodhunt":
|
if self.world.goal[self.player] == "icerodhunt":
|
||||||
item = "Nothing"
|
item = "Nothing"
|
||||||
else:
|
else:
|
||||||
item = self.world.random.choice(chain(difficulties[self.world.difficulty[self.player]].extras[0:5]))
|
item = self.world.random.choice(extras_list)
|
||||||
return GetBeemizerItem(self.world, self.player, item)
|
return GetBeemizerItem(self.world, self.player, item)
|
||||||
|
|
||||||
def get_pre_fill_items(self):
|
def get_pre_fill_items(self):
|
||||||
|
Reference in New Issue
Block a user