Fixed issue with prize shuffle where HMG uses cross dungeon paths to show prize on map

This commit is contained in:
codemann8
2024-08-16 19:59:18 -05:00
parent 67c87426fb
commit 47214bc40a
2 changed files with 2 additions and 2 deletions

View File

@@ -2789,7 +2789,7 @@ class Item(object):
def explore_region(region): def explore_region(region):
explored_regions.append(region.name) explored_regions.append(region.name)
for ent in region.entrances: for ent in region.entrances:
if ent.parent_region is not None: if ent.parent_region is not None and ent.spot_type != 'OWG':
if ent.parent_region.type in [RegionType.LightWorld, RegionType.DarkWorld]: if ent.parent_region.type in [RegionType.LightWorld, RegionType.DarkWorld]:
return ent return ent
elif ent.parent_region.name not in explored_regions: elif ent.parent_region.name not in explored_regions:

View File

@@ -1499,7 +1499,7 @@ def build_accessible_region_list(world, start_region, player, build_copy_world=F
elif exit.connected_region.name not in explored_regions \ elif exit.connected_region.name not in explored_regions \
and (exit.connected_region.type == region.type and (exit.connected_region.type == region.type
or exit.name in OWExitTypes['OWEdge'] or (cross_world and exit.name in (OWExitTypes['Portal'] + OWExitTypes['Mirror']))) \ or exit.name in OWExitTypes['OWEdge'] or (cross_world and exit.name in (OWExitTypes['Portal'] + OWExitTypes['Mirror']))) \
and (not region_rules or exit.access_rule(blank_state)) and (not ignore_ledges or exit.name not in OWExitTypes['Ledge', 'OWG']): and (not region_rules or exit.access_rule(blank_state)) and (not ignore_ledges or exit.name not in (OWExitTypes['Ledge'] + OWExitTypes['OWG'])):
explore_region(exit.connected_region.name, exit.connected_region) explore_region(exit.connected_region.name, exit.connected_region)
if build_copy_world: if build_copy_world: