From c82f32574849f820e0dfd9c542c213c641ce2fb9 Mon Sep 17 00:00:00 2001 From: LLCoolDave Date: Mon, 22 May 2017 21:38:10 +0200 Subject: [PATCH] Fix issue where Spectacle Rock Cave could erroneously be used twice to place mandatory exits, despite only having one guaranteed reachable exit. --- EntranceShuffle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/EntranceShuffle.py b/EntranceShuffle.py index 4cf9e466..208e5365 100644 --- a/EntranceShuffle.py +++ b/EntranceShuffle.py @@ -360,8 +360,9 @@ def link_entrances(world): candidate = None for cave in cavelist: if isinstance(cave, tuple) and len(cave) > 1: - # special handling: TRock has two entries that we should consider entrance only - if cave[0] == 'Turtle Rock Exit (Front)' and len(cave) == 2: + # special handling: TRock and Spectracle Rock cave have two entries that we should consider entrance only + # ToDo this should be handled in a more sensible manner + if cave[0] in ['Turtle Rock Exit (Front)', 'Spectacle Rock Cave Exit (Peak)'] and len(cave) == 2: continue candidate = cave break