aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-04-23 11:00:47 +0200
committerRenaud G <renaud@rolisteam.org>2019-04-23 11:33:14 +0200
commite01a80db01ee4afd9ce546fbad284c3aa56ea11c (patch)
treec441a8d3a8ec292831d6ec3056a54e8671ae9f25
parentdc2a1a2e268335cf3cc5ce58f8d452a63c9798a9 (diff)
downloadOneRoll-e01a80db01ee4afd9ce546fbad284c3aa56ea11c.tar.gz
OneRoll-e01a80db01ee4afd9ce546fbad284c3aa56ea11c.zip
rename unique to spread operator
-rw-r--r--HelpMe.md12
-rw-r--r--diceparser.cpp2
2 files changed, 13 insertions, 1 deletions
diff --git a/HelpMe.md b/HelpMe.md
index 0bfc44b..a3ae8d1 100644
--- a/HelpMe.md
+++ b/HelpMe.md
@@ -20,6 +20,7 @@
* [Merge](#merge)
* [if](#if)
* [Group](#group)
+ * [Spread](#spread)
* [Unique](#unique)
* [Comment (\#)](#comment-)
* [Arithmetic](#arithmetic)
@@ -282,6 +283,17 @@ Merge operator is used for gathering several dice rolls from different die type
This command merges together the result from the d6 and the d8. Then, it applied the k operator on both result to keep the best.
Be careful, this operator merges the instruction list. Instruction reference (such as $1 etc..) won't work after merge operator.
+### Spead
+
+It makes exploded dice as new dice.
+The operator is trigged by *y*.
+
+> 4d6e6y6k3
+
+First Result: `10 [6, 4], 3, 3, 2`
+Result after spead: `6, 4, 3, 2`
+Final result: `6+4+3 = 13`
+
### Unique
It makes exploded dice as new dice.
diff --git a/diceparser.cpp b/diceparser.cpp
index 8efa83e..0c6b23c 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -76,7 +76,7 @@ DiceParser::DiceParser()
m_OptionOp->insert(QStringLiteral("i"), ifOperator);
m_OptionOp->insert(QStringLiteral("p"), Painter);
m_OptionOp->insert(QStringLiteral("f"), Filter);
- m_OptionOp->insert(QStringLiteral("u"), Split);
+ m_OptionOp->insert(QStringLiteral("y"), Split);
m_OptionOp->insert(QStringLiteral("g"), Group);
m_OptionOp->insert(QStringLiteral("b"), Bind);
m_OptionOp->insert(QStringLiteral("o"), Occurences);