Dice: fix display of multi-run rolls (e.g. 6#d20)
This commit is contained in:
parent
86e6cd3db0
commit
ad93ea28ec
@ -129,10 +129,16 @@ class Dice(Module):
|
|||||||
res = m
|
res = m
|
||||||
curr_str += str(m)
|
curr_str += str(m)
|
||||||
total += mode * res
|
total += mode * res
|
||||||
|
if repeat == 1:
|
||||||
if comment != None:
|
if comment != None:
|
||||||
output = "%d %s 14(%s)" % (total, comment.strip(), curr_str)
|
output = "%d %s 14(%s)" % (total, comment.strip(), curr_str)
|
||||||
else:
|
else:
|
||||||
output = "%d 14(%s)" % (total, curr_str)
|
output = "%d 14(%s)" % (total, curr_str)
|
||||||
|
else:
|
||||||
|
output += "%d 14(%s)" % (total, curr_str)
|
||||||
|
if i == repeat - 1:
|
||||||
|
if comment != None:
|
||||||
|
output += " (%s)" % (comment.strip())
|
||||||
return output
|
return output
|
||||||
|
|
||||||
def p_roll_r(self, p):
|
def p_roll_r(self, p):
|
||||||
|
Loading…
Reference in New Issue
Block a user