summaryrefslogtreecommitdiff
path: root/tools/parse-layout.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-03-18 01:49:50 +0100
committerTor Andersson <tor@ccxvii.net>2024-03-18 01:49:50 +0100
commitcae8ab64a49d0408be0f1daf974334768dc09b56 (patch)
tree8c42fd0cfc245e38dca77afbf3c8e660b3cafef2 /tools/parse-layout.js
parent0866e80e2efe47317279b0d9d038f9401501945c (diff)
downloadmaria-cae8ab64a49d0408be0f1daf974334768dc09b56.tar.gz
layout
Diffstat (limited to 'tools/parse-layout.js')
-rw-r--r--tools/parse-layout.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/parse-layout.js b/tools/parse-layout.js
index 8cf2a9f..5ee91c7 100644
--- a/tools/parse-layout.js
+++ b/tools/parse-layout.js
@@ -238,8 +238,8 @@ let cities = []
for (let key in points) {
for (let [x, y] of points[key]) {
let [ node, dist ] = find_closest_node(labels, x, y)
- if (dist > 10) {
- console.log(key,x,y, dist)
+ if (dist > 15) {
+ console.log(key,x,y, dist, node.name)
}
if (node) {
labels = labels.filter(x => x !== node)
@@ -375,6 +375,7 @@ let sets = {
major_fortress: [],
minor_fortress: [],
city: [],
+ box: [],
},
suit: {
clubs: [],
@@ -385,6 +386,7 @@ let sets = {
map: {
Flanders: [],
Bohemia: [],
+ UNKNOWN: [],
},
country: {
Austria: [],
@@ -396,6 +398,7 @@ let sets = {
Saxony: [],
Silesia: [],
HRE: [],
+ UNKNOWN: [],
},
}