Skip to content

Commit

Permalink
Fix savage hints not using cryptic text
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Dec 9, 2023
1 parent 7375ab5 commit c13e0be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions randomizers/hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class HintType(Enum):
BARREN = 1
ITEM = 2
LOCATION = 3
FIXED_LOCATION = 4


class Hint:
Expand Down Expand Up @@ -44,7 +45,7 @@ def formatted_reward(self, is_cryptic: bool):
match self.type:
case HintType.PATH | HintType.BARREN:
return self.reward
case HintType.ITEM:
case HintType.ITEM | HintType.FIXED_LOCATION:
if is_cryptic:
return HintsRandomizer.cryptic_item_hints[HintsRandomizer.get_hint_item_name(self.reward)]
else:
Expand Down Expand Up @@ -894,7 +895,7 @@ def generate_octo_fairy_hint(self):
def generate_savage_labyrinth_hint(self, location_name):
# Get an item hint for one of the two checks in Savage Labyrinth.
item_name = self.logic.done_item_locations[location_name]
hint = Hint(HintType.LOCATION, location_name, item_name)
hint = Hint(HintType.FIXED_LOCATION, location_name, item_name)
return hint

def generate_hints(self):
Expand Down

0 comments on commit c13e0be

Please sign in to comment.