summaryrefslogtreecommitdiffstats
path: root/sigscript/ItemWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/ItemWrapper.cpp')
-rw-r--r--sigscript/ItemWrapper.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/sigscript/ItemWrapper.cpp b/sigscript/ItemWrapper.cpp
index 71e36149..18803dbb 100644
--- a/sigscript/ItemWrapper.cpp
+++ b/sigscript/ItemWrapper.cpp
@@ -56,6 +56,18 @@ int Sigscript::ItemWrapper::price() const
return m_item->price();
}
+int Sigscript::ItemWrapper::sellPrice() const
+{
+ if (hasValueOfType<int>("sellPrice"))
+ return valueOfType<int>("sellPrice");
+ return m_item->sellPrice();
+}
+
+int Sigscript::ItemWrapper::weight() const
+{
+ return m_item->weight();
+}
+
QString Sigscript::ItemWrapper::description() const
{
return m_item->description();