From 5605104117cb0eb8b8630e18a6c89b743fd9dca4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 8 Dec 2023 16:07:42 +0100 Subject: Add notes about missing special rules. --- tools/gendata.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') 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 ")) -- cgit v1.2.3