Skip to content

Commit 35d05e0

Browse files
authored
Merge pull request #2248 from pbeierle22/barrels-rare-error-safeguard
accounting for barrels in rare error safeguard
2 parents 69642bb + 079aa3f commit 35d05e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

randomizer/Fill.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,9 @@ def CalculateWothPaths(spoiler: Spoiler, WothLocations: List[Union[Locations, in
11891189
# DK Phase sometimes needs blast and always needs climbing, but the climbing isn't relevant unless it's shuffled
11901190
if not spoiler.settings.cannons_require_blast and Types.Climbing not in spoiler.settings.shuffled_location_types:
11911191
expectedEmptyPathPhases.append(Maps.KroolDonkeyPhase)
1192+
# If your training moves are unshuffled, they don't end up on paths. All the Barrels-only bosses no longer have any path requirements.
1193+
if spoiler.settings.training_barrels == TrainingBarrels.normal:
1194+
expectedEmptyPathPhases.extend([Maps.JapesBoss, Maps.AztecBoss, Maps.CavesBoss])
11921195
if goal not in expectedEmptyPathPhases:
11931196
raise Ex.FillException("Rare path calculation error - report this to the devs with your settings string. Error code PL-2")
11941197
for goal, path in spoiler.rap_win_con_paths.items():

0 commit comments

Comments
 (0)