From 4a75d2726196658823d0ba657f735dece84e4fcb Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 1 May 2021 02:16:19 +0200 Subject: [PATCH] don't precollect Hollow Knight items --- worlds/hk/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/worlds/hk/__init__.py b/worlds/hk/__init__.py index a9c26125..65ea8421 100644 --- a/worlds/hk/__init__.py +++ b/worlds/hk/__init__.py @@ -80,7 +80,7 @@ def gen_items(world: MultiWorld, player: int): if item_data.type == "Event": event_location = world.get_location(item_name, player) - world.push_item(event_location, item) + world.push_item(event_location, item, collect=False) event_location.event = True event_location.locked = True if item.name == "King's_Pass": @@ -94,13 +94,12 @@ def gen_items(world: MultiWorld, player: int): world.push_item(event_location, item) event_location.event = True event_location.locked = True - world.push_precollected(item) elif item_data.type == "Fake": pass elif item_data.type in not_shufflable_types: location = world.get_location(item_name, player) - world.push_item(location, item) + world.push_item(location, item, collect=False) location.event = item.advancement location.locked = True else: @@ -110,7 +109,7 @@ def gen_items(world: MultiWorld, player: int): pool.append(item) else: location = world.get_location(item_name, player) - world.push_item(location, item) + world.push_item(location, item, collect=False) location.event = item.advancement location.locked = True logger.debug(f"Placed {item_name} to vanilla for player {player}")