benilla-re systems structs docs

CountInventoryCharges

function · objectlayer · orchestration

Address
0x622180 · 46 bytes, up to 0x6221ad
Meaning
Sums the absolute spell charges of the inventory's items of an entry
Confidence
verified, proof one
Finding
objectlayer/inventory#searching-the-inventory

Finding: Searching the inventory in objectlayer: inventory

Bag_C.cpp's searches over an inventory list:

functiondoes
0x622420the walk (spell/checks): bit 0x10 stops it entering bags; with 0x20 only items whose ITEM_FIELD_SPELL_CHARGES is nonzero, and bags, reach the callback
0x6223f0, 0x6222b0the walk with a callback, or by entry with the owner and slot out
0x622130, 0x622180the stack count, or the summed absolute charges, of an entry (−1 any)
0x622270, 0x6222e0, 0x6223a0the first item of an entry, of a class and subclass mask, of a bag family
0x6221e0clears bit 0 of +0x314 on items of an entry not in trade nor held at 0xb6ef90 or 0xb72608
0x6225d0the slot of an item object, or −1
0x6228a0the item in a slot, none for a bank slot while no banker is open
0x622910free slots: empty backpack slots plus those of each bag (item class 1) in 19 to 22
0x6229d0equipment durability: the sum of current over the sum of max, times 100, truncated

The derivation is in the doc.

Callers 2

Callees 1

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