diff options
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])) |