From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 25 Nov 2020 05:09:41 +0000 (+0100)
Subject: Mention movement ability in edit mode help.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/template?a=commitdiff_plain;h=b03c50a4922dfd0017712958b8a317a7bd612c54;p=plomrogue2

Mention movement ability in edit mode help.
---

diff --git a/rogue_chat.html b/rogue_chat.html
index 665bc3d..49fdda0 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -968,6 +968,9 @@ let tui = {
           content += '\n';
       } else if (this.mode.name == 'edit') {
           content += "Available actions:\n";
+          if (game.tasks.includes('MOVE')) {
+              content += "[" + movement_keys_desc + "] – move player\n";
+          }
           if (game.tasks.includes('FLATTEN_SURROUNDINGS')) {
               content += "[" + tui.keys.flatten + "] – flatten surroundings\n";
           }
diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py
index 6151301..7b9d648 100755
--- a/rogue_chat_curses.py
+++ b/rogue_chat_curses.py
@@ -755,6 +755,8 @@ class TUI:
                 content += '\n'
             elif self.mode.name == 'edit':
                 content += "Available actions:\n"
+                if 'MOVE' in self.game.tasks:
+                    content += "[%s] – move player\n" % ','.join(self.movement_keys)
                 if 'FLATTEN_SURROUNDINGS' in self.game.tasks:
                     content += "[%s] – flatten surroundings\n" % self.keys['flatten']
                 content += '\n'