diff --git a/d2core/d2inventory/inventory_item_armor.go b/d2core/d2inventory/inventory_item_armor.go index 1f5f9ccb..b634cf7a 100644 --- a/d2core/d2inventory/inventory_item_armor.go +++ b/d2core/d2inventory/inventory_item_armor.go @@ -6,13 +6,13 @@ import ( // InventoryItemArmor stores the info of an armor item in the inventory type InventoryItemArmor struct { - InventorySizeX int `json:"inventorySizeX"` + ArmorClass string `json:"armorClass"` + ItemName string `json:"itemName"` + ItemCode string `json:"itemCode"` InventorySizeY int `json:"inventorySizeY"` InventorySlotX int `json:"inventorySlotX"` InventorySlotY int `json:"inventorySlotY"` - ItemName string `json:"itemName"` - ItemCode string `json:"itemCode"` - ArmorClass string `json:"armorClass"` + InventorySizeX int `json:"inventorySizeX"` } // GetArmorClass returns the class of the armor diff --git a/d2core/d2inventory/inventory_item_misc.go b/d2core/d2inventory/inventory_item_misc.go index 1fb02707..0b005304 100644 --- a/d2core/d2inventory/inventory_item_misc.go +++ b/d2core/d2inventory/inventory_item_misc.go @@ -6,12 +6,12 @@ import ( // InventoryItemMisc stores the info of an miscellaneous item in the inventory type InventoryItemMisc struct { + ItemName string `json:"itemName"` + ItemCode string `json:"itemCode"` InventorySizeX int `json:"inventorySizeX"` InventorySizeY int `json:"inventorySizeY"` InventorySlotX int `json:"inventorySlotX"` InventorySlotY int `json:"inventorySlotY"` - ItemName string `json:"itemName"` - ItemCode string `json:"itemCode"` } // InventoryItemName returns the name of the miscellaneous item diff --git a/d2core/d2inventory/inventory_item_weapon.go b/d2core/d2inventory/inventory_item_weapon.go index 1362c60c..7f67d2a0 100644 --- a/d2core/d2inventory/inventory_item_weapon.go +++ b/d2core/d2inventory/inventory_item_weapon.go @@ -6,14 +6,14 @@ import ( // InventoryItemWeapon stores the info of an weapon item in the inventory type InventoryItemWeapon struct { - InventorySizeX int `json:"inventorySizeX"` - InventorySizeY int `json:"inventorySizeY"` - InventorySlotX int `json:"inventorySlotX"` - InventorySlotY int `json:"inventorySlotY"` - ItemName string `json:"itemName"` - ItemCode string `json:"itemCode"` WeaponClass string `json:"weaponClass"` WeaponClassOffHand string `json:"weaponClassOffHand"` + ItemName string `json:"itemName"` + ItemCode string `json:"itemCode"` + InventorySlotX int `json:"inventorySlotX"` + InventorySlotY int `json:"inventorySlotY"` + InventorySizeX int `json:"inventorySizeX"` + InventorySizeY int `json:"inventorySizeY"` } // GetWeaponClass returns the class of the weapon