From: Ian Jackson Date: Sun, 19 Jun 2022 19:30:50 +0000 (+0100) Subject: script; Add some piece descriptions to messages X-Git-Tag: otter-1.2.0~15 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3682d4cf655c7fa6d73a6b2fcaacf60b036d7fb0;p=otter.git script; Add some piece descriptions to messages Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 3d6375f7..bb878a48 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -1378,9 +1378,11 @@ function drag_mousemove(e: MouseEvent) { continue; } else if (tp.moveable == "IfWresting") { if (wresting) continue; - add_log_message('That piece can only be moved when Wresting.'); + add_log_message( + `That piece (${tp.desc}) can only be moved when Wresting.`); } else { - add_log_message('That piece cannot be moved at the moment.'); + add_log_message( + `That piece (${tp.desc}) cannot be moved at the moment.`); } return ddr2; }