From 62c5097904bfc6c6e44e776730ea1d01aaf891c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Jan 2016 16:59:33 +0300 Subject: Add partial implimentation for craft inventory. For now almost same with npc inventory. --- src/resources/inventory/inventory.cpp | 5 +++++ src/resources/inventory/inventory.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/resources') diff --git a/src/resources/inventory/inventory.cpp b/src/resources/inventory/inventory.cpp index ad44245a1..180a1b4f3 100644 --- a/src/resources/inventory/inventory.cpp +++ b/src/resources/inventory/inventory.cpp @@ -330,6 +330,11 @@ std::string Inventory::getName() const // TRANSLATORS: inventory type name return N_("Mail"); } + case InventoryType::Craft: + { + // TRANSLATORS: inventory type name + return N_("Craft"); + } #endif case InventoryType::Trade: { diff --git a/src/resources/inventory/inventory.h b/src/resources/inventory/inventory.h index 501141ed8..1e1a97dd4 100644 --- a/src/resources/inventory/inventory.h +++ b/src/resources/inventory/inventory.h @@ -45,7 +45,7 @@ class InventoryListener; class Item; -class Inventory final +class Inventory notfinal { public: A_DELETE_COPY(Inventory) -- cgit v1.2.3-60-g2f50