home · contact · privacy
Improve teleportation dialogue handling.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 1 Nov 2020 01:49:09 +0000 (02:49 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 1 Nov 2020 01:49:09 +0000 (02:49 +0100)
new2/rogue_chat_nocanvas_monochrome.html

index c2c978e403a64a34c12166adcaf1a7b971c6a342..583b2dc76becec857bc2fd7252b13415d6742ace 100644 (file)
@@ -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);
        }
     }