Dice: change the output format so it's a bit more readable

This commit is contained in:
Brian S. Stephan 2011-10-13 21:08:09 -05:00
parent 93761df5ed
commit 86e6cd3db0
1 changed files with 3 additions and 2 deletions

View File

@ -129,9 +129,10 @@ class Dice(Module):
res = m
curr_str += str(m)
total += mode * res
output += "%d (%s)" % (total, curr_str)
if comment != None:
output = "%s: %s" % (comment.strip(), output)
output = "%d %s 14(%s)" % (total, comment.strip(), curr_str)
else:
output = "%d 14(%s)" % (total, curr_str)
return output
def p_roll_r(self, p):