benilla-re systems structs docs

AddSkillLineRec

function · spell · primitive

Address
0x6ddbe0 · 483 bytes, up to 0x6dddc2
Signature
uint8_t __fastcall (uint32_t race, uint32_t cls, const void *ability)
Meaning
Adds an ability node for a race, class and SkillLineAbility row both admit; returns 1 when added
Confidence
verified, proof one
Finding
spell/tables#spell-ability-index-by-race

Finding: Spell ability index by race in spell: tables

0x6ddbe0 adds an ability node for a race, a class and a SkillLineAbility.dbc row when 0x6ddf90 finds a race-class row for the row's skill line (+0x04) and 0x6dddd0 admits the race and class against the row's race mask +0x0c and class mask +0x10, complemented when +0x14 and +0x18 are nonzero. The node holds the spell (+0x08) as hash, the race at +0x14, the class at +0x15, the spell's low 16 bits at +0x16 and the row at +0x18. 0x6de040 returns the row of the first node in the spell's slot matching spell, race, class and low word, or null. A spell with two admitted rows for one race and class resolves to the later row in file order.

The derivation is in the doc.

Callers 1

Callees 7

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