Initial OWR/ER2 merge
This commit is contained in:
@@ -3273,6 +3273,10 @@ def find_inaccessible_regions(world, player):
|
|||||||
world.inaccessible_regions[player] = []
|
world.inaccessible_regions[player] = []
|
||||||
start_regions = ['Links House' if not world.is_bombshop_start(player) else 'Big Bomb Shop', 'Sanctuary' if world.mode[player] != 'inverted' else 'Dark Sanctuary Hint']
|
start_regions = ['Links House' if not world.is_bombshop_start(player) else 'Big Bomb Shop', 'Sanctuary' if world.mode[player] != 'inverted' else 'Dark Sanctuary Hint']
|
||||||
regs = convert_regions(start_regions, world, player)
|
regs = convert_regions(start_regions, world, player)
|
||||||
|
if all(all(not e.connected_region for e in r.exits) for r in regs):
|
||||||
|
# if attempting to find inaccessible regions before any connections made above, assume eventual access to Pyramid S&Q
|
||||||
|
start_regions = ['Pyramid Area' if not world.is_tile_swapped(0x1b, player) else 'Hyrule Castle Ledge']
|
||||||
|
regs = convert_regions(start_regions, world, player)
|
||||||
all_regions = [r for r in world.regions if r.player == player and r.type is not RegionType.Dungeon]
|
all_regions = [r for r in world.regions if r.player == player and r.type is not RegionType.Dungeon]
|
||||||
visited_regions = set()
|
visited_regions = set()
|
||||||
queue = deque(regs)
|
queue = deque(regs)
|
||||||
|
|||||||
2
Main.py
2
Main.py
@@ -231,7 +231,7 @@ def main(args, seed=None, fish=None):
|
|||||||
logger.info(world.fish.translate("cli","cli","shuffling.world"))
|
logger.info(world.fish.translate("cli","cli","shuffling.world"))
|
||||||
|
|
||||||
for player in range(1, world.players + 1):
|
for player in range(1, world.players + 1):
|
||||||
link_entrances(world, player)
|
link_entrances_new(world, player)
|
||||||
|
|
||||||
logger.info(world.fish.translate("cli", "cli", "shuffling.prep"))
|
logger.info(world.fish.translate("cli", "cli", "shuffling.prep"))
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user