From: Christian Heller Date: Tue, 10 Nov 2020 02:45:36 +0000 (+0100) Subject: Update flatten authorization in web client. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/edit?a=commitdiff_plain;h=eba3230470f350da43dc712b815be93902e34597;p=plomrogue2 Update flatten authorization in web client. --- diff --git a/rogue_chat_nocanvas_monochrome.html b/rogue_chat_nocanvas_monochrome.html index 942cdbf..e6ba4a7 100644 --- a/rogue_chat_nocanvas_monochrome.html +++ b/rogue_chat_nocanvas_monochrome.html @@ -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]]);