summaryrefslogtreecommitdiffstats
path: root/sigscript/RulesWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/RulesWrapper.cpp')
-rw-r--r--sigscript/RulesWrapper.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/sigscript/RulesWrapper.cpp b/sigscript/RulesWrapper.cpp
index f1493208..a5374678 100644
--- a/sigscript/RulesWrapper.cpp
+++ b/sigscript/RulesWrapper.cpp
@@ -54,6 +54,13 @@ bool Sigscript::RulesWrapper::useTurns() const
return m_rules->useTurns();
}
+bool Sigscript::RulesWrapper::pausedATB() const
+{
+ if (hasValueOfType<bool>("pausedATB"))
+ return valueOfType<bool>("pausedATB");
+ return m_rules->pausedATB();
+}
+
int Sigscript::RulesWrapper::numBoxes() const
{
if (hasValueOfType<int>("numBoxes"))
@@ -134,6 +141,13 @@ int Sigscript::RulesWrapper::maxMoney() const
return m_rules->maxMoney();
}
+int Sigscript::RulesWrapper::maxTotalWeight() const
+{
+ if (hasValueOfType<int>("maxTotalWeight"))
+ return valueOfType<int>("maxTotalWeight");
+ return m_rules->maxTotalWeight();
+}
+
bool Sigscript::RulesWrapper::hardCash() const
{
return m_rules->hardCash();