From 0c895aa64e18db922ac1aae71277047338825f3a Mon Sep 17 00:00:00 2001 From: gymnast86 Date: Mon, 29 Jul 2024 03:27:03 -0700 Subject: [PATCH] fix dungeon end locations not appearing in tracker --- logic/area.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/logic/area.py b/logic/area.py index fe60781a..86aaaa41 100644 --- a/logic/area.py +++ b/logic/area.py @@ -246,7 +246,9 @@ def assign_hint_regions_and_dungeon_locations(starting_area: Area): if region in dungeon_regions: locations = [la.location for la in area.locations] dungeon = area.world.get_dungeon(region) - dungeon.locations.extend(locations) - logging.getLogger("").debug( - f"{[l.name for l in locations]} have been assigned to dungeon {region}" - ) + for loc in locations: + if loc not in dungeon.locations: + dungeon.locations.append(loc) + logging.getLogger("").debug( + f"{loc} has been assigned to dungeon {region}" + )