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

[first-essence]
title = First Sprout
desc = Claim your first Essence of Nature
when = bits c6bb >= 1

[half-essences]
title = Half the Harvest
desc = Hold four Essences of Nature
when = bits c6bb >= 4

[all-essences]
title = Master of Seasons
desc = Hold all eight Essences of Nature
when = bits c6bb >= 8

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

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

[full-hearts]
title = Unbreakable
desc = Reach fourteen heart containers
when = byte c6a3 >= 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 Holodrum
desc = Collect ten thousand rupees over your adventure
when = word c627 >= 10000

[rod-of-seasons]
title = Season's Wand
desc = Take up the Rod of Seasons
when = flag c692 7

[all-seasons]
title = The Year Entire
desc = Command all four seasons
when = bits c6b0 >= 4

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

[magnet-gloves]
title = Opposites Attract
desc = Obtain the Magnetic Gloves
when = flag c693 0

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

# The linked-game arc. wIsLinkedGame ($cc01) is live during play; the
# global flags ($c6ca + 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 Labrynna
# 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 Holodrum
desc = See the credits roll
when = flag c6cf 0

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

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

# Secrets and deep hunts. The ten linked-secret DONE flags live in the
# "both games" global-flag range ($6e-$77); each one means that NPC's
# exchange was carried through to the end. wKilledGoldenEnemies ($c6c9)
# tracks the four hidden golden beasts, one bit each.
# (No Vasu's-Century here: the Seasons address for the appraisal counter
# is not named in the disassembly, and a guessed address is how phantom
# unlocks happen.)

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

[golden-beasts]
title = The Golden Ones
desc = Hunt down all four golden beasts
when = bits c6c9 >= 4

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

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