OnItemRecordForCooldown
function · spell · primitive
- Address
0x6e8830· 535 bytes, up to0x6e8a46- Signature
void __fastcall (uint32_t itemId, uint32_t unused, uint32_t arg, uint32_t found)- Meaning
- Inserts a pending item cooldown once the item record is cached, then frees its node
- 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 0
None by a direct call or jump.
Callees 4
- FireCooldownEvents ui
- RaiseBagUpdateCooldown ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- SpellHistory::AddRecord spell
Calls and jumps by a bare address, from tables/calls.tsv.