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:
|
else:
|
||||||
b = a
|
b = a
|
||||||
total = sum(b)
|
total = sum(b)
|
||||||
outstr = "[";
|
outstr = "[" + ",".join(str(i) for i in a) + "]"
|
||||||
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 += "]"
|
|
||||||
|
|
||||||
return (total, outstr)
|
return (total, outstr)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user