benilla-re systems structs docs

ExpandSpellText

function · ui · primitive

Address
0x5075f0 · 279 bytes, up to 0x507706
Signature
uint32_t __fastcall (void *arg1, char *out, uint32_t size, uint32_t pet, uint32_t level, uint32_t aura, uint32_t stack, uint32_t unmodified)
Meaning
Copies a spell description with every dollar token expanded and returns 1 when none failed
Confidence
verified, proof one
Finding
ui/spelltokens#the-expander

Finding: The expander in ui: Spell description tokens

0x5075f0(spell record; buffer, size, pet, level, aura, stack, unmodified) clears the buffer and copies the text up to each $, expanding every token. The text is the aura description (+0x24c) when aura is set and it is nonempty, else the description (+0x228). A level of 0 means the level the player has for the spell: the player's value in the spell's skill line over five (spell/records#caster-level). A token the dispatcher cannot expand leaves a literal $ in the output and the text after the token is copied as it stands. The return value is 1 when every token was expanded and 0 otherwise.

callerpetlevelaurastackunmodified
spell tooltip, item spell and set bonus linesthe pet flag, 0 for items0010
buff tooltip0the buff's1the stack, or 11

The derivation is in the doc.

Callers 6

Callees 5

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