VT28 update: Keysanity has dungeon items in normal item pool

This commit is contained in:
Kevin Cathcart
2018-01-02 20:01:16 -05:00
parent 3adf4fadd1
commit e3ac7ee4a6
4 changed files with 20 additions and 2 deletions

View File

@@ -103,6 +103,8 @@ def fill_dungeons(world):
world.state.clear_cached_unreachable()
def get_dungeon_item_pool(world):
return [item for dungeon in world.dungeons for item in dungeon.all_items if item.key or world.place_dungeon_items]
def fill_dungeons_restrictive(world, shuffled_locations):
all_state_base = world.get_all_state()
@@ -112,7 +114,16 @@ def fill_dungeons_restrictive(world, shuffled_locations):
skull_woods_big_chest.event = True
shuffled_locations.remove(skull_woods_big_chest)
dungeon_items = [item for dungeon in world.dungeons for item in dungeon.all_items if item.key or world.place_dungeon_items]
if world.keysanity:
#in keysanity dungeon items are distributed as part of the normal item pool
for item in world.get_items():
if item.key:
item.advancement = True
elif item.map or item.compass:
item.priority = True
return
dungeon_items = get_dungeon_item_pool(world)
# sort in the order Big Key, Small Key, Other before placing dungeon items
sort_order = {"BigKey": 3, "SmallKey": 2}