benilla-re systems structs docs

s_skillCostsDataStore

global · dbc

Address
0xc0d960 · 20 bytes, up to 0xc0d973
Type
uint32_t[5]
Meaning
Holds the SkillCostsData.dbc store: records, count, id map, max id and loaded flag
Confidence
verified, proof one
Finding
spell/tables#startup-build-of-the-indexes

Finding: Startup build of the indexes in spell: tables

SpellTableInitialize runs once, called from ClientInitializeGame (0x401570). It walks SkillRaceClassInfo.dbc in row order and adds one race-class node per run of consecutive rows with equal skill line (+0x04): the node's hash is the skill line, +0x18 the run's first row and +0x1c its length. It does the same over SkillCostsData.dbc, keyed by +0x04, into the cost index. Then, for every CharBaseInfo.dbc row whose race byte (+0x00) is an id ChrRaces.dbc holds, it offers every SkillLineAbility.dbc row to 0x6ddbe0 with that race and the row's class byte (+0x01). A key that reappears after another key starts a second node.

The derivation is in the doc.