summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-22 10:50:56 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-22 22:02:58 +0200
commitf325e1673fa843d06e47ef1ce558ea6606b3c92b (patch)
tree12c98696bcc3240726a13df4c8b1fa742f847ef3 /tools
parenteb9f45cf055f9f9823eed3aeaefada74f6d07454 (diff)
downloadwashingtons-war-f325e1673fa843d06e47ef1ce558ea6606b3c92b.tar.gz
Space ordering.
Diffstat (limited to 'tools')
-rw-r--r--tools/layout.json24
-rw-r--r--tools/layout.svg16
-rw-r--r--tools/process-layout.js2
3 files changed, 22 insertions, 20 deletions
diff --git a/tools/layout.json b/tools/layout.json
index 8e0bc12..e2c4c2d 100644
--- a/tools/layout.json
+++ b/tools/layout.json
@@ -642,18 +642,18 @@
"name": "French Reinforcements"
},
{
- "x": 542,
- "y": 332,
- "w": 88,
- "h": 104,
- "name": "Continental Congress Dispersed"
- },
- {
"x": 1400,
"y": 46,
"w": 205,
"h": 136,
"name": "Captured Generals"
+ },
+ {
+ "x": 542,
+ "y": 332,
+ "w": 88,
+ "h": 104,
+ "name": "Continental Congress Dispersed"
}
],
"Card Boxes": [
@@ -1287,14 +1287,14 @@
"name": "French Reinforcements"
},
{
- "x": 586,
- "y": 384,
- "name": "Continental Congress Dispersed"
- },
- {
"x": 1502.5,
"y": 114,
"name": "Captured Generals"
+ },
+ {
+ "x": 586,
+ "y": 384,
+ "name": "Continental Congress Dispersed"
}
],
"Card Boxes": [
diff --git a/tools/layout.svg b/tools/layout.svg
index aded2e6..629e3c4 100644
--- a/tools/layout.svg
+++ b/tools/layout.svg
@@ -775,14 +775,6 @@
y="258"
inkscape:label="French Reinforcements" />
<rect
- style="opacity:1;fill:#000000;fill-opacity:0.46748;stroke:none;stroke-width:3"
- id="rect1606"
- width="88"
- height="104"
- x="542"
- y="332"
- inkscape:label="Continental Congress Dispersed" />
- <rect
style="opacity:0.99;fill:#ff0000;fill-opacity:0.46748;stroke:none;stroke-width:3.23342"
id="rect1094"
width="205"
@@ -790,6 +782,14 @@
x="1400"
y="46"
inkscape:label="Captured Generals" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:0.46748;stroke:none;stroke-width:3"
+ id="rect1606"
+ width="88"
+ height="104"
+ x="542"
+ y="332"
+ inkscape:label="Continental Congress Dispersed" />
</g>
<g
id="g607"
diff --git a/tools/process-layout.js b/tools/process-layout.js
index 6de0844..2d19c04 100644
--- a/tools/process-layout.js
+++ b/tools/process-layout.js
@@ -95,6 +95,8 @@ for (let item of layout.points.box)
const TYPE_SORT = [ "fortified_port", "winter_quarters", "regular", "box" ]
spaces.sort((a,b) => {
+ if (a.type === "box" && b.type === "box")
+ return 0
let at = TYPE_SORT.indexOf(a.type)
let bt = TYPE_SORT.indexOf(b.type)
if (at < bt) return -1