From da0130446329b1419d54904e1ab43aebefbfd3de Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 13 Dec 2023 23:11:30 +0100 Subject: flip the star --- cards.css | 12 ++- create.html | 2 +- info/all-cards.html | 270 ++++++++++++++++++++++++++++++++++------------------ play.js | 5 +- tools/gendata.js | 5 +- 5 files changed, 194 insertions(+), 100 deletions(-) diff --git a/cards.css b/cards.css index 2c79bbb..f5cd39b 100644 --- a/cards.css +++ b/cards.css @@ -36,6 +36,11 @@ padding: 5px 0 5px 20px; } +.flip .dice_area .star { + float: left; + margin: 0 -48px 0 0; +} + .name.with_symbol { padding: 5px 0; } @@ -115,16 +120,17 @@ .dice_area::before { content: " ~ " } .dice_area::after { content: " ~ " } -.dice_area .star { +.star { position: absolute; right: 0px; - top: 0px; + top: 51px; font-size: 24px; line-height: 24px; + text-align: left; padding: 0 12px; } -.link.right + .dice_area .star { +.link.right + .star { right: 24px; } diff --git a/create.html b/create.html index e1bb4f4..ce909e8 100644 --- a/create.html +++ b/create.html @@ -11,7 +11,7 @@
-
+
diff --git a/info/all-cards.html b/info/all-cards.html index 4313c8a..fde4f84 100644 --- a/info/all-cards.html +++ b/info/all-cards.html @@ -100,7 +100,8 @@ h1{color: white}
Tiefenbach
4
-
(4)
+
+
(4)
Attack
@@ -146,7 +147,8 @@ h1{color: white}
Hohenlohe
6
-
5
+
+
5
Attack
@@ -640,7 +642,8 @@ h1{color: white}
Villars
6
-
5/6
+
+
5/6
Attack
@@ -722,7 +725,8 @@ h1{color: white}
Marlborough
6
-
(5)/(6)
+
+
(5)/(6)
Attack
Pair
@@ -880,7 +884,8 @@ h1{color: white}
Henri IV
6
-
5/6
+
+
5/6
Attack
@@ -947,7 +952,8 @@ h1{color: white}
Mayenne
6
-
5/6
+
+
5/6
Attack
@@ -965,7 +971,8 @@ h1{color: white}
Mercenaries
6
-
Triples
+
+
Triples
Attack
Triplet
@@ -1658,7 +1665,8 @@ h1{color: white}
Neville's Center
4
-
5/6
+
+
5/6
Attack
@@ -2510,7 +2518,8 @@ h1{color: white}
Somerset
6
-
5/6
+
+
5/6
Attack
@@ -2627,7 +2636,8 @@ h1{color: white}
Oxford
8
-
5/6
+
+
5/6
Attack
@@ -2879,7 +2889,8 @@ h1{color: white}
Ponthieu
4
-
5/6
+
+
5/6
Attack
@@ -2897,7 +2908,8 @@ h1{color: white}
Philip Augustus
6
-
3/4
+
+
3/4
Attack
@@ -2917,7 +2929,8 @@ h1{color: white}
Burgundy
4
-
5/6
+
+
5/6
Attack
@@ -2935,7 +2948,8 @@ h1{color: white}
French Knights
6
-
Doubles
+
+
Doubles
Attack
Pair
@@ -3062,7 +3076,8 @@ h1{color: white}
Left Phalanx
4
-
(1-3)
+
+
(1-3)
Attack
@@ -3081,7 +3096,8 @@ h1{color: white}
Center Phalanx
4
-
(2-4)
+
+
(2-4)
Attack
@@ -3100,7 +3116,8 @@ h1{color: white}
Right Phalanx
4
-
(3-5)
+
+
(3-5)
Attack
@@ -3386,7 +3403,8 @@ h1{color: white}
Left Phalanx
4
-
(2)/(3)
+
+
(2)/(3)
Attack
@@ -3405,7 +3423,8 @@ h1{color: white}
Center Phalanx
4
-
(3)/(4)
+
+
(3)/(4)
Attack
@@ -3424,7 +3443,8 @@ h1{color: white}
Right Phalanx
4
-
(4)/(5)
+
+
(4)/(5)
Attack
@@ -3578,7 +3598,8 @@ h1{color: white}
The Immortals
2
-
Doubles
+
+
Doubles
Attack
Pair
@@ -3629,7 +3650,8 @@ h1{color: white}
Left Phalanx
3
-
(1)/(2)
+
+
(1)/(2)
Attack
@@ -3648,7 +3670,8 @@ h1{color: white}
Center Phalanx
3
-
(2-4)
+
+
(2-4)
Attack
@@ -3667,7 +3690,8 @@ h1{color: white}
Right Phalanx
3
-
(4)/(5)
+
+
(4)/(5)
Attack
@@ -3686,7 +3710,8 @@ h1{color: white}
Hoplite Reserve
8
-
(6)
+
+
(6)
Absorb
Voluntary
@@ -3758,7 +3783,8 @@ h1{color: white}
Thessalians
4
-
5/6
+
+
5/6
Attack
@@ -3776,7 +3802,8 @@ h1{color: white}
Phalanx
6
-
(1-3)
+
+
(1-3)
Attack
@@ -3795,7 +3822,8 @@ h1{color: white}
Hoplites
6
-
(4-6)
+
+
(4-6)
Absorb
Voluntary
@@ -3809,7 +3837,8 @@ h1{color: white}
Hypaspists
4
-
(5)/(6)
+
+
(5)/(6)
Attack
@@ -3828,7 +3857,8 @@ h1{color: white}
Companions
4
-
Doubles
+
+
Doubles
Attack
Pair
@@ -3955,7 +3985,8 @@ h1{color: white}
Left Reserve
6
-
(6)
+
+
(6)
Counterattack
Pair
@@ -3969,7 +4000,8 @@ h1{color: white}
Right Reserve
6
-
(6)
+
+
(6)
Counterattack
Pair
@@ -3985,7 +4017,8 @@ h1{color: white}
Left Phalanx
3
-
(2)/(3)
+
+
(2)/(3)
Attack
@@ -4004,7 +4037,8 @@ h1{color: white}
Center Phalanx
4
-
(3)/(4)
+
+
(3)/(4)
Absorb
Voluntary
@@ -4018,7 +4052,8 @@ h1{color: white}
Right Phalanx
3
-
(4)/(5)
+
+
(4)/(5)
Attack
@@ -4259,7 +4294,8 @@ h1{color: white}
The Silver Shields
2
-
(5)/(6)
+
+
(5)/(6)
Attack
Pair
@@ -4351,7 +4387,8 @@ h1{color: white}
A. Phalanx
8
-
(4)/(5)
+
+
(4)/(5)
Attack
@@ -4431,7 +4468,8 @@ h1{color: white}
Antigonus
4
-
Doubles
+
+
Doubles
Screen
Pair
@@ -4612,7 +4650,8 @@ h1{color: white}
20th Maine
4
-
(5)/(6)
+
+
(5)/(6)
Attack
@@ -4650,7 +4689,8 @@ h1{color: white}
44th New York
4
-
(3)
+
+
(3)
Attack
@@ -4669,7 +4709,8 @@ h1{color: white}
16th Michigan
4
-
(2)
+
+
(2)
Attack
@@ -4701,7 +4742,8 @@ h1{color: white}
Weed's Brigade
8
-
Any
+
+
Any
Absorb
Voluntary
@@ -5637,7 +5679,8 @@ h1{color: white}
Greene's Left
3
-
6
+
+
6
Attack
@@ -5656,7 +5699,8 @@ h1{color: white}
Greene's Center
3
-
5
+
+
5
Attack
@@ -5675,7 +5719,8 @@ h1{color: white}
Greene's Right
3
-
4
+
+
4
Attack
@@ -5695,7 +5740,8 @@ h1{color: white}
Reserves
4
-
Doubles
+
+
Doubles
Absorb
Voluntary
@@ -5814,7 +5860,8 @@ h1{color: white}
Sickles
6
-
(5)
+
+
(5)
Attack
@@ -5833,7 +5880,8 @@ h1{color: white}
Hancock
8
-
(4)
+
+
(4)
Attack
@@ -5852,7 +5900,8 @@ h1{color: white}
Howard
6
-
(3)
+
+
(3)
Attack
@@ -5871,7 +5920,8 @@ h1{color: white}
Slocum
6
-
(2)
+
+
(2)
Attack
@@ -5890,7 +5940,8 @@ h1{color: white}
Sykes
4
-
Doubles
+
+
Doubles
Absorb
Voluntary
@@ -6281,7 +6332,8 @@ h1{color: white}
Fortescue
6
-
(3)/(4)
+
+
(3)/(4)
Attack
@@ -6319,7 +6371,8 @@ h1{color: white}
Essex
6
-
(5)/(6)
+
+
(5)/(6)
Attack
@@ -6338,7 +6391,8 @@ h1{color: white}
Stapleton
4
-
Doubles
+
+
Doubles
Attack
@@ -6356,7 +6410,8 @@ h1{color: white}
London Trained Bands
4
-
3/4
+
+
3/4
Attack
@@ -6777,7 +6832,8 @@ h1{color: white}
Bluecoats
4
-
5/6
+
+
5/6
Absorb
@@ -7414,7 +7470,8 @@ h1{color: white}
Pompey
6
-
(5)/(6)
+
+
(5)/(6)
Attack
@@ -7471,7 +7528,8 @@ h1{color: white}
Antony
4
-
5/6
+
+
5/6
Attack
@@ -7490,7 +7548,8 @@ h1{color: white}
Domitius
4
-
3/4
+
+
3/4
Attack
@@ -7509,7 +7568,8 @@ h1{color: white}
Sulla
4
-
(5)/(6)
+
+
(5)/(6)
Attack
@@ -7634,7 +7694,8 @@ h1{color: white}
Home Ridge
4
-
5/6
+
+
5/6
Attack
@@ -7672,7 +7733,8 @@ h1{color: white}
British Troops
4
-
1/2
+
+
1/2
Attack
@@ -7692,7 +7754,8 @@ h1{color: white}
French Troops
6
-
4-6
+
+
4-6
Attack
@@ -7729,7 +7792,8 @@ h1{color: white}
Gournay's Horse
4
-
5/6
+
+
5/6
Attack
@@ -7748,7 +7812,8 @@ h1{color: white}
French Left
6
-
3/4
+
+
3/4
Attack
@@ -7781,7 +7846,8 @@ h1{color: white}
French Center
6
-
1-3
+
+
1-3
Attack
@@ -7801,7 +7867,8 @@ h1{color: white}
French Right
6
-
3/4
+
+
3/4
Attack
@@ -7820,7 +7887,8 @@ h1{color: white}
Luxembourg's Horse
6
-
4-6
+
+
4-6
Attack
@@ -7917,7 +7985,8 @@ h1{color: white}
Waldeck
2
-
Doubles
+
+
Doubles
Absorb
Voluntary
@@ -8438,7 +8507,8 @@ h1{color: white}
Horn
5
-
(1)/(2)
+
+
(1)/(2)
Attack
@@ -8506,7 +8576,8 @@ h1{color: white}
Anhalt-Dessau
6
-
5/6
+
+
5/6
Attack
@@ -8559,7 +8630,8 @@ h1{color: white}
Lutzingen
4
-
(5)/(6)
+
+
(5)/(6)
Attack
@@ -8601,7 +8673,8 @@ h1{color: white}
4
-
1/2
+
+
1/2
Attack
@@ -8660,7 +8733,8 @@ h1{color: white}
6
-
4
+
+
4
Absorb
Voluntary
@@ -8886,7 +8960,8 @@ h1{color: white}
Guiscard
6
-
3/4
+
+
3/4
Attack
@@ -8926,7 +9001,8 @@ h1{color: white}
Dutch Garrison
6
-
5/6
+
+
5/6
Attack
@@ -8998,7 +9074,8 @@ h1{color: white}
Eugene
6
-
3/4
+
+
3/4
Attack
@@ -9291,7 +9368,8 @@ h1{color: white}
Charles
5
-
5/6
+
+
5/6
Command
Three Dice
@@ -9422,7 +9500,8 @@ h1{color: white}
Austrian Guns
6
-
(3)/(4)
+
+
(3)/(4)
Attack
@@ -9443,7 +9522,8 @@ h1{color: white}
Graner-Koppe
8
-
5/6
+
+
5/6
Attack
@@ -9637,7 +9717,8 @@ h1{color: white}
Frederick
6
-
1/2
+
+
1/2
Attack
@@ -9913,7 +9994,8 @@ h1{color: white}
Left Foot
6
-
3/4
+
+
3/4
Attack
@@ -9933,7 +10015,8 @@ h1{color: white}
Right Foot
6
-
5/6
+
+
5/6
Attack
@@ -10024,7 +10107,8 @@ h1{color: white}
Charles Lorraine
6
-
5/6
+
+
5/6
Command
Two Pairs
@@ -10107,7 +10191,8 @@ h1{color: white}
Breysach
6
-
5/6
+
+
5/6
Attack
@@ -10149,7 +10234,8 @@ h1{color: white}
Althann
4
-
5/6
+
+
5/6
Attack
@@ -10221,7 +10307,8 @@ h1{color: white}
Nadasdy
8
-
1/2
+
+
1/2
Attack
@@ -10241,7 +10328,8 @@ h1{color: white}
Kheul
8
-
3/4
+
+
3/4
Attack
@@ -10261,7 +10349,8 @@ h1{color: white}
Esterhazy
8
-
5/6
+
+
5/6
Attack
@@ -10536,7 +10625,8 @@ h1{color: white}
8
-
5/6
+
+
5/6
Attack
diff --git a/play.js b/play.js index 5b5566e..436dce6 100644 --- a/play.js +++ b/play.js @@ -179,9 +179,8 @@ function create_formation_card(id) { if (card.dice) { if (card.morale === 2) - append_div(e, "dice_area", card.dice + '
') - else - append_div(e, "dice_area", card.dice) + append_div(e, "star", '★') + append_div(e, "dice_area", card.dice) } function create_action(a, ix) { diff --git a/tools/gendata.js b/tools/gendata.js index 1e73c07..283449d 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -117,9 +117,8 @@ for (let c of card_records) { if (c.dice) { if (card.morale === 2) - result.push(`
${c.dice}
`) - else - result.push(`
${c.dice}
`) + result.push(`
`) + result.push(`
${c.dice}
`) } function make_action(type, requirement, target, effect) { -- cgit v1.2.3