Sfoglia il codice sorgente

Not rolling to many dice

tBKwtWS 7 anni fa
parent
commit
5e15720658
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      commands/games.py

+ 4 - 0
commands/games.py

@@ -98,6 +98,8 @@ def do_command(self, connection, event):
                     return
                 if diceamount == 0:
                     connection.privmsg(replyto, "Rolling " + bold + "no " + reset + "dice.")
+                elif diceamount > 10:
+                    connection.action(replyto, "can not fit that many dice into it's robot hands.")
                 else:
                     connection.privmsg(replyto, ", ".join(str(rolls) for rolls in GameHelpers.roll_dice(diceamount,  6)) + ".") # Roll x amount of dice.
             elif arguments == 2:
@@ -115,6 +117,8 @@ def do_command(self, connection, event):
                     connection.privmsg(replyto, "Rolling " + bold + "no " + reset + "dice.")
                 elif dicetype == 0 :
                     connection.action(replyto, "can not create objects with less then one side.")
+                elif diceamount > 10:
+                    connection.action(replyto, "can not fit that many dice into it's robot hands.")
                 else:
                     connection.privmsg(replyto, ", ".join(str(rolls) for rolls in GameHelpers.roll_dice(diceamount,  dicetype)) + ".") # Roll x amount of x type dice.
             else:   # Invalid amount of arguments.