benilla-re systems structs docs

s_knownSpellBitCount

global · ui

Address
0xb710f0 · 4 bytes, up to 0xb710f3
Type
uint32_t
Meaning
Holds the number of spell ids the known-spell bitset covers: the Spell.dbc id bound plus one, 0 before sizing
Confidence
verified, proof one
Finding
ui/reactivespells#resetting-the-book

Finding: Resetting the book in ui: reactive spells and the book reset

0x4b23a0 empties the player's book and its lists, and signals nothing. It clears the known-spell bitset in place when 0xb710f0 is nonzero, the 1024 book slots and the book count, frees the tab nodes and their array and zeroes the tab list and the tab count, zeroes the four effect-spell globals, clears the indexed spell array in place, then frees and zeroes the opener list, the form list, the dispel types and the reactive list. The pet book and the spell-history record that AddSpellToBook adds for AttributesEx2 & 0x8100 (0x6e2c60, 0x4b27ef) stay. InitSpellBook calls it at both of its exits and CGPlayer_C::OnActiveArrival calls it before it learns the player's initial spells; no other code does.

The derivation is in the doc.