benilla-re systems structs docs

s_effectAuraOpCases

global · spell

Address
0x6e3ab8 · 24 bytes, up to 0x6e3acf
Type
void *[6]
Meaning
Holds the six cases of the effect amount's aura switch: ops 2, 12, 24, 3, 23 and the exit
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.