benilla-re systems structs docs

BuildPickFlags

function · ui · primitive

Address
0x481050 · 318 bytes, up to 0x48118d
Meaning
Builds the pick flag word from the mover or from the pending spell's target word
Confidence
verified, proof one
Finding
ui/worldpick#the-pick-flags

Finding: The pick flags in ui: the world pick

0x481050 builds the flag word. Without a pending spell it is 0 for a missing active mover, 1 when the mover can auto-interact and no cursor payload is held, and 3 when its movement word +0x40 also has bit 0x10000000 set and bit 0x200000 clear; with an active player, 0x5c is ORed in. With a pending spell the word comes from the spell's target word alone: 3 for a location, 4 for a game object, 0x18 for a unit, then for a unit spell 0x20 (self), 0x10000 (group), 0x20000 (assist), 0x40000 (enemy), and 0x200040 or 0x100000 (dead units or living ones). Corpse spells add 0x20040 and 0x40040.

The derivation is in the doc.

Callers 1

Callees 14

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