s_effectPointsHalf
global · spell
- Address
0x86f94c· 4 bytes, up to0x86f94f- Type
float- Meaning
- Holds 0.5, the bias of the effect amount's integer conversion; no instruction writes it
- Confidence
- verified, proof one
- Finding
- spell/records#effect-amount-as-integers
Finding: Effect amount as integers in spell: records
0x6e3760 calls GetEffectPoints with its own arguments and converts each bound x to
rint(2x − 0.5) >> 1 when x ≥ 0 and rint(2x + 0.5) >> 1 otherwise, an arithmetic shift, at
round-to-nearest-even. That is the floor for x ≥ 0, and nearest with ties toward zero for
x < 0. A NaN takes the second form and gives 0xc0000000; so does a value past the int32_t
range.
The derivation is in the doc.