Change output for selection rolls. Output of die rolls is no longer sorted.
This commit is contained in:
parent
a767b3d6e2
commit
35df9f9425
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user