Skip to content

Commit 90fdd79

Browse files
committed
Altar in child now give information about Song of Time and Ocarina of Time items
1 parent b499369 commit 90fdd79

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Hints.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def add_hint(spoiler: Spoiler, world: World, groups: list[list[int]], gossip_tex
204204
for group in skipped_groups:
205205
groups.remove(group)
206206

207+
207208
# early failure if not enough
208209
if len(groups) < int(count):
209210
return False
@@ -1662,6 +1663,9 @@ def build_altar_hints(world: World, messages: list[Message], include_rewards: bo
16621663
child_text += get_hint('Spiritual Stone Text Start', world.settings.clearer_hints).text + '\x04'
16631664
for (reward, color) in boss_rewards_spiritual_stones:
16641665
child_text += build_boss_string(reward, color, world)
1666+
child_text += build_oot_sot_hints(world)
1667+
child_text += '\x04'
1668+
16651669
child_text += get_hint('Child Altar Text End', world.settings.clearer_hints).text
16661670
child_text += '\x0B'
16671671
update_message_by_id(messages, 0x707A, get_raw_text(child_text), 0x20)
@@ -1704,6 +1708,16 @@ def build_boss_string(reward: str, color: str, world: World) -> str:
17041708
text = GossipText(f"\x08\x13{item_icon}One {location_text}...", [color], prefix='')
17051709
return str(text) + '\x04'
17061710

1711+
def build_oot_sot_hints(world: World) -> str:
1712+
sot_location = world.get_location('Song from Ocarina of Time')
1713+
oot_location = world.get_location('HF Ocarina of Time Item')
1714+
1715+
sot_item = "#" + get_hint(get_item_generic_name(sot_location.item), world.settings.clearer_hints).text + '# '
1716+
oot_item = "#" + get_hint(get_item_generic_name(oot_location.item), world.settings.clearer_hints).text + '# '
1717+
1718+
string = f"It is also written that reuniting #The Spiritual Stones# leads to " + sot_item + " and " + oot_item + ''
1719+
1720+
return str(GossipText(string, ['Yellow', 'Blue', 'Blue'], prefix=''))
17071721

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

0 commit comments

Comments
 (0)