Beispiel #1
0
 def action(self, msg):
         args = msg.split(" ")
         if ((args[0] == "kill") and (self.game.phase == "night")):
                 if ((len(args) >= 2) and (args[1] in self.game.roles)):
                         self.game.nk = args[1]
                         self.game.tell(args[1] + " has been nightkilled.", self.game.names[self])
                         self.game.mkDay()
                 else:
                         self.game.tell("You must pick a valid target.", self.game.names[self])
         else:
                 Voter.action(self, msg)
Beispiel #2
0
 def action(self, msg):
         args = msg.split(" ")
         if ((args[0] == "cop") and (self.game.phase == "night")):
                 if ((len(args) >= 2) and (args[1] in self.game.roles)):
                         self.game.cop = args[1]
                         randalign = random.choice(['Scum','Town'])
                         self.game.tell(args[1] + " is %s." % randalign, self.game.names[self])
                         self.game.mkDay()
                 else:
                         self.game.tell("You must pick a valid target.", self.game.names[self])
         else:
                 Voter.action(self, msg)
Beispiel #3
0
 def action(self, msg):
         args = msg.split(" ")
         if ((args[0] == "cop") and (self.game.phase == "night")):
                 if ((len(args) >= 2) and (args[1] in self.game.roles)):
                         if args[1] == self.game.get_role("SK"):
                                 self.game.tell(args[1] + " is town", self.game.names[self])
                                 self.game.mkDay()
                         else:
                                 self.game.tell(args[1] + " is scum", self.game.names[self])
                                 self.game.mkDay()
                 else:
                         self.game.tell("You must pick a valid target.", self.game.names[self])
         else:
                 Voter.action(self, msg)