Minor efficiency
This commit is contained in:
@@ -341,9 +341,10 @@ def generate_itempool(world, player):
|
|||||||
world.escape_assist[player].append('bombs')
|
world.escape_assist[player].append('bombs')
|
||||||
|
|
||||||
for (location, item) in placed_items.items():
|
for (location, item) in placed_items.items():
|
||||||
world.push_item(world.get_location(location, player), ItemFactory(item, player), False)
|
loc = world.get_location(location, player)
|
||||||
world.get_location(location, player).event = True
|
world.push_item(loc, ItemFactory(item, player), False)
|
||||||
world.get_location(location, player).locked = True
|
loc.event = True
|
||||||
|
loc.locked = True
|
||||||
|
|
||||||
if world.shopsanity[player] and not skip_pool_adjustments:
|
if world.shopsanity[player] and not skip_pool_adjustments:
|
||||||
for shop in world.shops[player]:
|
for shop in world.shops[player]:
|
||||||
|
|||||||
Reference in New Issue
Block a user