# Epoch & Equinox achievements — Oracle of Ages
#
# Format: see achievements/README.md. Every address is from the oracles
# disassembly (include/wram.s, Ages column). Conditions on one
# achievement AND together.

[first-essence]
title = Echo of the Beginning
desc = Claim your first Essence of Time
when = bits c6bf >= 1

[half-essences]
title = Turning the Hourglass
desc = Hold four Essences of Time
when = bits c6bf >= 4

[all-essences]
title = Master of Ages
desc = Hold all eight Essences of Time
when = bits c6bf >= 8

[noble-sword]
title = A Keener Edge
desc = Upgrade your sword
when = byte c6b2 >= 2

[ten-hearts]
title = Stout Heart
desc = Reach ten heart containers
when = byte c6ab >= 40

[full-hearts]
title = Unbreakable
desc = Reach fourteen heart containers
when = byte c6ab >= 56

[first-ring]
title = Ring Bearer
desc = Appraise your first ring
when = bitset c616 8 >= 1

[ten-rings]
title = Jeweler's Friend
desc = Collect ten rings
when = bitset c616 8 >= 10

[slayer-100]
title = Centurion
desc = Defeat one hundred enemies
when = word c620 >= 100

[slayer-1000]
title = The Slayer
desc = Defeat one thousand enemies — Vasu would be proud
when = word c620 >= 1000

[rupee-fortune]
title = Fortune of Labrynna
desc = Collect ten thousand rupees over your adventure
when = word c627 >= 10000

[flippers]
title = Swimmer
desc = Learn to swim
when = flag c69f 6

[mermaid-suit]
title = Of the Sea
desc = Don the Mermaid Suit
when = flag c6a3 2

[harp]
title = Strings of Time
desc = Receive the Harp of Ages
when = flag c69c 1

[survivor]
title = Still Standing
desc = Hold four essences without ever having fallen
when = bits c6bf >= 4
when = bcd c61e == 0

# The linked-game arc. wIsLinkedGame ($cc01) is live during play; the
# global flags ($c6d0 + GLOBALFLAG/8, bit GLOBALFLAG%8) are on the file,
# so end-of-game flags unlock the next time that file is played.

[linked-quest]
title = Two Worlds Entwined
desc = Begin a linked quest with a secret from Holodrum
# wFileIsLinkedGame, not the wIsLinkedGame copy at $cc01: this one lives
# in the save block, so it is right from the first frame of a load and can
# be checked against a save file rather than only in play.
when = byte c612 >= 1

[finished]
title = Hero of Labrynna
desc = See the credits roll
when = flag c6d2 4

[ganon-ending]
title = The Darkness Behind It All
desc = Face what waited behind both oracles — the true ending
when = flag c6d0 2

[hero-file]
title = The Hero's Path
desc = Begin a game with the Hero's Secret
when = byte c613 >= 1

[maku-saved]
title = Rooted in Time
desc = Save the Maku Tree
when = flag c6d2 2

# Secrets and deep hunts. The ten linked-secret DONE flags live in the
# "both games" global-flag range ($5a-$63); each one means that NPC's
# exchange was carried through to the end. Ring lore: wRingsObtained
# ($c616) is the 64-ring bitset, wNumRingsAppraised ($c6ce) is Vasu's
# lifetime count, GLOBALFLAG_GOT_VICTORY_RING is bit $06.

[ten-secrets]
title = Keeper of Ten Secrets
desc = Carry every linked secret of Labrynna through to its reward
when = flag c6db 2
when = flag c6db 3
when = flag c6db 4
when = flag c6db 5
when = flag c6db 6
when = flag c6db 7
when = flag c6dc 0
when = flag c6dc 1
when = flag c6dc 2
when = flag c6dc 3

[victory-ring]
title = Spoils of the Final Battle
desc = Receive the Victory Ring for felling Ganon
when = flag c6d0 6

[all-rings]
title = The Sixty-Four
desc = Complete the entire ring collection
when = bitset c616 8 >= 64

[vasu-100]
title = Vasu's Century
desc = Have one hundred rings appraised
when = byte c6ce >= 100
