diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-01 20:42:36 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-01 20:42:36 +0200 |
commit | cefc16d40ddbf49b626a78e76f21be01f0670e4e (patch) | |
tree | 082a3e87436597f89b7e4a04e8377aaafae34c93 /tools | |
parent | 8c7af923173b105e4664191afe84584d46bb56ce (diff) | |
download | plantagenet-cefc16d40ddbf49b626a78e76f21be01f0670e4e.tar.gz |
new rout/unrout spend valour flow
Diffstat (limited to 'tools')
-rw-r--r-- | tools/engage.js | 5 |
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])) |