From ae5e1cc5114d03663c233b68a1d98d280474aff1 Mon Sep 17 00:00:00 2001 From: codemann8 Date: Wed, 24 Nov 2021 03:33:10 -0600 Subject: [PATCH] Omit displaying identical paths in spoiler log --- BaseClasses.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BaseClasses.py b/BaseClasses.py index dc447748..7d994704 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -3101,7 +3101,13 @@ class Spoiler(object): # locations: Change up location names; in the instance of a location with multiple sections, it'll try to translate the room name outfile.write('\n\nPaths:\n\n') path_listings = [] + displayed_regions = [] for location, path in sorted(self.paths.items()): + if self.world.players == 1: + region = self.world.get_location(location, 1).parent_region + if region.name in displayed_regions: + continue + displayed_regions.append(region.name) if location not in self.suppress_spoiler_locations: path_lines = [] for region, exit in path: