Fix some issues with Smith return
This commit is contained in:
@@ -1627,7 +1627,7 @@ class Entrance(object):
|
||||
explored_regions[region] = path
|
||||
for exit in region.exits:
|
||||
if exit.connected_region and (not ignore_ledges or exit.spot_type != 'Ledge') \
|
||||
and exit.connected_region.name not in ['Dig Game Area'] \
|
||||
and exit.name not in ['Dig Game To Ledge Drop'] \
|
||||
and exit.access_rule(state):
|
||||
if exit.connected_region == destination:
|
||||
found = True
|
||||
|
||||
@@ -1378,7 +1378,7 @@ def can_reach_smith(world, player):
|
||||
elif exit.connected_region.name == 'Blacksmiths Hut' and exit.access_rule(blank_state):
|
||||
found = True
|
||||
return
|
||||
elif exit.connected_region.name not in explored_regions:
|
||||
elif exit.connected_region.name not in explored_regions and exit.name != "Dig Game To Ledge Drop":
|
||||
if (region.type == RegionType.Dungeon and exit.connected_region.name.endswith(' Portal')) \
|
||||
or (exit.connected_region.type in [RegionType.LightWorld, RegionType.DarkWorld] \
|
||||
and exit.access_rule(blank_state)):
|
||||
|
||||
Reference in New Issue
Block a user