From: Christian Heller Date: Sun, 1 Nov 2020 01:49:09 +0000 (+0100) Subject: Improve teleportation dialogue handling. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/static/day?a=commitdiff_plain;h=a151d4cbc512d8075c6e49c0feb9cfcf63421f04;p=plomrogue2-experiments Improve teleportation dialogue handling. --- diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index c2c978e..583b2dc 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -313,8 +313,8 @@ let tui = { this.inputEl.value = portal; this.recalc_input_lines(); } else if (mode == mode_teleport) { - tui.log_msg("Type Y or y to affirm teleportation, any other key to abort."); - tui.log_msg("target: " + tui.teleport_target); + tui.log_msg("@ May teleport to: " + tui.teleport_target); + tui.log_msg("@ Type Y or y to affirm, other keys to abort."); } this.full_refresh(); }, @@ -556,6 +556,7 @@ tui.inputEl.addEventListener('input', (event) => { if (['Y', 'y'].includes(tui.inputEl.value[0])) { server.reconnect_to(tui.teleport_target); } else { + tui.log_msg("@ teleportation aborted"); tui.switch_mode(mode_play); } }