From 64730b32e2c595469eb23e9cd40332b4a80e3e27 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 25 Sep 2008 22:55:25 +0000 Subject: [FIX] Removed *_End defines [FIX] Added weights to items and associated fields [FIX] Option for pausing during ATB battles when choosing moves added git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@267 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigscript/ItemWrapper.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sigscript/ItemWrapper.cpp') 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("sellPrice")) + return valueOfType("sellPrice"); + return m_item->sellPrice(); +} + +int Sigscript::ItemWrapper::weight() const +{ + return m_item->weight(); +} + QString Sigscript::ItemWrapper::description() const { return m_item->description(); -- cgit