home · contact · privacy
Add player-identifying meta characters next to @ symbols.
[plomrogue2] / plomrogue / commands.py
index 1c59abfd0b4ca9e4bcb82351297cf1bab59c321b..229285fb8c7f291ff02458367b11e40f89cdb6a9 100644 (file)
@@ -82,6 +82,7 @@ def cmd_LOGIN(game, nick, connection_id):
     t = game.thing_types['Player'](game)
     t.position = YX(game.map.size.y // 2, game.map.size.x // 2)
     game.things += [t]  # TODO refactor into Thing.__init__?
+    t.player_char = game.get_next_player_char()
     game.sessions[connection_id] = t.id_
     game.io.send('LOGIN_OK', connection_id)
     t.nickname = nick