summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-01 20:42:36 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-01 20:42:36 +0200
commitcefc16d40ddbf49b626a78e76f21be01f0670e4e (patch)
tree082a3e87436597f89b7e4a04e8377aaafae34c93 /tools
parent8c7af923173b105e4664191afe84584d46bb56ce (diff)
downloadplantagenet-cefc16d40ddbf49b626a78e76f21be01f0670e4e.tar.gz
new rout/unrout spend valour flow
Diffstat (limited to 'tools')
-rw-r--r--tools/engage.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/engage.js b/tools/engage.js
index 4441fa8..bd784bd 100644
--- a/tools/engage.js
+++ b/tools/engage.js
@@ -117,8 +117,8 @@ function make_engagement(array, choice) {
return null
}
-const ENGAGEMENTS = []
-const CHOICE = []
+var ENGAGEMENTS = []
+var CHOICE = []
function pack_battle_array(filled) {
let bits = 0
@@ -171,6 +171,7 @@ runall()
console.log("</table>")
console.log("<pre>")
+for (let i = 0; i < ENGAGEMENTS.length; ++i) if (!ENGAGEMENTS[i]) ENGAGEMENTS[i] = []
console.log("const ENGAGEMENTS = " + JSON.stringify(ENGAGEMENTS))
for (let [bits,a,b] of CHOICE)
console.log("const ENGAGEMENTS_" + bits + " = " + JSON.stringify([a,b]))