From f891e935e566e1fedda1e1c952d00bc43e9fb2e3 Mon Sep 17 00:00:00 2001 From: CodeGorilla <3672561+Ars-Ignis@users.noreply.github.com> Date: Wed, 22 Jan 2025 18:11:40 -0600 Subject: [PATCH] Stop checking for item.advancement The item pool is already sorted, so we already know item.advancement == False. --- Fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Fill.py b/Fill.py index 5aee4d6a907e..905901eae818 100644 --- a/Fill.py +++ b/Fill.py @@ -1106,7 +1106,7 @@ def distribute_local_nonprogression(multiworld: MultiWorld, # fill local filler on local excluded locations first new_filler_itempool: typing.List[Item] = [] for item in filler_itempool: - if not item.advancement and item.name in multiworld.worlds[item.player].options.local_items.value: + if item.name in multiworld.worlds[item.player].options.local_items.value: local_nonprogression_items.append(item) else: new_filler_itempool.append(item) @@ -1116,7 +1116,7 @@ def distribute_local_nonprogression(multiworld: MultiWorld, # then add local useful to remaining local items and fill in default locations new_useful_itempool: typing.List[Item] = [] for item in useful_itempool: - if not item.advancement and item.name in multiworld.worlds[item.player].options.local_items.value: + if item.name in multiworld.worlds[item.player].options.local_items.value: local_nonprogression_items.append(item) else: new_useful_itempool.append(item)