forgot to do modifier
parent
2d337313f2
commit
541001d3c8
|
@ -12,7 +12,7 @@ def build_output(rolls, modifier):
|
||||||
all_rolls = ''.join([str(i)+', ' for i in rolls]).strip(', ')
|
all_rolls = ''.join([str(i)+', ' for i in rolls]).strip(', ')
|
||||||
start = '{} = {}'.format(all_rolls, sum(rolls))
|
start = '{} = {}'.format(all_rolls, sum(rolls))
|
||||||
if modifier:
|
if modifier:
|
||||||
output = start + ' + {} = '.format(modifier)
|
output = start + ' + {} = {}'.format(modifier, sum(rolls) + int(modifier))
|
||||||
else:
|
else:
|
||||||
output = start
|
output = start
|
||||||
return output
|
return output
|
||||||
|
|
|
@ -12,7 +12,7 @@ def build_output(rolls, modifier):
|
||||||
all_rolls = ''.join([str(i)+', ' for i in rolls]).strip(', ')
|
all_rolls = ''.join([str(i)+', ' for i in rolls]).strip(', ')
|
||||||
start = '{} = {}'.format(all_rolls, sum(rolls))
|
start = '{} = {}'.format(all_rolls, sum(rolls))
|
||||||
if modifier:
|
if modifier:
|
||||||
output = start + ' + {} = '.format(modifier)
|
output = start + ' + {} = {}'.format(modifier, sum(rolls) + int(modifier))
|
||||||
else:
|
else:
|
||||||
output = start
|
output = start
|
||||||
return output
|
return output
|
||||||
|
|
Loading…
Reference in New Issue