X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance2?a=blobdiff_plain;f=rogue_chat.html;h=0bb8c43413e495fbf3d9f01eac52121c934bc882;hb=a595b17ad67ad065a35e14f66773c2eaace0fa8c;hp=781fc63b99f7e0618922a7b9088136f540e7353e;hpb=b3274c1e3219d50cc67487684608c7b4bd456675;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index 781fc63..0bb8c43 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -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') { @@ -1134,13 +1134,17 @@ let tui = { }, draw_face_popup: function() { const t = game.things[this.draw_face]; - if (!t) { + if (!t || !t.face) { this.draw_face = false; 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) + ' |');