Octo fairy: Only call get_item_hint once
@@ -754,13 +754,13 @@ class Hints:
# Note that this hint is completely independant of all other hints.
progress_locations, non_progress_locations = self.logic.get_progress_and_non_progress_locations()
hintable_locations = self.get_legal_item_hints(progress_locations, [], [])
+ if "Two-Eye Reef - Big Octo Great Fairy" in hintable_locations:
+ # We don't want this Great Fairy to hint at her own item.
+ hintable_locations.remove("Two-Eye Reef - Big Octo Great Fairy")
if len(hintable_locations) == 0:
raise Exception("No valid items to give hints for")
item_hint, location_name = self.get_item_hint(hintable_locations)
- # We don't want this Great Fairy to hint at her own item.
- if location_name == "Two-Eye Reef - Big Octo Great Fairy":
- item_hint, location_name = self.get_item_hint(hintable_locations)
return item_hint
