benilla-re systems structs docs

CountBookSpellsBeforeTab

function · ui · primitive

Address
0x4b2580 · 46 bytes, up to 0x4b25ad
Signature
uint32_t __fastcall (uint32_t tab)
Meaning
Sums the spell counts of the tabs before a tab, 0 for tab 0 or a tab past the count
Confidence
verified, proof one
Finding
ui/spellbook#tabs

Finding: Tabs in ui: the spell book

A spell's tab key is the +4 of the player's SkillRaceClassInfo row (0x6ddf90) for the skill line of the spell's ability (0x60c7c0); it is 0 when any step fails or the row's byte at +0x10 is negative. 0x4b24f0(id) returns the position of that key in the tab list, or the tab count when absent. 0x4b2580(tab) counts the book spells of the tabs before it. GetNumSpellTabs (0x4b3cb0) returns the tab count.

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.