From cca0f8c0e52e9d834876ac2b0870f54fcb79e1a8 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 13 Jul 2025 08:14:35 -0400 Subject: [PATCH] Add remaining inventory container types Most of these will remain unimplemented, but we need the enum to be complete for Packet Analyzer to not trip over unknown ones. --- src/inventory/mod.rs | 2 ++ src/inventory/storage.rs | 65 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/src/inventory/mod.rs b/src/inventory/mod.rs index 6c07834..5e0ec1b 100644 --- a/src/inventory/mod.rs +++ b/src/inventory/mod.rs @@ -304,6 +304,7 @@ impl Inventory { ContainerType::ArmoryRing => &mut self.armoury_rings, ContainerType::ArmorySoulCrystal => &mut self.armoury_soul_crystal, ContainerType::ArmoryWeapon => &mut self.armoury_main_hand, + _ => todo!(), } } @@ -327,6 +328,7 @@ impl Inventory { ContainerType::ArmoryRing => &self.armoury_rings, ContainerType::ArmorySoulCrystal => &self.armoury_soul_crystal, ContainerType::ArmoryWeapon => &self.armoury_main_hand, + _ => todo!(), } } diff --git a/src/inventory/storage.rs b/src/inventory/storage.rs index 11a6da6..5bed319 100644 --- a/src/inventory/storage.rs +++ b/src/inventory/storage.rs @@ -17,6 +17,19 @@ pub enum ContainerType { Equipped = 1000, Currency = 2000, + Crystals = 2001, + MailEdit = 2002, + Mail = 2003, + KeyItems = 2004, + HandIn = 2005, + Unk1 = 2006, + BlockedItems = 2007, + Unk2 = 2008, + Examine = 2009, + Reclaim = 2010, + HousingExteriorAppearanceEdit = 2011, + HousingInteriorAppearanceEdit = 2012, + ReconstructionBuyback = 2013, ArmoryOffWeapon = 3200, ArmoryHead = 3201, @@ -30,6 +43,58 @@ pub enum ContainerType { ArmoryRing = 3300, ArmorySoulCrystal = 3400, ArmoryWeapon = 3500, + + SaddleBag1 = 4000, + SaddleBag2 = 4001, + PremiumSaddleBag1 = 4100, + PremiumSaddleBag2 = 4101, + + Cosmopouch1 = 5000, + Cosmopouch2 = 5001, + + Invalid = 9999, + + RetainerPage1 = 10000, + RetainerPage2 = 10001, + RetainerPage3 = 10002, + RetainerPage4 = 10003, + RetainerPage5 = 10004, + RetainerPage6 = 10005, + RetainerPage7 = 10006, + RetainerEquippedItems = 11000, + RetainerGil = 12000, + RetainerCrystals = 12001, + RetainerMarket = 12002, + + FreeCompanyPage1 = 20000, + FreeCompanyPage2 = 20001, + FreeCompanyPage3 = 20002, + FreeCompanyPage4 = 20003, + FreeCompanyPage5 = 20004, + FreeCompanyGil = 22000, + FreeCompanyCrystals = 22001, + + HousingExteriorAppearance = 25000, + HousingExteriorPlacedItems = 25001, + HousingInteriorAppearance = 25002, + HousingInteriorPlacedItems1 = 25003, + HousingInteriorPlacedItems2 = 25004, + HousingInteriorPlacedItems3 = 25005, + HousingInteriorPlacedItems4 = 25006, + HousingInteriorPlacedItems5 = 25007, + HousingInteriorPlacedItems6 = 25008, + HousingInteriorPlacedItems7 = 25009, + HousingInteriorPlacedItems8 = 25010, + + HousingExteriorStoreroom = 27000, + HousingInteriorStoreroom1 = 27001, + HousingInteriorStoreroom2 = 27002, + HousingInteriorStoreroom3 = 27003, + HousingInteriorStoreroom4 = 27004, + HousingInteriorStoreroom5 = 27005, + HousingInteriorStoreroom6 = 27006, + HousingInteriorStoreroom7 = 27007, + HousingInteriorStoreroom8 = 27008, } /// Represents a generic item storage.