summaryrefslogtreecommitdiffstats
path: root/sigscript/ItemWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/ItemWrapper.cpp')
-rw-r--r--sigscript/ItemWrapper.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/sigscript/ItemWrapper.cpp b/sigscript/ItemWrapper.cpp
index 1e341144..22706474 100644
--- a/sigscript/ItemWrapper.cpp
+++ b/sigscript/ItemWrapper.cpp
@@ -52,15 +52,13 @@ Sigscript::ItemTypeWrapper* Sigscript::ItemWrapper::type()
int Sigscript::ItemWrapper::price() const
{
- if (sigmod()->singlePlayer() && hasValueOfType<int>("price"))
- return valueOfType<int>("price");
+ ALLOW_OVERRIDE_SO(item, int, price);
return m_item->price();
}
int Sigscript::ItemWrapper::sellPrice() const
{
- if (sigmod()->singlePlayer() && hasValueOfType<int>("sellPrice"))
- return valueOfType<int>("sellPrice");
+ ALLOW_OVERRIDE_SO(item, int, sellPrice);
return m_item->sellPrice();
}