home · contact · privacy
In hat and face edit, use existing value as default input.
[plomrogue2] / rogue_chat.html
index 26322e94a31c3e797a07924704bfb4e3963e983c..d86eec5ee65d4c3e06f43b55ac351a22cb13f225 100644 (file)
@@ -953,6 +953,10 @@ let tui = {
           if (t && t.protection) {
               this.inputEl.value = t.protection;
           }
+      } else if (this.mode.name == 'enter_face' && game.player.face) {
+          this.inputEl.value = game.player.face;
+      } else if (this.mode.name == 'enter_hat' && game.player.hat) {
+          this.inputEl.value = game.player.hat;
       }
   },
   recalc_input_lines: function() {