Skip to content

Commit

Permalink
Altar in child now give information about Song of Time and Ocarina of…
Browse files Browse the repository at this point in the history
… Time items
  • Loading branch information
RawZ06 committed Dec 11, 2024
1 parent b499369 commit 90fdd79
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def add_hint(spoiler: Spoiler, world: World, groups: list[list[int]], gossip_tex
for group in skipped_groups:
groups.remove(group)


# early failure if not enough
if len(groups) < int(count):
return False
Expand Down Expand Up @@ -1662,6 +1663,9 @@ def build_altar_hints(world: World, messages: list[Message], include_rewards: bo
child_text += get_hint('Spiritual Stone Text Start', world.settings.clearer_hints).text + '\x04'
for (reward, color) in boss_rewards_spiritual_stones:
child_text += build_boss_string(reward, color, world)
child_text += build_oot_sot_hints(world)
child_text += '\x04'

child_text += get_hint('Child Altar Text End', world.settings.clearer_hints).text
child_text += '\x0B'
update_message_by_id(messages, 0x707A, get_raw_text(child_text), 0x20)
Expand Down Expand Up @@ -1704,6 +1708,16 @@ def build_boss_string(reward: str, color: str, world: World) -> str:
text = GossipText(f"\x08\x13{item_icon}One {location_text}...", [color], prefix='')
return str(text) + '\x04'

def build_oot_sot_hints(world: World) -> str:
sot_location = world.get_location('Song from Ocarina of Time')
oot_location = world.get_location('HF Ocarina of Time Item')

sot_item = "#" + get_hint(get_item_generic_name(sot_location.item), world.settings.clearer_hints).text + '# '
oot_item = "#" + get_hint(get_item_generic_name(oot_location.item), world.settings.clearer_hints).text + '# '

string = f"It is also written that reuniting #The Spiritual Stones# leads to " + sot_item + " and " + oot_item + ''

return str(GossipText(string, ['Yellow', 'Blue', 'Blue'], prefix=''))

def build_bridge_reqs_string(world: World) -> str:
if world.settings.bridge == 'open':
Expand Down

0 comments on commit 90fdd79

Please sign in to comment.