summaryrefslogtreecommitdiff
path: root/tools/gendata.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-07 20:49:42 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-07 20:49:42 +0200
commit0d36a8cee3b7da44cbda44ca1c472558f08092c0 (patch)
tree11f0c220d6cbfbc6f66465cd8a0b85795a753f5c /tools/gendata.js
parent48151c1953e7bde294622228a71c471bf6e4b1c6 (diff)
downloadalgeria-0d36a8cee3b7da44cbda44ca1c472558f08092c0.tar.gz
firepower and contact/evasion
Diffstat (limited to 'tools/gendata.js')
-rw-r--r--tools/gendata.js58
1 files changed, 29 insertions, 29 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 5413081..56df749 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -125,39 +125,39 @@ const BAND = 6
const CADRE = 7
const FRONT = 8
-function def_unit(side, type, name, klass, count = 1) {
+function def_unit(side, type, name, klass, evasion_contact, firepower, count = 1) {
for (let i = 0; i < count; ++i) {
- units.push({side, type, name, class: klass})
+ units.push({side, type, name, class: klass, evasion_contact, firepower})
}
}
-def_unit(GOV, FR_XX, "French 2nd division", "fr_xx_2")
-def_unit(GOV, FR_XX, "French 4th division", "fr_xx_4")
-def_unit(GOV, FR_XX, "French 9th division", "fr_xx_9")
-def_unit(GOV, FR_XX, "French 12th division", "fr_xx_12")
-def_unit(GOV, FR_XX, "French 13th division", "fr_xx_13")
-def_unit(GOV, FR_XX, "French 14th division", "fr_xx_14")
-def_unit(GOV, FR_XX, "French 19th division", "fr_xx_19")
-def_unit(GOV, FR_XX, "French 20th division", "fr_xx_20")
-def_unit(GOV, FR_XX, "French 21th division", "fr_xx_21")
-def_unit(GOV, FR_XX, "French 29th division", "fr_xx_29")
-
-def_unit(GOV, FR_XX, "French 27th division", "fr_xx_27")
-def_unit(GOV, FR_XX, "French 5th division", "fr_xx_5")
-def_unit(GOV, FR_XX, "French 7th division", "fr_xx_7") // rules errata: - The French light mechanized division (circle with slash through it) should be numbered "7", not "2"
-
-def_unit(GOV, FR_X, "French brigade", "fr_x", 4)
-def_unit(GOV, EL_X, "French elite brigade", "fr_elite_x_para", 3)
-def_unit(GOV, EL_X, "French elite brigade", "fr_elite_x_inf")
-def_unit(GOV, EL_X, "French elite brigade", "fr_elite_x_marine", 3)
-
-def_unit(GOV, AL_X, "Algerian brigade", "alg_x", 6)
-def_unit(GOV, POL, "Police", "alg_police", 10)
-
-def_unit(FLN, FAILEK, "Failek", "fln_failek", 10)
-def_unit(FLN, BAND, "Band", "fln_band", 24)
-def_unit(FLN, CADRE, "Cadre", "fln_cadre", 30)
-def_unit(FLN, FRONT, "Front", "fln_front", 16)
+def_unit(GOV, FR_XX, "French 2nd division", "fr_xx_2", 1, 25)
+def_unit(GOV, FR_XX, "French 4th division", "fr_xx_4", 1, 25)
+def_unit(GOV, FR_XX, "French 9th division", "fr_xx_9", 1, 25)
+def_unit(GOV, FR_XX, "French 12th division", "fr_xx_12", 1, 25)
+def_unit(GOV, FR_XX, "French 13th division", "fr_xx_13", 1, 25)
+def_unit(GOV, FR_XX, "French 14th division", "fr_xx_14", 1, 25)
+def_unit(GOV, FR_XX, "French 19th division", "fr_xx_19", 1, 25)
+def_unit(GOV, FR_XX, "French 20th division", "fr_xx_20", 1, 25)
+def_unit(GOV, FR_XX, "French 21th division", "fr_xx_21", 1, 25)
+def_unit(GOV, FR_XX, "French 29th division", "fr_xx_29", 1, 25)
+
+def_unit(GOV, FR_XX, "French 27th division", "fr_xx_27", 1, 25)
+def_unit(GOV, FR_XX, "French 5th division", "fr_xx_5", 1, 25)
+def_unit(GOV, FR_XX, "French 7th division", "fr_xx_7", 1, 25) // rules errata: - The French light mechanized division (circle with slash through it) should be numbered "7", not "2"
+
+def_unit(GOV, FR_X, "French brigade", "fr_x", 1, 6, 4)
+def_unit(GOV, EL_X, "French elite brigade", "fr_elite_x_para", 2, 9, 3)
+def_unit(GOV, EL_X, "French elite brigade", "fr_elite_x_inf", 2, 9)
+def_unit(GOV, EL_X, "French elite brigade", "fr_elite_x_marine", 2, 9, 3)
+
+def_unit(GOV, AL_X, "Algerian brigade", "alg_x", 1, 5, 6)
+def_unit(GOV, POL, "Police", "alg_police", 2, 2, 10)
+
+def_unit(FLN, FAILEK, "Failek", "fln_failek", 2, 4, 10)
+def_unit(FLN, BAND, "Band", "fln_band", 3, 2, 24)
+def_unit(FLN, CADRE, "Cadre", "fln_cadre", 4, 1, 30)
+def_unit(FLN, FRONT, "Front", "fln_front", 3, 3, 16)
console.log("const area_count =", areas.length)
console.log("const unit_count =", units.length)