Skip to content

Commit

Permalink
Fix location hints pointing to traps
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Feb 18, 2024
1 parent 2334b3e commit 25bac82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions randomizers/hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,12 @@ def get_legal_location_hints(self, progress_locations, hinted_barren_zones, prev
# Remove locations for items that were previously hinted.
hintable_locations = [loc for loc in hintable_locations if loc not in previously_hinted_locations]

# Don't hint at the existence of traps.
hintable_locations = [
loc for loc in hintable_locations
if not self.logic.done_item_locations[loc].endswith(" Trap Chest")
]

standard_hintable_locations = self.filter_out_hinted_barren_locations(hintable_locations, hinted_barren_zones)

return remote_hintable_locations, standard_hintable_locations
Expand Down

0 comments on commit 25bac82

Please sign in to comment.