benilla-re systems structs docs

s_movingRangeBonus

global · spell

Address
0x811914 · 4 bytes, up to 0x811917
Type
float
Meaning
Holds 8/3 (0x402aaaab), the yards a maximum range gains when caster and target both have movement flags 0x200d
Confidence
verified, proof one
Finding
spell/records#range-bonuses-and-modifier

Finding: Range bonuses and modifier in spell: records

After either arm, with a unit in esi: when the movement flags at [unit+0x118]+0x40 of both the caster and that unit have a bit of 0x200d, 0x5fc350 returns 0 for both, and the row has flag bit 0 or the unit's type has bit 4, max += 8/3. Then, when +0x18 has bit 1 and the caster's type has bit 4, and the caster has more than 17 inventory slots whose slot 17 holds a cached item, max = (float)((W·0.01f)·max) with W the item record's float at +0x118. Last, the float applier with op 5 on max. A missing range row skips to the item step with both still 0.

The derivation is in the doc.