From fe070129526178b8a0adbd3b64fc8ae1630c6a7a Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 10 Nov 2013 18:41:26 +0100 Subject: Added cItem::GetMaxStackSize() --- source/Item.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/Item.cpp') diff --git a/source/Item.cpp b/source/Item.cpp index 5e0beb028..25664e4df 100644 --- a/source/Item.cpp +++ b/source/Item.cpp @@ -122,6 +122,15 @@ bool cItem::IsFullStack(void) const +char cItem::GetMaxStackSize(void) const +{ + return ItemHandler(m_ItemType)->GetMaxStackSize(); +} + + + + + /// Returns the cItemHandler responsible for this item type cItemHandler * cItem::GetHandler(void) const { -- cgit v1.2.3