X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.css?a=blobdiff_plain;f=rogue_chat_curses.py;h=86c6ba4267bd9dc40cea33439f2ecc65d068c5fa;hb=94f399dbee74479669095c3f79548ebae4a4cd80;hp=5ad366a78815e6fd6d3526d256f62e8232b1c7ed;hpb=e6a3ab3471ae5a2be10bd64d694eef462d7f7cf6;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 5ad366a..86c6ba4 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -820,6 +820,11 @@ class TUI: content += '/%s or /study – switch to study mode\n' % self.keys['switch_to_study'] content += '/%s or /edit – switch to map edit mode\n' % self.keys['switch_to_edit'] content += '/%s or /admin – switch to admin mode\n' % self.keys['switch_to_admin_enter'] + elif self.mode.name == 'admin': + content += "Available actions:\n" + if 'MOVE' in self.game.tasks: + content += "[%s] – move player\n" % ','.join(self.movement_keys) + content += '\n' content += self.mode.list_available_modes(self) for i in range(self.size.y): safe_addstr(i, @@ -1024,6 +1029,8 @@ class TUI: elif self.mode.name == 'admin': if self.mode.mode_switch_on_key(self, key): continue + elif key in self.movement_keys and 'MOVE' in self.game.tasks: + self.send('TASK:MOVE ' + self.movement_keys[key]) elif self.mode.name == 'edit': if self.mode.mode_switch_on_key(self, key): continue