From c849f8202ca282212f3970e822741be2cc0e4b9e Mon Sep 17 00:00:00 2001 From: Paul Wendelboe Date: Mon, 9 Oct 2023 00:39:54 +0000 Subject: [PATCH] Update ItemList.py Fix iteration on item instead of name when using a custom pool in some cases. --- ItemList.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ItemList.py b/ItemList.py index 7a20c7a0..2a558b9a 100644 --- a/ItemList.py +++ b/ItemList.py @@ -1164,12 +1164,12 @@ def make_custom_item_pool(world, player, progressive, shuffle, difficulty, timer pool.extend(['Nothing'] * nothings) start_inventory = [x for x in world.precollected_items if x.player == player] - if world.logic[player] in ['owglitches', 'nologic'] and all(x !=' Pegasus Boots' for x in start_inventory): + if world.logic[player] in ['owglitches', 'nologic'] and all(x.name !=' Pegasus Boots' for x in start_inventory): precollected_items.append('Pegasus Boots') if 'Pegasus Boots' in pool: pool.remove('Pegasus Boots') pool.append('Rupees (20)') - if world.swords[player] == 'assured' and all(' Sword' not in x for x in start_inventory): + if world.swords[player] == 'assured' and all(' Sword' not in x.name for x in start_inventory): precollected_items.append('Progressive Sword') if 'Progressive Sword' in pool: pool.remove('Progressive Sword')