From cefc16d40ddbf49b626a78e76f21be01f0670e4e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 1 May 2024 20:42:36 +0200 Subject: new rout/unrout spend valour flow --- tools/engage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') 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("") console.log("
")
+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]))
-- 
cgit v1.2.3