From ee07ac59a78239a848bed86428fbd37dba80f2e3 Mon Sep 17 00:00:00 2001 From: codemann8 Date: Tue, 3 May 2022 22:08:44 -0500 Subject: [PATCH] Fixed minor issue in ER with glitched regions that aren't in any OWTileGroup --- EntranceShuffle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EntranceShuffle.py b/EntranceShuffle.py index ed6653b4..54143e0c 100644 --- a/EntranceShuffle.py +++ b/EntranceShuffle.py @@ -1668,7 +1668,7 @@ def get_starting_entrances(world, player, force_starting_world=True): # get entrances from list of regions entrances = list() for region_name in regions: - if world.shuffle[player] == 'simple' and region_name in OWTileRegions and OWTileRegions[region_name] in [0x03, 0x05, 0x07]: + if world.shuffle[player] == 'simple' and region_name in OWTileRegions.keys() and OWTileRegions[region_name] in [0x03, 0x05, 0x07]: continue region = world.get_region(region_name, player) if not force_starting_world or region.type == (RegionType.LightWorld if not invFlag else RegionType.DarkWorld): @@ -1710,7 +1710,7 @@ def get_distant_entrances(world, start_entrance, player): # get entrances from remaining regions candidates = list() for region_name in [r for r in regions if r not in explored_regions]: - if OWTileRegions[region_name] in [0x03, 0x05, 0x07]: + if region_name in OWTileRegions.keys() and OWTileRegions[region_name] in [0x03, 0x05, 0x07]: continue region = world.get_region(region_name, player) for exit in region.exits: