chiark / gitweb /
script; Add some piece descriptions to messages
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2022 19:30:50 +0000 (20:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2022 19:59:49 +0000 (20:59 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts

index 3d6375f754913944dbea302afd064d225d632205..bb878a4853dd8d20acc8c254972e2bf959b99d60 100644 (file)
@@ -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;
       }