diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-15 00:16:15 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 880660b69fbd90b39d5d35b56fa80a12543b704e (patch) | |
tree | 56844b3f9944285769ee2ccb841aaf3894d999bb | |
parent | d0ba4e8521279c815368a6a1bf3ecbe6bf6fcd7f (diff) | |
download | table-battles-880660b69fbd90b39d5d35b56fa80a12543b704e.tar.gz |
Hohenfriedberg - fix card order. Blenheim only 2x on direct attack.
-rw-r--r-- | data.js | 74 | ||||
-rw-r--r-- | info/all-cards.html | 44 | ||||
-rw-r--r-- | rules.js | 29 | ||||
-rw-r--r-- | tools/cards.csv | 8 |
4 files changed, 78 insertions, 77 deletions
@@ -16414,18 +16414,18 @@ cards: [ { "scenario": 44, "number": "267A", - "name": "Leopold's Right", + "name": "Leopold's Left", "wing": 3, "morale": 1, "strength": 6, - "dice": "1/2", + "dice": "5/6", "actions": [ { "type": "Attack", - "target": "Weissenfels, Lorraine's Left", + "target": "Lorraine's Right, Lorraine's Left", "effect": "1 hit per die. 1 self per action.", "target_list": [ - 537, + 539, 538, 536 ] @@ -16433,10 +16433,11 @@ cards: [ { "type": "Counterattack", "requirement": "Pair", - "target": "Weissenfels", + "target": "Lorraine's Right, Lorraine's Left", "effect": "1 hit.", "target_list": [ - 537, + 539, + 538, 536 ] } @@ -16444,7 +16445,7 @@ cards: [ "squeeze": 1, "infantry": 1, "link": [ - 528 + 530 ], "rule_text": "If neither target is in play, may attack Charles and suffers no self hits.", "reserve": "Commanded" @@ -16492,18 +16493,18 @@ cards: [ { "scenario": 44, "number": "269A", - "name": "Leopold's Left", + "name": "Leopold's Right", "wing": 3, "morale": 1, "strength": 6, - "dice": "5/6", + "dice": "1/2", "actions": [ { "type": "Attack", - "target": "Lorraine's Right, Lorraine's Left", + "target": "Weissenfels, Lorraine's Left", "effect": "1 hit per die. 1 self per action.", "target_list": [ - 539, + 537, 538, 536 ] @@ -16511,11 +16512,10 @@ cards: [ { "type": "Counterattack", "requirement": "Pair", - "target": "Lorraine's Right, Lorraine's Left", + "target": "Weissenfels", "effect": "1 hit.", "target_list": [ - 539, - 538, + 537, 536 ] } @@ -16523,7 +16523,7 @@ cards: [ "squeeze": 1, "infantry": 1, "link": [ - 532 + 530 ], "rule_text": "If neither target is in play, may attack Charles and suffers no self hits.", "reserve": "Commanded" @@ -16531,11 +16531,11 @@ cards: [ { "scenario": 44, "number": "270A", - "name": "Nassau", + "name": "Zieten", "wing": 2, "morale": 1, - "strength": 6, - "dice": "3/4", + "strength": 4, + "dice": "4-6", "actions": [ { "type": "Attack", @@ -16546,10 +16546,9 @@ cards: [ ] }, { - "type": "Counterattack", + "type": "Screen", "requirement": "Pair", "target": "Austrian Horse", - "effect": "1 hit.", "target_list": [ 540 ] @@ -16557,18 +16556,18 @@ cards: [ ], "cavalry": 1, "link": [ - 531 + 533 ], "reserve": "Commanded" }, { "scenario": 44, "number": "271A", - "name": "Zieten", + "name": "Nassau", "wing": 2, "morale": 1, - "strength": 4, - "dice": "4-6", + "strength": 6, + "dice": "3/4", "actions": [ { "type": "Attack", @@ -16579,9 +16578,10 @@ cards: [ ] }, { - "type": "Screen", + "type": "Counterattack", "requirement": "Pair", "target": "Austrian Horse", + "effect": "1 hit.", "target_list": [ 540 ] @@ -16589,7 +16589,7 @@ cards: [ ], "cavalry": 1, "link": [ - 534 + 532 ], "reserve": "Commanded" }, @@ -16639,7 +16639,7 @@ cards: [ "requirement": "Pair", "target": "Leopold's Right", "target_list": [ - 529 + 531 ] } ], @@ -16690,7 +16690,7 @@ cards: [ "target": "Leopold's Right", "effect": "1 hit per die. 1 self per action.", "target_list": [ - 529 + 531 ] }, { @@ -16699,7 +16699,7 @@ cards: [ "target": "Leopold's Right", "effect": "1 hit.", "target_list": [ - 529 + 531 ] } ], @@ -16724,7 +16724,7 @@ cards: [ "effect": "1 hit per die. 1 self per action.", "target_list": [ 530, - 531 + 529 ] }, { @@ -16734,7 +16734,7 @@ cards: [ "effect": "1 hit.", "target_list": [ 530, - 531 + 529 ] } ], @@ -16759,7 +16759,7 @@ cards: [ "target": "Leopold's Left, Leopold's Center", "effect": "1 hit per die. 1 self per action.", "target_list": [ - 531, + 529, 530 ] }, @@ -16769,7 +16769,7 @@ cards: [ "target": "Leopold's Left, Leopold's Center", "effect": "1 hit.", "target_list": [ - 531, + 529, 530 ] } @@ -16795,8 +16795,8 @@ cards: [ "target": "Nassau, Leopold's Left", "effect": "1 hit per die.", "target_list": [ - 532, - 531 + 533, + 529 ] }, { @@ -16804,8 +16804,8 @@ cards: [ "target": "Nassau or Zieten", "effect": "1 hit.", "target_list": [ - 532, - 533 + 533, + 532 ] } ], diff --git a/info/all-cards.html b/info/all-cards.html index 98436db..76aca82 100644 --- a/info/all-cards.html +++ b/info/all-cards.html @@ -9795,21 +9795,21 @@ h1{color: white} </div> <img class="ref" height="338" src="/table-battles/ref2/sliced/card_A260.jpg"> <div class="formation card squeeze1"> -<div class="name with_symbol dkblue">Leopold's Right</div> +<div class="name with_symbol dkblue">Leopold's Left</div> <div class="symbol infantry"></div> <div class="strength">6</div> -<div class="link left"></div> -<div class="dice_area">1/2</div> +<div class="link right"></div> +<div class="dice_area">5/6</div> <div class="action_row"> <div class="action_type">Attack</div> <div class="action_requirement"></div> -<div class="action_target">Weissenfels, Lorraine's Left</div> +<div class="action_target">Lorraine's Right, Lorraine's Left</div> <div class="action_effect">1 hit per die. 1 self per action.</div> </div> <div class="action_row"> <div class="action_type reaction">Counterattack</div> <div class="action_requirement">Pair</div> -<div class="action_target">Weissenfels</div> +<div class="action_target">Lorraine's Right, Lorraine's Left</div> <div class="action_effect">1 hit.</div> </div> <div class="rule_text">If neither target is in play, may attack Charles and suffers no self hits.</div> @@ -9844,21 +9844,21 @@ h1{color: white} </div> <img class="ref" height="338" src="/table-battles/ref2/sliced/card_A262.jpg"> <div class="formation card squeeze1"> -<div class="name with_symbol dkblue">Leopold's Left</div> +<div class="name with_symbol dkblue">Leopold's Right</div> <div class="symbol infantry"></div> <div class="strength">6</div> -<div class="link right"></div> -<div class="dice_area">5/6</div> +<div class="link left"></div> +<div class="dice_area">1/2</div> <div class="action_row"> <div class="action_type">Attack</div> <div class="action_requirement"></div> -<div class="action_target">Lorraine's Right, Lorraine's Left</div> +<div class="action_target">Weissenfels, Lorraine's Left</div> <div class="action_effect">1 hit per die. 1 self per action.</div> </div> <div class="action_row"> <div class="action_type reaction">Counterattack</div> <div class="action_requirement">Pair</div> -<div class="action_target">Lorraine's Right, Lorraine's Left</div> +<div class="action_target">Weissenfels</div> <div class="action_effect">1 hit.</div> </div> <div class="rule_text">If neither target is in play, may attack Charles and suffers no self hits.</div> @@ -9868,11 +9868,11 @@ h1{color: white} </div> <img class="ref" height="338" src="/table-battles/ref2/sliced/card_A263.jpg"> <div class="formation card"> -<div class="name with_symbol blue">Nassau</div> +<div class="name with_symbol blue">Zieten</div> <div class="symbol cavalry"></div> -<div class="strength">6</div> -<div class="link left"></div> -<div class="dice_area">3/4</div> +<div class="strength">4</div> +<div class="link right"></div> +<div class="dice_area">4-6</div> <div class="action_row"> <div class="action_type">Attack</div> <div class="action_requirement"></div> @@ -9880,10 +9880,9 @@ h1{color: white} <div class="action_effect">1 hit per die. 1 self per action.</div> </div> <div class="action_row"> -<div class="action_type reaction">Counterattack</div> +<div class="action_type reaction">Screen</div> <div class="action_requirement">Pair</div> <div class="action_target">Austrian Horse</div> -<div class="action_effect">1 hit.</div> </div> <div class="reserve">IN RESERVE (Commanded)</div> <div class="number">270A</div> @@ -9891,11 +9890,11 @@ h1{color: white} </div> <img class="ref" height="338" src="/table-battles/ref2/sliced/card_A264.jpg"> <div class="formation card"> -<div class="name with_symbol blue">Zieten</div> +<div class="name with_symbol blue">Nassau</div> <div class="symbol cavalry"></div> -<div class="strength">4</div> -<div class="link right"></div> -<div class="dice_area">4-6</div> +<div class="strength">6</div> +<div class="link left"></div> +<div class="dice_area">3/4</div> <div class="action_row"> <div class="action_type">Attack</div> <div class="action_requirement"></div> @@ -9903,9 +9902,10 @@ h1{color: white} <div class="action_effect">1 hit per die. 1 self per action.</div> </div> <div class="action_row"> -<div class="action_type reaction">Screen</div> +<div class="action_type reaction">Counterattack</div> <div class="action_requirement">Pair</div> <div class="action_target">Austrian Horse</div> +<div class="action_effect">1 hit.</div> </div> <div class="reserve">IN RESERVE (Commanded)</div> <div class="number">271A</div> @@ -11403,4 +11403,4 @@ h1{color: white} <div class="number">303B</div> <div class="extra">♦</div> </div> -<img class="ref" height="338" src="/table-battles/ref2/sliced/card_B297.jpg"> +<img class="ref" height="338" src="/table-battles/ref2/sliced/card_B297.jpg">
\ No newline at end of file @@ -2176,12 +2176,12 @@ function goto_attack(target) { game.state = "attack" game.target = target - update_attack1() + update_attack1(false) update_attack2() } // Update hits and self hits. -function update_attack1() { +function update_attack1(reaction) { let a = current_action() game.hits = get_attack_hits(game.selected, a) @@ -2257,14 +2257,15 @@ function update_attack1() { } if (game.scenario === S41_BLENHEIM_SCENARIO) { - // TODO: Original attack only, or also when Blenheim absorbs from Clerambault? - if (game.selected === S41_CUTTS_COLUMN && game.target === S41_BLENHEIM_CARD) - game.hits *= 2 + if (!reaction) + if (game.selected === S41_CUTTS_COLUMN && game.target === S41_BLENHEIM_CARD) + game.hits *= 2 } if (game.scenario === S43_DENAIN) { - if (game.selected === S43_DUTCH_HORSE && game.target === S43_VILLARS_LEFT) - game.hits *= 2 + if (!reaction) + if (game.selected === S43_DUTCH_HORSE && game.target === S43_VILLARS_LEFT) + game.hits *= 2 } if (game.scenario === S44_HOTHENFRIEDBERG) { @@ -2369,7 +2370,7 @@ states.attack = { let may_take_from = card_has_rule(game.selected, "may_take_from") if (may_take_from) { take_all_dice(from, game.selected) - update_attack1() + update_attack1(false) update_attack2() return } @@ -2378,7 +2379,7 @@ states.attack = { if (may_take_from_extra) { take_all_dice(from, game.selected) game.self2 = 1 - update_attack1() + update_attack1(false) update_attack2() return } @@ -2387,7 +2388,7 @@ states.attack = { if (game.selected === S39_CATINAT && from === S39_BAYONETS) { take_all_dice(from, game.selected) game.target2 = S39_BAYONETS - update_attack1() + update_attack1(false) update_attack2() return } @@ -2665,7 +2666,7 @@ function goto_screen(c, a) { game.target = c - update_attack1() + update_attack1(true) switch (a.effect) { @@ -2719,7 +2720,7 @@ function goto_absorb(c, a) { game.target = c - update_attack1() + update_attack1(true) switch (a.effect) { @@ -2758,7 +2759,7 @@ states.s29_meade = { card(c) { remove_dice(S29_MEADE) game.target = c - update_attack1() + update_attack1(true) update_attack2() game.state = "absorb" } @@ -2781,7 +2782,7 @@ states.absorb = { function goto_counterattack(c, a) { game.reacted = player_index() - update_attack1() + update_attack1(true) switch (a.effect) { diff --git a/tools/cards.csv b/tools/cards.csv index c68b29f..036958e 100644 --- a/tools/cards.csv +++ b/tools/cards.csv @@ -637,11 +637,11 @@ HOTHENFRIEDBERG,,,,,,,,,,,,,,,,,,,, 44,264A,dkblue,The Striegau River,,,III,Doubles,,,Command,Three Cubes,Frederick II out of reserve,,,,,,,,The bridge at the Striegau River created a bottleneck for Frederick's columns.
44,265A,blue,Frederick II,,,1,4-6,,Commanded,Command,,See Below,,,,,,"command_sequence=267A,268A,269A,270A,271A,272A","Each Command action brings into play the next card in this sequence: Leopold's Right, Leopold's Center, Leopold's Left, Nassau, Zieten, Bayreuth Dragoons. <p>If at the start of your turn you have no Infantry or Cavalry cards in play, you lose.",
44,266A,blue,Du Moulin,,cav,6,6,,,Attack,,Saxon Horse,1 hit per die. 1 self per action.,Screen,Pair,"Saxon Horse (Voluntary), Weissenfels",,,,
-44,267A,dkblue,Leopold's Right,,inf,6,1/2,L,Commanded,Attack,,"Weissenfels, Lorraine's Left",1 hit per die. 1 self per action.,Counterattack,Pair,Weissenfels,1 hit.,,"If neither target is in play, may attack Charles and suffers no self hits.",
+44,267A,dkblue,Leopold's Left,,inf,6,5/6,R,Commanded,Attack,,"Lorraine's Right, Lorraine's Left",1 hit per die. 1 self per action.,Counterattack,Pair,"Lorraine's Right, Lorraine's Left",1 hit.,,"If neither target is in play, may attack Charles and suffers no self hits.",
44,268A,dkblue,Leopold's Center,,inf,6,3/4,LR,Commanded,Attack,,"Lorraine's Left, Lorraine's Right",1 hit per die. 1 self per action.,Counterattack,Pair,"Lorraine's Left, Lorraine's Right",1 hit.,,"If neither target is in play, may attack Charles and suffers no self hits.",
-44,269A,dkblue,Leopold's Left,,inf,6,5/6,R,Commanded,Attack,,"Lorraine's Right, Lorraine's Left",1 hit per die. 1 self per action.,Counterattack,Pair,"Lorraine's Right, Lorraine's Left",1 hit.,,"If neither target is in play, may attack Charles and suffers no self hits.",
-44,270A,blue,Nassau,,cav,6,3/4,L,Commanded,Attack,,Austrian Horse,1 hit per die. 1 self per action.,Counterattack,Pair,Austrian Horse,1 hit.,,,
-44,271A,blue,Zieten,,cav,4,4-6,R,Commanded,Attack,,Austrian Horse,1 hit per die. 1 self per action.,Screen,Pair,Austrian Horse,,,,
+44,269A,dkblue,Leopold's Right,,inf,6,1/2,L,Commanded,Attack,,"Weissenfels, Lorraine's Left",1 hit per die. 1 self per action.,Counterattack,Pair,Weissenfels,1 hit.,,"If neither target is in play, may attack Charles and suffers no self hits.",
+44,270A,blue,Zieten,,cav,4,4-6,R,Commanded,Attack,,Austrian Horse,1 hit per die. 1 self per action.,Screen,Pair,Austrian Horse,,,,
+44,271A,blue,Nassau,,cav,6,3/4,L,Commanded,Attack,,Austrian Horse,1 hit per die. 1 self per action.,Counterattack,Pair,Austrian Horse,1 hit.,,,
44,272A,dkblue,Bayreuth Dragoons,,cav,1,1-3,,Commanded,Attack,,Lorraine's Left or Lorraine's Right,Two hits per die.,,,,,,"After making its first and only attack, this card is removed from play (this does not count as a Rout).","The justly famous charge of the Bayreuth Dragoons decisively broke the enemy line, securing for Frederick a major victory."
44,273A,pink,Saxon Horse,,cav,6,Doubles,,,Attack,,Du Moulin,1 hit.,Screen,Pair,Leopold's Right,,,,
44,274A,red,Charles,,,5*,5/6,,,Command,Three Dice,See Below,,Absorb,Voluntary,Any friendly formation,"When target suffers Hits, this card suffers 1 less hit per die.",,Each Command action brings into play the in-reserve card of your choice.,
|