summaryrefslogtreecommitdiffstats
path: root/source/Item.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Item.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Item.cpp b/source/Item.cpp
index 759b23042..b96500a30 100644
--- a/source/Item.cpp
+++ b/source/Item.cpp
@@ -8,6 +8,21 @@
+bool cItem::IsStackableWith(const cItem & a_OtherStack)
+{
+ if (a_OtherStack.m_ItemType != m_ItemType)
+ {
+ return false;
+ }
+
+ // TODO: match enchantments etc.
+ return true;
+}
+
+
+
+
+
void cItem::GetJson( Json::Value & a_OutValue ) const
{
a_OutValue["ID"] = m_ItemType;