diff options
| author | 2018-04-08 07:50:54 +0200 | |
|---|---|---|
| committer | 2018-04-08 07:50:54 +0200 | |
| commit | 0ca59c3eb254d5d2650948e3f72662678290d633 (patch) | |
| tree | a63f2396c3c7757018714443d47169241a8a8275 /node | |
| parent | 5037bbc102fec39fbdef810427c31cb0a1722709 (diff) | |
| download | OneRoll-0ca59c3eb254d5d2650948e3f72662678290d633.tar.gz OneRoll-0ca59c3eb254d5d2650948e3f72662678290d633.zip | |
Fix diceToText function() when multiple commands are involved
Currently their is no space between expressions in the breakdown of the dices.
Example:
2d6;3d4*10;4d20*100
Current result (notice the absence of space between the '4' and '1', and
between the '3' and '17'):
Result: 8,50,4300 - details:[2d6;3d4*10;4d20*100 (4,41,1,317,15,8,3)]
New result:
Result: 10,80,4300 - details:[2d6;3d4*10;4d20*100 (4 4 - 1 1 3 - 17 15 8 3)]
NB: I used space instead of coma, since it's look better with conditions
Example:
2d6a[>3];3d4a[>2]*10;4d20a[>10]*100
Current result (notice the abscence of space after each ']')
8,[5,3],10,[4,6]7,[4,3],1,6,[3,3]3,33,[17,16],10,22,[14,8]
New result:
8 [5,3] 10 [4,6] - 7 [4,3] 1 6 [3,3] - 3 33 [17,16] 10 22 [14,8]
Diffstat (limited to 'node')
0 files changed, 0 insertions, 0 deletions