InventoryChange
Defined in: server/api.d.ts:2298
What one operation did to one inventory.
Properties
Section titled “Properties”items:
object[]
Defined in: server/api.d.ts:2312
Only the rows that changed. before: null is a new row and after: null an emptied one.
after:
InventoryRow|null
before
Section titled “before”before:
InventoryRow|null
id:
string
reason
Section titled “reason”reason:
string
Defined in: server/api.d.ts:2307
add, remove, properties, set, transfer, wear when the player’s game wore an item down in use, use for food, potions and ointments, shot for a fired round, pickpocket, trade for a vendor deal, repair for a repair kit, sharpen for a grindstone, drop for player.dropInventory, loot, npcDeposit, harvest, outfit, or the ground, stash and gathering reasons. equipment reports an equipment or quickslot change: items is empty, the item revision does not advance, and Inventory.get returns the new snapshot.
revision
Section titled “revision”revision:
number
Defined in: server/api.d.ts:2302
The revision the operation produced.