home · contact · privacy
Identify player in client so scrolling can follow them.
[plomrogue2-experiments] / new2 / plomrogue / commands.py
index 397dbe45f332aae29d22e6fba8671786496a4316..352f40dc1af3a64e99564a7033f2fb8626422f3c 100644 (file)
@@ -18,6 +18,7 @@ def cmd_LOGIN(game, nick, connection_id):
     game.things += [t]  # TODO refactor into Thing.__init__?
     game.sessions[connection_id] = t.id_ 
     game.io.send('META ' + quote('you are now: ' + nick), connection_id)
+    game.io.send('PLAYER_ID %s' % t.id_, connection_id)
 cmd_LOGIN.argtypes = 'string'
 
 def cmd_QUERY(game, target_nick, msg, connection_id):