Compare commits
2 Commits
8fcc8365e3
...
6b8dd1a645
Author | SHA1 | Date | |
---|---|---|---|
6b8dd1a645 | |||
649a148209 |
@ -64,6 +64,7 @@ class DiceRoller(object):
|
|||||||
up to a semicolon or end of line).
|
up to a semicolon or end of line).
|
||||||
"""
|
"""
|
||||||
rolls = mods[0][0][1] if mods[0][0][1] else 1
|
rolls = mods[0][0][1] if mods[0][0][1] else 1
|
||||||
|
if trials:
|
||||||
assert trials <= 10, "Too many rolls (max: 10)."
|
assert trials <= 10, "Too many rolls (max: 10)."
|
||||||
assert rolls <= 50, "Too many dice (max: 50) in roll."
|
assert rolls <= 50, "Too many dice (max: 50) in roll."
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user