benilla-re systems structs docs

ActionSlotHasRange

function · ui · primitive

Address
0x4e5810 · 164 bytes, up to 0x4e58b3
Signature
bool __fastcall (uint32_t slot)
Meaning
Answers whether a slot's spell has a nonzero minimum or maximum range
Confidence
verified, proof one
Finding
ui/actionbar#range
Test
ui::glue_4dc_4e5810_near_zero_pair

Finding: Range in ui: action bars

IsActionInRange (0x4e7550) pushes nil, 0 or 1 from 0x4e56f0. Nil: no player, a bad slot, a pet-book spell, a missing record, or an unlisted target type. 0: 0x6e4440 fails (spell/checks#range-pre-check, no report). 1: the first effect's implicit target is 6, 21, 23, 25, 26, 35, 45, 57 or 61 and a target is selected. ActionHasRange (0x4e75d0) is true when the spell's |min| or |max| range from 0x6e3480 is not below 2^-22 (0x8029d4, fcomp then test ah,5; jp at 0x4e5885), so a range equal to it, or a NaN, counts.

The derivation is in the doc.

Callers 1

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.