From b65c55e1b550aea854738533d67303a74ca1ea1c Mon Sep 17 00:00:00 2001 From: codemann8 Date: Fri, 24 Nov 2023 16:38:21 -0600 Subject: [PATCH] Fix some issues with Smith return --- BaseClasses.py | 2 +- OverworldShuffle.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseClasses.py b/BaseClasses.py index 08ccdd93..94287939 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -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 diff --git a/OverworldShuffle.py b/OverworldShuffle.py index cd41b663..7c581fac 100644 --- a/OverworldShuffle.py +++ b/OverworldShuffle.py @@ -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)):