benilla-re systems structs docs

s_effectAuraOpIndex

global · spell

Address
0x6e3ad0 · 174 bytes, up to 0x6e3b7d
Type
uint8_t[174]
Meaning
Maps auras 10 to 183 to their case in the effect amount's aura switch
Confidence
verified, proof one
Finding
spell/records#effect-amount-modifiers-and-rounding

Finding: Effect amount modifiers and rounding in spell: records

Unless unmodified, the software applier runs on min, then max, for op 8; then, for an effect 0x6e3b80 returns 1 for, op 22 when the aura is 3, else op 0; then the aura's op: 2 for auras 10, 103, 183; 12 for 31, 32, 33, 58, 129, 130, 171, 172; 24 for 65; 3 for 99; 23 for 138. Then each of min and max is rounded to 1/128: a nonzero exponent gains 7, r = floor(x ⊕ 0.5), and the result is r with 7 taken from its exponent, or +0 when that takes the exponent below 1. When integral, min = floor(min) and max = ceil(max).

The derivation is in the doc.