benilla-re systems structs docs

ExpandSpellToken

function · ui · primitive

Address
0x507710 · 2511 bytes, up to 0x5080de
Signature
uint32_t __fastcall (void *arg1, void *spell, uint32_t level, uint32_t stack, uint32_t pet, uint32_t unmodified, uint32_t arg7)
Meaning
Expands the token at the text cursor into the buffer and returns 0 when it cannot
Confidence
verified, proof one
Finding
ui/spelltokens#the-token-syntax
Test
ui::glue4fd_507710_ceil_frac, ui::glue4fd_507710_f_case_quantize, ui::glue4fd_507710_f_case_scale, ui::glue4fd_507710_mos_prescale, ui::glue4fd_507710_mos_round_half, ui::glue4fd_507710_mos_snap, ui::glue4fd_507710_ot_per_tick, ui::glue4fd_507710_recip_scale

Finding: The token syntax in ui: Spell description tokens

Before the letter a token may carry a scale: $/N; divides the amounts it prints by N, $*N; multiplies them. It may carry the id of another spell: $1234s1 reads spell 1234, with the level cut to that spell's maximum level when it has one. One digit after the letter, 1 to 9, picks the effect (1 to 3 give effects 0 to 2, 4 to 9 effect 0), and without a digit it is effect 0. A bad other-spell id and a letter that is not in the tables below fail; so do J K W Y j k w y [ \ ] ^ _ and the backquote.

The derivation is in the doc.

Callers 1

Callees 21

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