Should be using sides
and count
, not roll[0]
and roll[1]
This commit is contained in:
parent
97b2158956
commit
0f8a3231c6
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ class Module(ModuleManager.BaseModule):
|
|||
if not count.isdigit() or not sides.isdigit():
|
||||
raise utils.EventError(ERROR_FORMAT)
|
||||
|
||||
count_n = min(int(roll[0]), 5)
|
||||
sides_n = min(int(roll[1]), 20)
|
||||
count_n = min(5, int(count))
|
||||
sides_n = min(20, int(sides))
|
||||
|
||||
reults = random.choices(range(1, die_sides), k=die_count)
|
||||
|
||||
|
|
Loading…
Reference in a new issue