Ejemplo n.º 1
0
    def gameStart(self):
        Voter.gameStart(self)
        sk_name = self.game.get_role("SK")
        self.game.tell("Role: Witness", self.game.names[self])
        self.game.tell("You: " + self.description, self.game.names[self])
        self.game.tell("You saw: " + self.game.roles[sk_name].description, self.game.names[self])

        self.game.commentary(self.game.names[self] + ": " + "Sane Witness")
Ejemplo n.º 2
0
    def gameStart(self):
        Voter.gameStart(self)
        saw2 = random.choice(["Sane", "Delusional", "SK", "Random", "Random2"])
        sk_name = self.game.get_role(saw2)
        self.game.tell("Role: Witness", self.game.names[self])
        self.game.tell("You: " + self.description, self.game.names[self])
        self.game.tell("You saw: " + self.game.roles[sk_name].description, self.game.names[self])

        self.game.commentary(self.game.names[self] + ": " + "Random Witness")
Ejemplo n.º 3
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)
Ejemplo n.º 4
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)
Ejemplo n.º 5
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)
Ejemplo n.º 6
0
 def __init__(self, game, rolename):
     Voter.__init__(self, game, rolename)
     self.role = "Delusional"
     self.description = game.descriptions.pop()
Ejemplo n.º 7
0
 def gameStart(self):
     Voter.gameStart(self)
     self.game.tell("Role: Murderer", self.game.names[self])
     self.game.tell("You: " + self.description, self.game.names[self])
     self.game.commentary(self.game.names[self] + ": " + "Murderer")
Ejemplo n.º 8
0
 def __init__(self, game, rolename):
         Voter.__init__(self, game, rolename)
         self.role = "ParanoidCop"
         self.alignment = "Town"
         self.alignmentinsane = "Scum"
         self.sanity = "Paranoid"
Ejemplo n.º 9
0
 def gameStart(self):
         """When the game starts up, this is called."""
         Voter.gameStart(self)
         self.game.tell("Role: " + self.role[1] + ".", self.game.names[self])
         self.game.commentary(self.game.names[self] + ": " + self.rolename[0])
Ejemplo n.º 10
0
 def __init__(self, game, rolename="Voter"):
         Voter.__init__(self, game, rolename)
         self.role = rolename
Ejemplo n.º 11
0
 def gameStart(self):
         Voter.gameStart(self)
         self.game.tell("Role: Serial Killer", self.game.names[self])
         self.game.commentary(self.game.names[self] + ": " + "Serial Killer")
Ejemplo n.º 12
0
 def gameStart(self):
         Voter.gameStart(self)
         self.game.tell("Role: Serial Jester, use !kill or !nokill", self.game.names[self])
         self.game.commentary(self.game.names[self] + ": " + "Serial Jester")
Ejemplo n.º 13
0
 def __init__(self, game, rolename):
         Voter.__init__(self, game, rolename)
         self.role = "Townie"
Ejemplo n.º 14
0
 def gameStart(self):
         Voter.gameStart(self)
         self.game.tell("Role: Lyncher for " + self.target, self.game.names[self])
         self.game.commentary(self.game.names[self] + ": " + "Lyncher")
Ejemplo n.º 15
0
 def __init__(self, game, rolename):
         Voter.__init__(self, game, rolename)
         self.role = "Lyncher"
         self.target = self.game.get_role("Lynchee")
Ejemplo n.º 16
0
 def gameStart(self):
         Voter.gameStart(self)
         self.game.tell("Role: Jester", self.game.names[self])
         self.game.commentary(self.game.names[self] + ": " + "Jester")
Ejemplo n.º 17
0
 def __init__(self, game, rolename):
         Voter.__init__(self, game, rolename)
         self.role = "Jester"
Ejemplo n.º 18
0
 def __init__(self, game, rolename):
     Voter.__init__(self, game, rolename)
     self.role = "Random2"
     self.description = game.descriptions.pop()
Ejemplo n.º 19
0
 def gameStart(self):
         Voter.gameStart(self)
         self.game.tell("Role: Townie", self.game.names[self])
         self.game.commentary(self.game.names[self] + ": " + "Townie")
Ejemplo n.º 20
0
 def __init__(self, game, rolename):
         Voter.__init__(self, game, rolename)
         self.role = "Lynchee"
Ejemplo n.º 21
0
 def gameStart(self):
         Voter.gameStart(self)
         self.game.tell("Role: Cop", self.game.names[self])
         self.game.commentary(self.game.names[self] + ": " + "Paranoid Cop")