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

This commit is contained in:
codemann8
2025-01-02 22:58:07 -06:00
parent d479789274
commit 9eba1d4c40

View File

@@ -2820,7 +2820,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 and ent.spot_type != 'OWG':
if ent.parent_region is not None and ent.spot_type not in ['OWG', 'HMG']:
if ent.parent_region.type in [RegionType.LightWorld, RegionType.DarkWorld]:
return ent
elif ent.parent_region.name not in explored_regions: