Merge pull request #18 from Catobat/UndefinedChanceFix

Fix edge cases with undefined_chance
This commit is contained in:
codemann8
2024-05-23 18:54:15 -05:00
committed by GitHub
4 changed files with 10 additions and 6 deletions

View File

@@ -3405,7 +3405,7 @@ def find_accessible_entrances(world, player, builder):
visited_entrances = []
# Add Sanctuary as an additional entrance in open mode, since you can save and quit to there
if world.mode[player] == 'open' and world.get_region('Sanctuary', player).dungeon.name == builder.name and 'Sanctuary' not in entrances:
if not world.is_dark_chapel_start(player) and world.get_region('Sanctuary', player).dungeon.name == builder.name and 'Sanctuary' not in entrances:
entrances.append('Sanctuary')
visited_entrances.append('Sanctuary')
regs.remove(world.get_region('Sanctuary', player))