home · contact · privacy
Update flatten authorization in web client.
[plomrogue2] / rogue_chat_nocanvas_monochrome.html
index 942cdbf12dd6bf750f5fa382d75a19e212bf18b9..e6ba4a72ad2b25271a9f5a42fad616e9ec48dd83 100644 (file)
@@ -796,7 +796,7 @@ tui.inputEl.addEventListener('keydown', (event) => {
               tui.switch_mode(mode_password);
           } else if (event.key === tui.keys.flatten
                      && game.tasks.includes('FLATTEN_SURROUNDINGS')) {
-              server.send(["TASK:FLATTEN_SURROUNDINGS"]);
+              server.send(["TASK:FLATTEN_SURROUNDINGS", tui.password]);
           } else if (event.key in tui.movement_keys
                      && game.tasks.includes('MOVE')) {
               server.send(['TASK:MOVE', tui.movement_keys[event.key]]);