benilla-re systems structs docs

PendItemCooldown

function · spell · primitive

Address
0x6e8660 · 456 bytes, up to 0x6e8827
Signature
void __fastcall (uint32_t itemId, uint32_t spellId, uint32_t time, uint32_t onHold)
Meaning
Stores an item cooldown in the pending hash under the item id until the item record arrives
Confidence
verified, proof one
Finding
spell/go#pending-item-cooldowns

Finding: Pending item cooldowns in spell: go

0x6e8660 (item id, spell id, time, on hold) finds or adds the ITEMCOOLDOWNHASHNODE keyed by the item id in the hash 0xceca60 and stores the spell at +0x18, the time at +0x1c and the flag at +0x20; a new node also gets the key, and at +0x14 the flag argument's high byte, 0 from the go. 0x6e8830, the item cache's callback, takes its item's node; with the record now cached and the spell among its five, it inserts as the go's item leg does, with the pended time and flag, unless recovery and category recovery are both 0. It flushes and frees the node. The category values need the callback's first stack argument, 1 from the go, nonzero.

The derivation is in the doc.

Callers 1

Callees 6

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