Fixed issue with prize shuffle where HMG uses cross dungeon paths to show prize on map
This commit is contained in:
@@ -2789,7 +2789,7 @@ class Item(object):
|
||||
def explore_region(region):
|
||||
explored_regions.append(region.name)
|
||||
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]:
|
||||
return ent
|
||||
elif ent.parent_region.name not in explored_regions:
|
||||
|
||||
@@ -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 \
|
||||
and (exit.connected_region.type == region.type
|
||||
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)
|
||||
|
||||
if build_copy_world:
|
||||
|
||||
Reference in New Issue
Block a user