mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
Games: Re-add some, much higher, upper limits to dice.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 154fbc30e9
)
Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
This commit is contained in:
parent
fa7c17e24e
commit
14a5f52b29
@ -58,7 +58,11 @@ class Games(callbacks.Plugin):
|
||||
ten-sided dice.
|
||||
"""
|
||||
(dice, sides) = utils.iter.imap(int, m.groups())
|
||||
if sides < 3:
|
||||
if dice > 1000:
|
||||
irc.error('You can\'t roll more than 1000 dice.')
|
||||
elif sides > 100:
|
||||
irc.error('Dice can\'t have more than 100 sides.')
|
||||
elif sides < 3:
|
||||
irc.error('Dice can\'t have fewer than 3 sides.')
|
||||
else:
|
||||
L = [0] * dice
|
||||
|
Loading…
Reference in New Issue
Block a user