ApplySpellModifierSoftFloat
function · spell · orchestration
- Address
0x6e6c30· 99 bytes, up to0x6e6c92- Signature
void __fastcall (const void *spell, float *value, uint32_t op)- Meaning
- Applies a spell's summed modifiers for an op to a float through the software float routines
- Confidence
- verified, proof one
- Finding
- spell/records#modifier-appliers
Finding: Modifier appliers in spell: records
Three appliers take (spell, &value, op) and change the value only when 0x6e6b30 returns 1.
The integer one sets value = (value + flat)·pct / 100, 32-bit wrapping, the division signed and
truncating. The float one sets value = (float)(((double)flat + value)·pct·0.01f): each step at
53-bit precision in that order, 0.01f being 0x3c23d70a, one rounding to single at the store.
The software one sets value = ((value ⊕ F(flat)) ⊗ F(pct)) ⊗ 0.01f in the arithmetic of
Software floats, where F is its int-to-float.
The derivation is in the doc.
Callers 1
- GetSpellEffectPoints spell
Callees 4
- GetSpellModifiers spell
- SoftFloatMul cmath
- SoftFloatAdd cmath
- SoftFloatFromInt cmath
Calls and jumps by a bare address, from tables/calls.tsv.