summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.js2
-rw-r--r--tools/gendata.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/data.js b/data.js
index f05ab2d..096a71d 100644
--- a/data.js
+++ b/data.js
@@ -1,2 +1,2 @@
-const data = {"locations":{},"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":{"undefined":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},"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"},{"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"}]}
if (typeof module !== 'undefined') module.exports = data
diff --git a/tools/gendata.js b/tools/gendata.js
index 317c565..5413081 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -16,6 +16,7 @@ let next_location_id = 0
function def_area(id, name, type, zone, x, y, w, h) {
let loc = next_location_id++
+ locations[id] = loc
areas.push({loc, id, name, type, zone, x, y, w, h})
if (zone) {
if (!(zone in zone_areas)) {