benilla-re systems structs docs

OnCorpseFlagsChanged

function · objectlayer · orchestration

Address
0x5d5fa0 · 54 bytes, up to 0x5d5fd5
Signature
int __stdcall (uint32_t lo, uint32_t hi, uint32_t *old, void *arg)
Meaning
Rebuilds the corpse whose flags changed
Confidence
verified, proof one
Finding
objectlayer/corpses#field-watchers

Finding: Field watchers in objectlayer: corpses

Two watchers are put on every corpse's flags at start-up. A change of the flags (offset 0x74) rebuilds the body; a change of the dynamic flags (offset 0x78) adds or removes the loot sparkle. Bit 0 of the flags marks a skeleton, bits 3 and 4 hide the helm and the cloak, bit 5 admits the spell click below; bit 0 of the dynamic flags marks loot.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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