From 964eda13ccd1faf1fb60edcce213d22e1387b878 Mon Sep 17 00:00:00 2001 From: Alchav <59858495+Alchav@users.noreply.github.com> Date: Fri, 10 Jun 2022 07:23:03 -0400 Subject: [PATCH] Fix LTTP filler items (#621) --- worlds/alttp/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worlds/alttp/__init__.py b/worlds/alttp/__init__.py index cdeb9e39..9f646eb8 100644 --- a/worlds/alttp/__init__.py +++ b/worlds/alttp/__init__.py @@ -24,6 +24,7 @@ from .EntranceShuffle import link_entrances, link_inverted_entrances, plando_con lttp_logger = logging.getLogger("A Link to the Past") +extras_list = sum(difficulties['normal'].extras[0:5], []) class ALTTPWeb(WebWorld): setup_en = Tutorial( @@ -479,11 +480,12 @@ class ALTTPWorld(World): fill_locations.remove(spot_to_fill) # very slow, unfortunately trash_count -= 1 + def get_filler_item_name(self) -> str: if self.world.goal[self.player] == "icerodhunt": item = "Nothing" 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) def get_pre_fill_items(self):