chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9d16c4
)
script; Add some piece descriptions to messages
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2022 19:30:50 +0000
(20:30 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index 3d6375f754913944dbea302afd064d225d632205..bb878a4853dd8d20acc8c254972e2bf959b99d60 100644
(file)
--- 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;
}