Skip to content

Commit

Permalink
Merge pull request #415 from gymnast86/tracker-dungeon-rewards
Browse files Browse the repository at this point in the history
Fix dungeon rewards not appearing on the tracker
  • Loading branch information
gymnast86 authored Jul 29, 2024
2 parents c2adea8 + 0c895aa commit 8974aff
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 8974aff

Please sign in to comment.