Placing Sanc Drop in DW if HC in DW and non-crossworld

This commit is contained in:
codemann8
2023-03-06 15:16:23 -06:00
parent 0748947502
commit da71e9ba12

View File

@@ -444,10 +444,12 @@ def do_holes_and_linked_drops(entrances, exits, avail, cross_world, keep_togethe
random.shuffle(hole_entrances) random.shuffle(hole_entrances)
if not cross_world and 'Sanctuary Grave' in holes_to_shuffle: if not cross_world and 'Sanctuary Grave' in holes_to_shuffle:
hc = avail.world.get_entrance('Hyrule Castle Exit (South)', avail.player) hc = avail.world.get_entrance('Hyrule Castle Exit (South)', avail.player)
chosen_entrance = None
if hc.connected_region and hc.connected_region.type == RegionType.DarkWorld: if hc.connected_region and hc.connected_region.type == RegionType.DarkWorld:
chosen_entrance = next(entrance for entrance in hole_entrances if entrance[0] in DW_Entrances) chosen_entrance = next(entrance for entrance in hole_entrances if entrance[0] in DW_Entrances)
if not chosen_entrance: if not chosen_entrance:
chosen_entrance = next(entrance for entrance in hole_entrances if entrance[0] in LW_Entrances) chosen_entrance = next(entrance for entrance in hole_entrances if entrance[0] in LW_Entrances)
if chosen_entrance:
hole_entrances.remove(chosen_entrance) hole_entrances.remove(chosen_entrance)
sanc_interior = next(target for target in hole_targets if target[0] == 'Sanctuary Exit') sanc_interior = next(target for target in hole_targets if target[0] == 'Sanctuary Exit')
hole_targets.remove(sanc_interior) hole_targets.remove(sanc_interior)