X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=rogue_chat.html;h=1b501b5189354e70fcb5658c61db8a62e4acb862;hb=dbb17811ffb485471c228544549e8c8ff940a946;hp=a28951a86711b79df84b8e8102d59c78c5ed96c0;hpb=77d92cc43df05bebecde95f39074024f359ad1be;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index a28951a..1b501b5 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -853,7 +853,10 @@ let tui = { } }; if (this.selectables.length == 0) { - this.log_msg('none') + this.log_msg('none'); + terminal.blink_screen(); + this.switch_mode('play'); + return; } else { for (let [i, t] of this.selectables.entries()) { this.log_msg(i + ': ' + explorer.get_thing_info(t[1])); @@ -1686,6 +1689,9 @@ document.getElementById("teleport").onclick = function() { game.teleport(); }; for (const move_button of document.querySelectorAll('[id*="_move_"]')) { + if (move_button.id.startsWith('key_')) { // not a move button + continue; + }; let direction = move_button.id.split('_')[2].toUpperCase(); move_button.onclick = function() { if (tui.mode.available_actions.includes("move")) {