From 13da396932639bfe0649455a146caa0cd5fd8b8a Mon Sep 17 00:00:00 2001 From: The Dax Date: Fri, 4 Jul 2025 12:51:37 -0400 Subject: [PATCH] Document two more item operations: move (to an empty slot) and exchange (when swapping slots with another item) --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index eb49eb3..832bd49 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -78,3 +78,9 @@ pub const COMPLETED_QUEST_BITMASK_SIZE: usize = 691; /// The operation opcode/type when discarding an item from the inventory. pub const INVENTORY_ACTION_DISCARD: u8 = 145; + +// The operation opcode/type when moving an item to an emtpy slot in the inventory. +pub const INVENTORY_ACTION_MOVE: u8 = 146; + +// The operation opcode/type when moving an item to a slot occupied by another in the inventory. +pub const INVENTORY_ACTION_EXCHANGE: u8 = 147;