benilla-re systems structs docs

RecomputeInventoryAlerts

function · ui · primitive

Address
0x4c7ee0 · 433 bytes, up to 0x4c8090
Signature
void __stdcall ()
Meaning
Recomputes the 12 inventory alert statuses and signals UPDATE_INVENTORY_ALERTS
Confidence
verified, proof one
Finding
ui/inventory#equipment-alert-rules

Finding: Equipment alert rules in ui: inventory queries and alerts

For an equipped item the status is 4 when bit 0x10 of ITEM_FIELD_FLAGS (descriptor +0x3c) is set. Otherwise an item with bit 0x8 clear and MAXDURABILITY (+0xa4) not zero is 4 at DURABILITY (+0xa0) of 0 and 3 at 1 to 5; the bound is the absolute 5, not a fraction. Any other equipped item goes to the enchantment test: with bit 0x2000 of the item record's virtual answer clear and the temporary enchantment id (+0x4c) set, the status is 1, and 2 when that enchantment has 30000 ms or less left. Ammunition is 3 when the active player's PLAYER_AMMO_ID is set and its count (as in the item count) is 20 or less, else 0.

The derivation is in the doc.

Callers 7

Callees 7

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