Should be using sides and count, not roll[0] and roll[1]

This commit is contained in:
jesopo 2018-11-17 12:21:09 +00:00
parent 97b2158956
commit 0f8a3231c6

View file

@ -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)