ResetSpellBook
function · ui · orchestration
- Address
0x4b23a0· 333 bytes, up to0x4b24ec- Signature
void __cdecl (void)- Meaning
- Empties the book, the known-spell bits, the tabs and the opener, form, dispel and reactive lists, freeing their storage
- 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.
Callers 2
- InitSpellBook ui
- CGPlayer_C::OnActiveArrival objectlayer
Callees 3
- FreeDwordBuffer loadingscreen
- FreeField4b4b90 ui
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.