Skip to content

Commit

Permalink
修改消息格式
Browse files Browse the repository at this point in the history
  • Loading branch information
mailgyc committed Mar 8, 2020
1 parent 2ca9625 commit d6755e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doudizhu/apps/game/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def add_robot(self, nth=1):

from .components.simple import RobotPlayer
p1 = RobotPlayer(10000 + nth, f'IDIOT-{nth}', self)
p1.to_server([Pt.REQ_JOIN_ROOM, {'room': self.room_id, 'level': 1}])
p1.to_server(Pt.REQ_JOIN_ROOM, {'room': self.room_id, 'level': 1})

if nth == 1:
IOLoop.current().call_later(3, self.add_robot, nth=2)
Expand Down

0 comments on commit d6755e3

Please sign in to comment.