benilla-re systems structs docs

RebuildBuffCache

function · ui · primitive

Address
0x4e4170 · 539 bytes, up to 0x4e438a
Meaning
Removes stale records, appends new auras and signals PLAYER_AURAS_CHANGED
Confidence
verified, proof one
Finding
ui/auradisplay#rebuilding-the-cache

Finding: Rebuilding the cache in ui: the buff display functions

0x4e4170 runs when the aura fields change. First it walks the records from the front and ends at the first one with no spell. A record whose slot holds another spell id, or whose flag nibble has no bit of 0xe, is removed: the later records shift down one place and the last record is emptied. Then it walks slots 0 to 47 and, for each with a spell and a nibble bit of 0xe, appends a record at the first empty place, or refreshes the stack count of the record that already has that spell and slot. It then signals PLAYER_AURAS_CHANGED (event 192).

The derivation is in the doc.

Callers 2

Callees 4

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