summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-02-19 15:11:14 +0100
committerTor Andersson <tor@ccxvii.net>2024-02-19 15:11:14 +0100
commitd90468a79ca7a4757c781b7f7b7c9785e41fe1ce (patch)
treefcda33c8bc9d52dd3a7ecb060834626ec32e1795
parent75ca87f304574b5a7100a85df45a0093fde6690d (diff)
downloadtable-battles-d90468a79ca7a4757c781b7f7b7c9785e41fe1ce.tar.gz
Fix special rule on Greene's Right in S28 Culp' Hill.
Place two on "Dark Blue", not "Blue".
-rw-r--r--data.js2
-rw-r--r--rules.js3
-rw-r--r--tools/cards.csv2
3 files changed, 4 insertions, 3 deletions
diff --git a/data.js b/data.js
index 5b5d135..d9eb820 100644
--- a/data.js
+++ b/data.js
@@ -388,7 +388,7 @@ cards: [
{"scenario":28,"number":"155B","name":"Breastworks","wing":2,"morale":0,"strength":8,"dice":"","actions":[],"rule_text_2":"When any Dark Blue Formation (including Reserves taking an Absorb Reaction) is to suffer only one hit in an attack, this Formation suffers the hit instead. <p>If the Formation would suffer more than one hit, this Formation suffers all hits but one, which the targeted/absorbing Formation suffers. <p>When this Formation Routs, it does not cause the loss of a morale cube. <p>Finally, while I've got your attention: as long as Greene's Right is in play, you can place dice on TWO Dark Blue cards each turn. Why is this note on this card, and not on Greene's Right? Because I didn't have room on that card. And folks wonder why the cards don't have art on them..."},
{"scenario":28,"number":"156B","name":"Greene's Left","wing":3,"morale":2,"strength":3,"dice":"6","actions":[{"type":"Attack","target":"Jones","effect_text":"1 hit per die.","effect":"1 hit per die.","target_list":[341],"choice":0},{"type":"Counterattack","requirement":"Pair","target":"Jones","effect_text":"1 hit. Suffers 1 less hit.","effect":"1 hit. Suffers 1 less hit.","target_list":[341],"choice":0}]},
{"scenario":28,"number":"157B","name":"Greene's Center","wing":3,"morale":2,"strength":3,"dice":"5","actions":[{"type":"Attack","target":"Williams","effect_text":"1 hit per die.","effect":"1 hit per die.","target_list":[340],"choice":0},{"type":"Counterattack","requirement":"Pair","target":"Williams","effect_text":"1 hit. Suffers 1 less hit.","effect":"1 hit. Suffers 1 less hit.","target_list":[340],"choice":0}]},
-{"scenario":28,"number":"158B","name":"Greene's Right","wing":3,"morale":2,"strength":3,"dice":"4","actions":[{"type":"Attack","target":"Steuart","effect_text":"1 hit per die.","effect":"1 hit per die.","target_list":[339],"choice":0},{"type":"Counterattack","requirement":"Pair","target":"Steuart","effect_text":"1 hit. Suffers 1 less hit.","effect":"1 hit. Suffers 1 less hit.","target_list":[339],"choice":0}],"rules":{"place_2_blue":1},"retire":1},
+{"scenario":28,"number":"158B","name":"Greene's Right","wing":3,"morale":2,"strength":3,"dice":"4","actions":[{"type":"Attack","target":"Steuart","effect_text":"1 hit per die.","effect":"1 hit per die.","target_list":[339],"choice":0},{"type":"Counterattack","requirement":"Pair","target":"Steuart","effect_text":"1 hit. Suffers 1 less hit.","effect":"1 hit. Suffers 1 less hit.","target_list":[339],"choice":0}],"rules":{"place_2_dkblue":1},"retire":1},
{"scenario":28,"number":"159B","name":"Reserves","wing":3,"morale":2,"strength":4,"dice":"Doubles","actions":[{"type":"Absorb","requirement":"Voluntary","target":"Any friendly formation","effect_text":"Suffers hits.","effect":"Suffers hits.","target_list":[332,333,334,335,337,338],"choice":1}]},
{"scenario":28,"number":"160B","name":"137th New York","wing":2,"morale":1,"strength":2,"dice":"Doubles","actions":[{"type":"Attack","target":"Steuart","effect_text":"1 hit.","effect":"1 hit.","target_list":[339],"choice":0}],"rule_text_2":"This Formation ALWAYS suffers one less hit when Attacked and NEVER suffers more than one hit in any given Attack.","rules":{"suffer_1_less_1_max":1},"reserve":[335]},
{"scenario":28,"number":"161B","name":"Geary","wing":3,"morale":1,"special":5,"dice":"Straight 4/3","actions":[],"rule_text_2":"Unlike most Special Formations, this card begins the game with NO cubes on it. <p>If rolling five or more dice during your Roll Phase, you need a four-die straight to earn a cube. If rolling four or less dice, you need a three-die straight to earn a cube. <p>When there are FIVE cubes on this card, Geary's Division arrives, bringing the late hour battle to a close. The game ends immediately in a UNION VICTORY.","rules":{"start_with_no_cubes":1}},
diff --git a/rules.js b/rules.js
index c819442..07caf8e 100644
--- a/rules.js
+++ b/rules.js
@@ -1470,10 +1470,11 @@ function goto_roll_phase() {
game.place_max[RED] = 2
if (card_has_rule(c, "place_2_red_if_dice") && has_any_dice_on_card(c))
game.place_max[RED] = 2
+ if (card_has_rule(c, "place_2_dkblue"))
+ game.place_max[DKBLUE] = 2
/*
// NOT USED (YET)
- if (card_has_rule(c, "place_2_dkblue")) game.place_max[DKBLUE] = 2
if (card_has_rule(c, "place_2_pink")) game.place_max[PINK] = 2
if (card_has_rule(c, "place_2_blue_if_dice") && has_any_dice_on_card(c)) game.place_max[BLUE] = 2
if (card_has_rule(c, "place_2_dkblue_if_dice") && has_any_dice_on_card(c)) game.place_max[DKBLUE] = 2
diff --git a/tools/cards.csv b/tools/cards.csv
index a965a70..7895a0d 100644
--- a/tools/cards.csv
+++ b/tools/cards.csv
@@ -403,7 +403,7 @@ CULP'S HILL,,,,,,,,,,,,,,,,,,,,,
28,155B,blue,Breastworks,,,8-,,,,,,,,,,,,,,"When any Dark Blue Formation (including Reserves taking an Absorb Reaction) is to suffer only one hit in an attack, this Formation suffers the hit instead. <p>If the Formation would suffer more than one hit, this Formation suffers all hits but one, which the targeted/absorbing Formation suffers. <p>When this Formation Routs, it does not cause the loss of a morale cube. <p>Finally, while I've got your attention: as long as Greene's Right is in play, you can place dice on TWO Dark Blue cards each turn. Why is this note on this card, and not on Greene's Right? Because I didn't have room on that card. And folks wonder why the cards don't have art on them...",
28,156B,dkblue,Greene's Left,,,3*,6,,,Attack,,Jones,1 hit per die.,,Counterattack,Pair,Jones,1 hit. Suffers 1 less hit.,,,
28,157B,dkblue,Greene's Center,,,3*,5,,,Attack,,Williams,1 hit per die.,,Counterattack,Pair,Williams,1 hit. Suffers 1 less hit.,,,
-28,158B,dkblue,Greene's Right,,,3*,4,,RETIRE,Attack,,Steuart,1 hit per die.,,Counterattack,Pair,Steuart,1 hit. Suffers 1 less hit.,place_2_blue,,
+28,158B,dkblue,Greene's Right,,,3*,4,,RETIRE,Attack,,Steuart,1 hit per die.,,Counterattack,Pair,Steuart,1 hit. Suffers 1 less hit.,place_2_dkblue,,
28,159B,dkblue,Reserves,,,4*,Doubles,,,Absorb,Voluntary,Any friendly formation,Suffers hits.,,,,,,,,
28,160B,blue,137th New York,,,2,Doubles,,Greene's Right,Attack,,Steuart,1 hit.,,,,,,suffer_1_less_1_max,This Formation ALWAYS suffers one less hit when Attacked and NEVER suffers more than one hit in any given Attack.,
28,161B,dkblue,Geary,,,V,Straight 4/3,,,,,,,,,,,,start_with_no_cubes,"Unlike most Special Formations, this card begins the game with NO cubes on it. <p>If rolling five or more dice during your Roll Phase, you need a four-die straight to earn a cube. If rolling four or less dice, you need a three-die straight to earn a cube. <p>When there are FIVE cubes on this card, Geary's Division arrives, bringing the late hour battle to a close. The game ends immediately in a UNION VICTORY.",