From f80268eb885e28c603cc88523cfce2751d1448e1 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 7 Sep 2008 18:49:29 +0000 Subject: [FIX] Added a static poll method to Fraction [FIX] More Arena stuff fleshed out [FIX] Added priority scripts to Ability and Move [FIX] A SigmodWrapper pointer is now passed around the containments [FIX] Config now has templated methods for retrieving values git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@253 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigscript/TrainerWrapper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sigscript/TrainerWrapper.cpp') diff --git a/sigscript/TrainerWrapper.cpp b/sigscript/TrainerWrapper.cpp index 7d60be1e..bc937058 100644 --- a/sigscript/TrainerWrapper.cpp +++ b/sigscript/TrainerWrapper.cpp @@ -54,8 +54,8 @@ QString Sigscript::TrainerWrapper::TrainerWrapper::name() const int Sigscript::TrainerWrapper::TrainerWrapper::moneyFactor() const { - if (value("moneyFactor").canConvert()) - return value("moneyFactor").toInt(); + if (hasValueOfType("moneyFactor")) + return valueOfType("moneyFactor"); return m_trainer->moneyFactor(); } @@ -66,8 +66,8 @@ Sigscript::SkinWrapper* Sigscript::TrainerWrapper::TrainerWrapper::skin() int Sigscript::TrainerWrapper::TrainerWrapper::depth() const { - if (value("depth").canConvert()) - return value("depth").toInt(); + if (hasValueOfType("depth")) + return valueOfType("depth"); return m_trainer->depth(); } -- cgit