示例#1
0
 def disconnect(self):
     if self.state == 1:
         self.state = 2
         global gamestate
         gamestate["localhost"].users.append("v0rt3x")
         queueconv(conversations["vortex2"])
         return True
     return Host.disconnect(self)
示例#2
0
 def disconnect(self):
     if self.state == 2 or self.state == 3:
         error("User is affected by linklock. May not disconnect")
         return False
     elif self.state == 4:
         self.state = 5
         queueconv(conversations["vortex6"])
         global gamestate
         gamestate["localhost"].state = 8
         return True
     return Host.disconnect(self)