X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;ds=inline;f=rogue_chat.html;h=1847c0904ec9f7452efc718fa9265521e0bd7686;hb=3b86e8effe9aa77fa87f86a1057d12d4c8019324;hp=ba5ecd2bcbdadde233d22ec821457d71c06e52b4;hpb=bf2680f7295227b4dc3a2b3a38bf0a650169f23a;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index ba5ecd2..1847c09 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -1213,24 +1213,24 @@ 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, ' _[ @' + t_char + ' ]_ '); - terminal.write(end_y - 3, start_x, '| |'); + 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) + ' |'); terminal.write(end_y, start_x, '| ' + body_part.slice(12, 18) + ' |'); } if (t.face) { - draw_body_part(t.face, terminal.rows - 2); + draw_body_part(t.face, terminal.rows - 3); } if (t.hat) { - draw_body_part(t.hat, terminal.rows - 5); + draw_body_part(t.hat, terminal.rows - 6); + } + terminal.write(terminal.rows - 2, start_x, '----------'); + let name = t.name_; + if (name.length > 6) { + name = name.slice(0, 6) + '…'; } - terminal.write(terminal.rows - 1, start_x, '| |'); + terminal.write(terminal.rows - 1, start_x, '@' + t.thing_char + ':' + name); }, draw_mode_line: function() { let help = 'hit [' + this.keys.help + '] for help'; @@ -1540,6 +1540,13 @@ let explorer = { if (t.installed) { info += "/installed"; } + if (t.type_ == 'Bottle') { + if (t.thing_char == '_') { + info += '/empty'; + } else if (t.thing_char == '~') { + info += '/full'; + } + } if (detailed) { const protection = t.protection; if (protection != '.') {