home · contact · privacy
On re-naming failure, return to world edit mode.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 18 Dec 2020 20:27:06 +0000 (21:27 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 18 Dec 2020 20:27:06 +0000 (21:27 +0100)
rogue_chat.html
rogue_chat_curses.py

index e2cd53c43c3333e2d27f45815e124e58c752c170..a09892dbc86576e8db2d437a29e22212e09508c2 100644 (file)
@@ -813,7 +813,7 @@ let tui = {
                                          || !game.player.carrying.commandable)) {
         return fail('not carrying anything commandable');
     } else if (mode_name == 'name_thing' && !game.player.carrying) {
-        return fail('not carrying anything to re-name');
+        return fail('not carrying anything to re-name', 'edit');
     } else if (mode_name == 'admin_thing_protect' && !game.player.carrying) {
         return fail('not carrying anything to protect')
     } else if (mode_name == 'take_thing' && game.player.carrying) {
index a58b842e70a46154341ea003f904d333f10b5972..caf688a76724ee7c081771be4cb6b8e601613202 100755 (executable)
@@ -703,7 +703,7 @@ class TUI:
             not self.game.player.carrying.commandable):
             return fail('not carrying anything commandable')
         if mode_name == 'name_thing' and not self.game.player.carrying:
-            return fail('not carrying anything to re-name')
+            return fail('not carrying anything to re-name', 'edit')
         if mode_name == 'admin_thing_protect' and not self.game.player.carrying:
             return fail('not carrying anything to protect')
         if mode_name == 'take_thing' and self.game.player.carrying: