forgot to do modifier

pull/29/head
Mallory Hancock 2018-02-06 16:43:45 -08:00
parent 2d337313f2
commit 541001d3c8
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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