home · contact · privacy
In clients, don't open item selection menu when no item in reach.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 9 Dec 2020 00:25:06 +0000 (01:25 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 9 Dec 2020 00:25:06 +0000 (01:25 +0100)
rogue_chat.html
rogue_chat_curses.py

index 42b0362a4504aaed05882693cdbd05ead1c51171..1b501b5189354e70fcb5658c61db8a62e4acb862 100644 (file)
@@ -853,7 +853,10 @@ let tui = {
             }
         };
         if (this.selectables.length == 0) {
             }
         };
         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]));
         } else {
             for (let [i, t] of this.selectables.entries()) {
                 this.log_msg(i + ': ' + explorer.get_thing_info(t[1]));
index efddaf68eb5f38bb8b80d56baf44a872708d6685..aeb955e60f9593d113f37fb6f0f33c4f9b2817d6 100755 (executable)
@@ -672,6 +672,9 @@ class TUI:
                                 if t.portable and t.position in select_range]
             if len(self.selectables) == 0:
                 self.log_msg('none')
                                 if t.portable and t.position in select_range]
             if len(self.selectables) == 0:
                 self.log_msg('none')
+                self.flash = True
+                self.switch_mode('play')
+                return
             else:
                 for i in range(len(self.selectables)):
                     t = self.selectables[i]
             else:
                 for i in range(len(self.selectables)):
                     t = self.selectables[i]