Skip to content

Commit

Permalink
fix dungeon end locations not appearing in tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
gymnast86 committed Jul 29, 2024
1 parent e1525e6 commit 0c895aa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions logic/area.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)

0 comments on commit 0c895aa

Please sign in to comment.