diff options
| author | 2018-11-17 12:22:05 +0000 | |
|---|---|---|
| committer | 2018-11-17 12:22:05 +0000 | |
| commit | d130b0e59bc49286c13bd0c3b86d0d0e1eb1d039 (patch) | |
| tree | 9d2bac4dc466d98fd653da1290e3a382f5473820 /modules/dice.py | |
| parent | Should be using `sides` and `count`, not `roll[0]` and `roll[1]` (diff) | |
| signature | ||
'die_sides' 'die_count' -> 'sides_n' 'count_n'
Diffstat (limited to 'modules/dice.py')
| -rw-r--r-- | modules/dice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dice.py b/modules/dice.py index 18eabeb2..51752aa9 100644 --- a/modules/dice.py +++ b/modules/dice.py @@ -18,7 +18,7 @@ class Module(ModuleManager.BaseModule): count_n = min(5, int(count)) sides_n = min(20, int(sides)) - reults = random.choices(range(1, die_sides), k=die_count) + reults = random.choices(range(1, sides_n), k=count_n) total_n = sum(results) total = "" |
