summaryrefslogtreecommitdiff
path: root/tools/gendata.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-08 16:07:42 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:47 +0100
commit5605104117cb0eb8b8630e18a6c89b743fd9dca4 (patch)
tree6dd98941adf5870a3af0231b9c2469cd4f222d0d /tools/gendata.js
parent127f51411515dec1eab118113002ed7c2cde0352 (diff)
downloadtable-battles-5605104117cb0eb8b8630e18a6c89b743fd9dca4.tar.gz
Add notes about missing special rules.
Diffstat (limited to 'tools/gendata.js')
-rw-r--r--tools/gendata.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index dce36b3..bb9c606 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -176,6 +176,8 @@ for (let c of card_records) {
card.pursuit = 1
else if (c.reserve === "Commanded")
card.reserve = []
+ else if (c.reserve === "See Above")
+ card.reserve = []
else
card.reserve = c.reserve.split(" or ")
@@ -247,6 +249,8 @@ for (let c of cards) {
a.target_list = find_friendly_cards(c.scenario, c.wing)
else if (a.target === "Any friendly Pink formation")
a.target_list = find_wing_cards(c.scenario, WING.pink)
+ else if (a.target === "Any other Pink formation")
+ a.target_list = find_wing_cards(c.scenario, WING.pink).filter(x => x !== c)
else if (a.target === "Any Red formation")
a.target_list = find_wing_cards(c.scenario, WING.red)
else if (a.target.startsWith("Any attack on "))