From cd4a4fc13562d51fbfc2806141f2df808d24388f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 30 Aug 2022 00:03:56 +0200 Subject: Deployment area not on turn track. --- tools/gendata.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/gendata.js b/tools/gendata.js index ba78d95..8de889d 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -658,14 +658,14 @@ data += "const regions = " + JSON.stringify(regions) + "\n" gen_array("unit_name", u => JSON.stringify(u.name)) gen_array("unit_appearance", u => JSON.stringify(u.appearance)) -gen_array("unit_start_steps", u => u.steps) +gen_array("unit_max_steps", u => u.steps) gen_array("unit_elite", u => u.elite) gen_array("unit_class", u => u.class) gen_array("unit_speed", u => u.speed) data += "if (typeof module !== 'undefined')\n\tmodule.exports = {\n" data += "\t\tall_hexes, hex_exists, hex_name, hex_road, side_road, side_limit, regions,\n" -data += "\t\tunit_name, unit_appearance, unit_start_steps, unit_elite, unit_class, unit_speed,\n" +data += "\t\tunit_name, unit_appearance, unit_max_steps, unit_elite, unit_class, unit_speed,\n" data += "\t}\n" fs.writeFileSync("data.js", data) -- cgit v1.2.3