summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.js2
-rw-r--r--tools/gendata.js58
2 files changed, 30 insertions, 30 deletions
diff --git a/data.js b/data.js
index 096a71d..4969abc 100644
--- a/data.js
+++ b/data.js
@@ -1,2 +1,2 @@
-const data = {"locations":{"NONE":0,"DEPLOY":1,"ELIMINATED":2,"FRANCE":3,"TUNISIA":4,"MOROCCO":5,"I-1":6,"I-2":7,"I-3":8,"I-4":9,"CONSTANTINE":10,"II-1":11,"II-2":12,"II-3":13,"III-1":14,"III-2":15,"III-3":16,"ALGIERS":17,"IV-1":18,"IV-2":19,"ORAN":20,"V-1":21,"V-2":22,"V-3":23,"V-4":24,"V-5":25,"V-6":26,"V-7":27,"V-8":28,"VI-1":29,"VI-2":30},"areas":[{"loc":0,"id":"NONE","name":"None"},{"loc":1,"id":"DEPLOY","name":"Deployment"},{"loc":2,"id":"ELIMINATED","name":"Eliminated"},{"loc":3,"id":"FRANCE","name":"France","type":4,"zone":null,"x":1690.3,"y":244.8,"w":94,"h":94},{"loc":4,"id":"TUNISIA","name":"Tunisia","type":4,"zone":"TUNISIA","x":2499.9,"y":1667.6,"w":94,"h":94},{"loc":5,"id":"MOROCCO","name":"Morocco","type":4,"zone":"MOROCCO","x":109,"y":1765,"w":94,"h":94},{"loc":6,"id":"I-1","name":"Barika","type":1,"zone":"I","x":1708.1,"y":1117.9},{"loc":7,"id":"I-2","name":"Batna","type":3,"zone":"I","x":2185.6,"y":1390.9},{"loc":8,"id":"I-3","name":"Biskra","type":3,"zone":"I","x":1853.6,"y":1620.9},{"loc":9,"id":"I-4","name":"Tebessa","type":1,"zone":"I","x":2299.6,"y":1120.9},{"loc":10,"id":"CONSTANTINE","name":"Constantine","type":2,"zone":"II","x":2066.6,"y":315.8},{"loc":11,"id":"II-1","name":"Setif","type":1,"zone":"II","x":1917.6,"y":800.8},{"loc":12,"id":"II-2","name":"Phillippeville","type":1,"zone":"II","x":2200.6,"y":584.9},{"loc":13,"id":"II-3","name":"Souk Ahras","type":1,"zone":"II","x":2347.6,"y":848.9},{"loc":14,"id":"III-1","name":"Tizi Ouzou","type":1,"zone":"III","x":1473.6,"y":578.9},{"loc":15,"id":"III-2","name":"Bordj Bou Arreridj","type":1,"zone":"III","x":1465.6,"y":832.9},{"loc":16,"id":"III-3","name":"Bougie","type":1,"zone":"III","x":1703.6,"y":616.9},{"loc":17,"id":"ALGIERS","name":"Algiers","type":2,"zone":"IV","x":1185.6,"y":346.8},{"loc":18,"id":"IV-1","name":"Medea","type":1,"zone":"IV","x":1212,"y":727},{"loc":19,"id":"IV-2","name":"Orleansville","type":1,"zone":"IV","x":982,"y":780.2},{"loc":20,"id":"ORAN","name":"Oran","type":2,"zone":"V","x":430.6,"y":588.8},{"loc":21,"id":"V-1","name":"Mecheria","type":3,"zone":"V","x":234,"y":1485.7},{"loc":22,"id":"V-2","name":"Tlemcen","type":1,"zone":"V","x":173,"y":1140.9},{"loc":23,"id":"V-3","name":"Sidi Bel Abbes","type":1,"zone":"V","x":476,"y":1038},{"loc":24,"id":"V-4","name":"Mostaganem","type":1,"zone":"V","x":741,"y":863.9},{"loc":25,"id":"V-5","name":"Saida","type":3,"zone":"V","x":501,"y":1419.1},{"loc":26,"id":"V-6","name":"Mascara","type":3,"zone":"V","x":785,"y":1302.9},{"loc":27,"id":"V-7","name":"Ain Sefra","type":3,"zone":"V","x":752,"y":1670.9},{"loc":28,"id":"V-8","name":"Laghouat","type":3,"zone":"V","x":1191,"y":1615.6},{"loc":29,"id":"VI-1","name":"Sidi Aissa","type":3,"zone":"VI","x":1385,"y":1186},{"loc":30,"id":"VI-2","name":"Ain Qussera","type":1,"zone":"VI","x":1070.6,"y":1235.6}],"zone_areas":{"TUNISIA":[4],"MOROCCO":[5],"I":[6,7,8,9],"II":[10,11,12,13],"III":[14,15,16],"IV":[17,18,19],"V":[20,21,22,23,24,25,26,27,28],"VI":[29,30]},"adjecents":{"4":[7,8,9,13],"5":[21,22,27],"6":[11,15,29],"7":[4],"8":[4,28,29],"9":[4,11,12,13],"11":[6,9,15,16],"12":[9],"13":[4,9],"14":[18],"15":[6,11,18,29],"16":[11],"18":[14,15,29,30],"19":[24,30],"21":[5],"22":[5],"24":[19,30],"26":[30],"27":[5],"28":[8,29,30],"29":[6,8,15,18,28],"30":[18,19,24,26,28]},"units":[{"side":1,"type":0,"name":"French 2nd division","class":"fr_xx_2"},{"side":1,"type":0,"name":"French 4th division","class":"fr_xx_4"},{"side":1,"type":0,"name":"French 9th division","class":"fr_xx_9"},{"side":1,"type":0,"name":"French 12th division","class":"fr_xx_12"},{"side":1,"type":0,"name":"French 13th division","class":"fr_xx_13"},{"side":1,"type":0,"name":"French 14th division","class":"fr_xx_14"},{"side":1,"type":0,"name":"French 19th division","class":"fr_xx_19"},{"side":1,"type":0,"name":"French 20th division","class":"fr_xx_20"},{"side":1,"type":0,"name":"French 21th division","class":"fr_xx_21"},{"side":1,"type":0,"name":"French 29th division","class":"fr_xx_29"},{"side":1,"type":0,"name":"French 27th division","class":"fr_xx_27"},{"side":1,"type":0,"name":"French 5th division","class":"fr_xx_5"},{"side":1,"type":0,"name":"French 7th division","class":"fr_xx_7"},{"side":1,"type":1,"name":"French brigade","class":"fr_x"},{"side":1,"type":1,"name":"French brigade","class":"fr_x"},{"side":1,"type":1,"name":"French brigade","class":"fr_x"},{"side":1,"type":1,"name":"French brigade","class":"fr_x"},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_para"},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_para"},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_para"},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_inf"},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_marine"},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_marine"},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_marine"},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x"},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x"},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x"},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x"},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x"},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":1,"type":4,"name":"Police","class":"alg_police"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":5,"name":"Failek","class":"fln_failek"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":6,"name":"Band","class":"fln_band"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"},{"side":0,"type":8,"name":"Front","class":"fln_front"}]}
+const data = {"locations":{"NONE":0,"DEPLOY":1,"ELIMINATED":2,"FRANCE":3,"TUNISIA":4,"MOROCCO":5,"I-1":6,"I-2":7,"I-3":8,"I-4":9,"CONSTANTINE":10,"II-1":11,"II-2":12,"II-3":13,"III-1":14,"III-2":15,"III-3":16,"ALGIERS":17,"IV-1":18,"IV-2":19,"ORAN":20,"V-1":21,"V-2":22,"V-3":23,"V-4":24,"V-5":25,"V-6":26,"V-7":27,"V-8":28,"VI-1":29,"VI-2":30},"areas":[{"loc":0,"id":"NONE","name":"None"},{"loc":1,"id":"DEPLOY","name":"Deployment"},{"loc":2,"id":"ELIMINATED","name":"Eliminated"},{"loc":3,"id":"FRANCE","name":"France","type":4,"zone":null,"x":1690.3,"y":244.8,"w":94,"h":94},{"loc":4,"id":"TUNISIA","name":"Tunisia","type":4,"zone":"TUNISIA","x":2499.9,"y":1667.6,"w":94,"h":94},{"loc":5,"id":"MOROCCO","name":"Morocco","type":4,"zone":"MOROCCO","x":109,"y":1765,"w":94,"h":94},{"loc":6,"id":"I-1","name":"Barika","type":1,"zone":"I","x":1708.1,"y":1117.9},{"loc":7,"id":"I-2","name":"Batna","type":3,"zone":"I","x":2185.6,"y":1390.9},{"loc":8,"id":"I-3","name":"Biskra","type":3,"zone":"I","x":1853.6,"y":1620.9},{"loc":9,"id":"I-4","name":"Tebessa","type":1,"zone":"I","x":2299.6,"y":1120.9},{"loc":10,"id":"CONSTANTINE","name":"Constantine","type":2,"zone":"II","x":2066.6,"y":315.8},{"loc":11,"id":"II-1","name":"Setif","type":1,"zone":"II","x":1917.6,"y":800.8},{"loc":12,"id":"II-2","name":"Phillippeville","type":1,"zone":"II","x":2200.6,"y":584.9},{"loc":13,"id":"II-3","name":"Souk Ahras","type":1,"zone":"II","x":2347.6,"y":848.9},{"loc":14,"id":"III-1","name":"Tizi Ouzou","type":1,"zone":"III","x":1473.6,"y":578.9},{"loc":15,"id":"III-2","name":"Bordj Bou Arreridj","type":1,"zone":"III","x":1465.6,"y":832.9},{"loc":16,"id":"III-3","name":"Bougie","type":1,"zone":"III","x":1703.6,"y":616.9},{"loc":17,"id":"ALGIERS","name":"Algiers","type":2,"zone":"IV","x":1185.6,"y":346.8},{"loc":18,"id":"IV-1","name":"Medea","type":1,"zone":"IV","x":1212,"y":727},{"loc":19,"id":"IV-2","name":"Orleansville","type":1,"zone":"IV","x":982,"y":780.2},{"loc":20,"id":"ORAN","name":"Oran","type":2,"zone":"V","x":430.6,"y":588.8},{"loc":21,"id":"V-1","name":"Mecheria","type":3,"zone":"V","x":234,"y":1485.7},{"loc":22,"id":"V-2","name":"Tlemcen","type":1,"zone":"V","x":173,"y":1140.9},{"loc":23,"id":"V-3","name":"Sidi Bel Abbes","type":1,"zone":"V","x":476,"y":1038},{"loc":24,"id":"V-4","name":"Mostaganem","type":1,"zone":"V","x":741,"y":863.9},{"loc":25,"id":"V-5","name":"Saida","type":3,"zone":"V","x":501,"y":1419.1},{"loc":26,"id":"V-6","name":"Mascara","type":3,"zone":"V","x":785,"y":1302.9},{"loc":27,"id":"V-7","name":"Ain Sefra","type":3,"zone":"V","x":752,"y":1670.9},{"loc":28,"id":"V-8","name":"Laghouat","type":3,"zone":"V","x":1191,"y":1615.6},{"loc":29,"id":"VI-1","name":"Sidi Aissa","type":3,"zone":"VI","x":1385,"y":1186},{"loc":30,"id":"VI-2","name":"Ain Qussera","type":1,"zone":"VI","x":1070.6,"y":1235.6}],"zone_areas":{"TUNISIA":[4],"MOROCCO":[5],"I":[6,7,8,9],"II":[10,11,12,13],"III":[14,15,16],"IV":[17,18,19],"V":[20,21,22,23,24,25,26,27,28],"VI":[29,30]},"adjecents":{"4":[7,8,9,13],"5":[21,22,27],"6":[11,15,29],"7":[4],"8":[4,28,29],"9":[4,11,12,13],"11":[6,9,15,16],"12":[9],"13":[4,9],"14":[18],"15":[6,11,18,29],"16":[11],"18":[14,15,29,30],"19":[24,30],"21":[5],"22":[5],"24":[19,30],"26":[30],"27":[5],"28":[8,29,30],"29":[6,8,15,18,28],"30":[18,19,24,26,28]},"units":[{"side":1,"type":0,"name":"French 2nd division","class":"fr_xx_2","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 4th division","class":"fr_xx_4","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 9th division","class":"fr_xx_9","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 12th division","class":"fr_xx_12","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 13th division","class":"fr_xx_13","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 14th division","class":"fr_xx_14","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 19th division","class":"fr_xx_19","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 20th division","class":"fr_xx_20","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 21th division","class":"fr_xx_21","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 29th division","class":"fr_xx_29","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 27th division","class":"fr_xx_27","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 5th division","class":"fr_xx_5","evasion_contact":1,"firepower":25},{"side":1,"type":0,"name":"French 7th division","class":"fr_xx_7","evasion_contact":1,"firepower":25},{"side":1,"type":1,"name":"French brigade","class":"fr_x","evasion_contact":1,"firepower":6},{"side":1,"type":1,"name":"French brigade","class":"fr_x","evasion_contact":1,"firepower":6},{"side":1,"type":1,"name":"French brigade","class":"fr_x","evasion_contact":1,"firepower":6},{"side":1,"type":1,"name":"French brigade","class":"fr_x","evasion_contact":1,"firepower":6},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_para","evasion_contact":2,"firepower":9},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_para","evasion_contact":2,"firepower":9},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_para","evasion_contact":2,"firepower":9},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_inf","evasion_contact":2,"firepower":9},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_marine","evasion_contact":2,"firepower":9},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_marine","evasion_contact":2,"firepower":9},{"side":1,"type":2,"name":"French elite brigade","class":"fr_elite_x_marine","evasion_contact":2,"firepower":9},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x","evasion_contact":1,"firepower":5},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x","evasion_contact":1,"firepower":5},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x","evasion_contact":1,"firepower":5},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x","evasion_contact":1,"firepower":5},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x","evasion_contact":1,"firepower":5},{"side":1,"type":3,"name":"Algerian brigade","class":"alg_x","evasion_contact":1,"firepower":5},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":1,"type":4,"name":"Police","class":"alg_police","evasion_contact":2,"firepower":2},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":5,"name":"Failek","class":"fln_failek","evasion_contact":2,"firepower":4},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":6,"name":"Band","class":"fln_band","evasion_contact":3,"firepower":2},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":7,"name":"Cadre","class":"fln_cadre","evasion_contact":4,"firepower":1},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3},{"side":0,"type":8,"name":"Front","class":"fln_front","evasion_contact":3,"firepower":3}]}
if (typeof module !== 'undefined') module.exports = data
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)