The normal unlock state array and cost table starts at 0x80064670, starting with the Crystal Glacier bridge. We need some way to generalize the requirements from just Gems to anything; Gems, Orbs, Talismans, Talisman locations, Orb locations, 100% Gem locations, Skill Points, boss kills, etc. A function like this could end up being pretty big, so it might not be a bad idea to have the client handle this and write back to the game when Spyro has enough for each unlock, although it's probably doable in the space we have provided.
The normal unlock state array and cost table starts at 0x80064670, starting with the Crystal Glacier bridge. We need some way to generalize the requirements from just Gems to anything; Gems, Orbs, Talismans, Talisman locations, Orb locations, 100% Gem locations, Skill Points, boss kills, etc. A function like this could end up being pretty big, so it might not be a bad idea to have the client handle this and write back to the game when Spyro has enough for each unlock, although it's probably doable in the space we have provided.