Dungeons: Place TRock keys first as it's the only dungeon that has requirements about reachability of one of its entrances, which may lead to circular issues if that entrance is blocked through a dungeon that hasn't had its keys placed yet.

This commit is contained in:
LLCoolDave 2017-05-20 14:05:15 +02:00
parent 40baeef6a9
commit 4d6257f872
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ def fill_dungeons(world):
# this key is in a fixed location (for now)
world.push_item(world.get_location('[dungeon - D3 - B1] Skull Woods - South of Big Chest'), SWSmallKey(), False)
for dungeon_regions, big_key, small_keys, dungeon_items in [ES, EP, DP, ToH, AT, PoD, TT, SW, SP, IP, MM, TR, GT]:
for dungeon_regions, big_key, small_keys, dungeon_items in [TR, ES, EP, DP, ToH, AT, PoD, TT, SW, SP, IP, MM, GT]:
# this is what we need to fill
dungeon_locations = [location for location in world.get_unfilled_locations() if location.parent_region.name in dungeon_regions]
random.shuffle(dungeon_locations)
@ -61,7 +61,7 @@ def fill_dungeons(world):
all_state._clear_cache()
# next place dungeon items
if True: # optional in future
if world.place_dungeon_items:
for dungeon_item in dungeon_items:
di_location = dungeon_locations.pop()
world.push_item(di_location, dungeon_item, False)