Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dungeon rewards not appearing on the tracker #415

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"
)