mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
don't precollect Hollow Knight items
This commit is contained in:
@@ -80,7 +80,7 @@ def gen_items(world: MultiWorld, player: int):
|
|||||||
|
|
||||||
if item_data.type == "Event":
|
if item_data.type == "Event":
|
||||||
event_location = world.get_location(item_name, player)
|
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.event = True
|
||||||
event_location.locked = True
|
event_location.locked = True
|
||||||
if item.name == "King's_Pass":
|
if item.name == "King's_Pass":
|
||||||
@@ -94,13 +94,12 @@ def gen_items(world: MultiWorld, player: int):
|
|||||||
world.push_item(event_location, item)
|
world.push_item(event_location, item)
|
||||||
event_location.event = True
|
event_location.event = True
|
||||||
event_location.locked = True
|
event_location.locked = True
|
||||||
world.push_precollected(item)
|
|
||||||
|
|
||||||
elif item_data.type == "Fake":
|
elif item_data.type == "Fake":
|
||||||
pass
|
pass
|
||||||
elif item_data.type in not_shufflable_types:
|
elif item_data.type in not_shufflable_types:
|
||||||
location = world.get_location(item_name, player)
|
location = world.get_location(item_name, player)
|
||||||
world.push_item(location, item)
|
world.push_item(location, item, collect=False)
|
||||||
location.event = item.advancement
|
location.event = item.advancement
|
||||||
location.locked = True
|
location.locked = True
|
||||||
else:
|
else:
|
||||||
@@ -110,7 +109,7 @@ def gen_items(world: MultiWorld, player: int):
|
|||||||
pool.append(item)
|
pool.append(item)
|
||||||
else:
|
else:
|
||||||
location = world.get_location(item_name, player)
|
location = world.get_location(item_name, player)
|
||||||
world.push_item(location, item)
|
world.push_item(location, item, collect=False)
|
||||||
location.event = item.advancement
|
location.event = item.advancement
|
||||||
location.locked = True
|
location.locked = True
|
||||||
logger.debug(f"Placed {item_name} to vanilla for player {player}")
|
logger.debug(f"Placed {item_name} to vanilla for player {player}")
|
||||||
|
|||||||
Reference in New Issue
Block a user