From f1aef298ef64439830c1ba490a8e5bca6bf08bcf Mon Sep 17 00:00:00 2001 From: codemann8 Date: Fri, 30 Jan 2026 12:35:42 -0600 Subject: [PATCH] Minor efficiency --- ItemList.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ItemList.py b/ItemList.py index a6d0f899..a95604c7 100644 --- a/ItemList.py +++ b/ItemList.py @@ -341,9 +341,10 @@ def generate_itempool(world, player): world.escape_assist[player].append('bombs') for (location, item) in placed_items.items(): - world.push_item(world.get_location(location, player), ItemFactory(item, player), False) - world.get_location(location, player).event = True - world.get_location(location, player).locked = True + loc = world.get_location(location, player) + world.push_item(loc, ItemFactory(item, player), False) + loc.event = True + loc.locked = True if world.shopsanity[player] and not skip_pool_adjustments: for shop in world.shops[player]: