aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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);