aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/parsingtoolbox.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-04-26 16:31:31 +0200
committerRenaud G <renaud@rolisteam.org>2020-04-26 16:31:31 +0200
commit5f68d8399b771da0f3500a5d037315607e25c78d (patch)
treef1600941bde0bfd427f92f8d0bfa7fb97c65d4c6 /parsingtoolbox.cpp
parent214945c0cbf14544df5defdfea0bc89c87626274 (diff)
downloadOneRoll-5f68d8399b771da0f3500a5d037315607e25c78d.tar.gz
OneRoll-5f68d8399b771da0f3500a5d037315607e25c78d.zip
Add support for OnEachValue compare method.
Diffstat (limited to 'parsingtoolbox.cpp')
-rw-r--r--parsingtoolbox.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp
index e28c65d..e53cf96 100644
--- a/parsingtoolbox.cpp
+++ b/parsingtoolbox.cpp
@@ -330,6 +330,11 @@ Dice::ConditionType ParsingToolBox::readConditionType(QString& str)
str= str.remove(0, 1);
type= Dice::OneOfThem;
}
+ else if(str.startsWith('?'))
+ {
+ str= str.remove(0, 1);
+ type= Dice::OnEachValue;
+ }
else if(str.startsWith('*'))
{
str= str.remove(0, 1);