Add Bomb Shop to paths output if Pyramid Fairy Entrance is needed

Tweak internal handling of paths
This commit is contained in:
Kevin Cathcart
2018-01-06 16:25:14 -05:00
parent a86573d529
commit a155d455bb
2 changed files with 15 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
import copy
import logging
import json
from itertools import zip_longest
from collections import OrderedDict
@@ -769,11 +768,9 @@ class Spoiler(object):
outfile.write('\n\nPaths:\n\n')
path_listings = []
for location, paths in self.paths.items():
for location, path in self.paths.items():
path_lines = []
pathsiter = iter(paths)
pathpairs = zip_longest(pathsiter, pathsiter)
for region, exit in pathpairs:
for region, exit in path:
if exit is not None:
path_lines.append("{} -> {}".format(region, exit))
else: