benilla-re systems structs docs

SpellTableInitialize

function · spell · orchestration

Address
0x6dda50 · 392 bytes, up to 0x6ddbd7
Signature
void __cdecl (void)
Meaning
Builds the race-class, skill-cost and ability indexes from the skill DBCs at startup
Confidence
verified, proof one
Name from
the community database (idb)
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.

Callers 1

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.