home · contact · privacy
Show player symbol in face pop-up.
[plomrogue2] / rogue_chat.html
index ba49e868e16dcf77f7856e757d100e0338af2157..0bb8c43413e495fbf3d9f01eac52121c934bc882 100644 (file)
@@ -772,7 +772,7 @@ let tui = {
     function fail(msg, return_mode) {
         tui.log_msg('? ' + msg);
         terminal.blink_screen();
-        this.switch_mode(return_mode);
+        tui.switch_mode(return_mode);
     }
 
     if (this.mode && this.mode.name == 'control_tile_draw') {
@@ -1139,8 +1139,12 @@ let tui = {
           return;
       }
       const start_x = tui.window_width - 10;
+      let t_char = ' ';
+      if (t.thing_char) {
+          t_char = t.thing_char;
+      }
       function draw_body_part(body_part, end_y) {
-          terminal.write(end_y - 4, start_x, ' ________ ');
+          terminal.write(end_y - 4, start_x, ' _[ @' + t_char + ' ]_ ');
           terminal.write(end_y - 3, start_x, '|        |');
           terminal.write(end_y - 2, start_x, '| ' + body_part.slice(0, 6) + ' |');
           terminal.write(end_y - 1, start_x, '| ' + body_part.slice(6, 12) + ' |');