aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--diceresult.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/diceresult.cpp b/diceresult.cpp
index 8fcc5b3..c000623 100644
--- a/diceresult.cpp
+++ b/diceresult.cpp
@@ -19,9 +19,18 @@ void DiceResult::setResultList(QList<Die> list)
}
bool DiceResult::isScalar() const
{
+ if(m_diceValues.size()==1)
+ {
+ return true;
+ }
return false;
}
qint64 DiceResult::getScalar()
{
+
+ if(m_diceValues.size()==1)
+ {
+ return m_diceValues[0].getValue();
+ }
return 0;
}