summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-23 11:47:06 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit918d358f7870e3e950be6168424ddfd160507b6d (patch)
tree77fc97e4bc1cbf652d70763baef023b5a6c988d3 /tools
parent01a272e63afb8a051aa7583ad596bc40f992111a (diff)
downloadandean-abyss-918d358f7870e3e950be6168424ddfd160507b6d.tar.gz
Fix event 53 - add "piece_range" variant for 1-2 optionality.
Diffstat (limited to 'tools')
-rw-r--r--tools/gencode.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gencode.js b/tools/gencode.js
index c0e1cc9..d4d8d23 100644
--- a/tools/gencode.js
+++ b/tools/gencode.js
@@ -81,6 +81,9 @@ for (let line of fs.readFileSync("events.txt", "utf-8").split("\n")) {
case "piece_undo":
emit([ "piece", true, line[1], line[1], "(p,s)=>" + line.slice(2).join(" ") ])
break
+ case "piece_range":
+ emit([ "piece", false, line[1], line[2], "(p,s)=>" + line.slice(3).join(" ") ])
+ break
case "piece_opt":
emit([ "piece", false, 0, line[1], "(p,s)=>" + line.slice(2).join(" ") ])
break