benilla-re systems structs docs

0xb71130

global · ui

Address
0xb71130 · 4 bytes, up to 0xb71133
Type
uint32_t
Meaning
Holds a dword its object file's code reads and writes; not read here
Confidence
inferred
Finding
ui/spellbook#adding-a-spell

Finding: Adding a spell in ui: the spell book

0x4b25b0(id, live, old) adds a learned spell to the book. It rejects an id outside the Spell table and sets the id's bit in the known set. It records a few spells by their first effect (effects 83, 84, 95 and 116 in four globals, 39 into a table by misc value, 33 into a list) and updates three more lists (dispel types 0xb71110, ui/reactivespells, ui/petbar#form-list). Past that, a spell with Attributes & 0x80 goes no further. A spell with Attributes & 0x20 (a trade skill spell) prints its learn line when live is set and goes no further. Any other prints its line when live is set, and enters the book unless its CastUI field (+0xc) is above 0.

The derivation is in the doc.