Virazek / Spyro2-Decomp

Disassembly of Spyro 2
MIT License
1 stars 0 forks source link

Create custom Moneybags/other unlock cost check function #8

Open Virazek opened 4 months ago

Virazek commented 4 months ago

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.