Change output for selection rolls. Output of die rolls is no longer sorted.

This commit is contained in:
kad 2011-06-20 16:48:24 -05:00
parent a767b3d6e2
commit 35df9f9425
1 changed files with 1 additions and 11 deletions

View File

@ -72,17 +72,7 @@ class Dice(Module):
else:
b = a
total = sum(b)
outstr = "[";
if len(b) != len(a):
# Bold is \002
outstr += ",".join(str(i) for i in b) + ","
temp = sorted(a, reverse=True)
temp = temp[keep:]
bstr = ",".join(str(i) for i in temp)
outstr += bstr
else:
outstr += ",".join(str(i) for i in a)
outstr += "]"
outstr = "[" + ",".join(str(i) for i in a) + "]"
return (total, outstr)