benilla-re systems structs docs

TalentMasksAccept

function · ui · primitive

Address
0x4f2e50 · 66 bytes, up to 0x4f2e91
Signature
uint32_t __fastcall (uint32_t race, uint32_t class, uint32_t raceMask, uint32_t classMask)
Meaning
Says whether a race mask and a class mask accept the player's race and class, 0 accepting all
Confidence
verified, proof one
Finding
ui/talents#talent-tabs

Finding: Talent tabs in ui: talents

The tab list is built once, on the first call, from TalentTab.dbc in file order: a row is kept when both its race mask (+0x2c) and class mask (+0x30) accept the player's race and class (0 accepts all, else bit race-1 or class-1 of the mask). The order field of the row is not read. A tab record is 16 bytes: the row id, the points spent (+4), the talent count (+8) and a pointer to the first Talent.dbc row of that tab (+0xc). GetNumTalentTabs() returns the count. GetTalentTabInfo(tab) returns four values: the localized name, the icon (nil when the row has none), the points spent and the background string; an invalid tab returns nil, nil, 0, nil.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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