diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-13 17:04:09 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 1b00669d128090cc5c12f9a4223a19498fa746c3 (patch) | |
tree | feb34abe4dd228fa17bbde6afa0abfdb2972fe1a /tools/gendata.js | |
parent | a99e356ecc08b0718b7870a348b7c57ac16098b1 (diff) | |
download | table-battles-1b00669d128090cc5c12f9a4223a19498fa746c3.tar.gz |
reserve special rule terminology
Diffstat (limited to 'tools/gendata.js')
-rw-r--r-- | tools/gendata.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index 36b42cf..c4f6efb 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -188,7 +188,7 @@ for (let c of card_records) { else if (c.reserve === "PURSUIT") card.pursuit = 1 else if (c.reserve === "Commanded" || c.reserve === "See Above" || c.reserve === "Special Rule") - card.reserve = [] + card.reserve = c.reserve else card.reserve = c.reserve.split(" or ") @@ -302,7 +302,7 @@ function process_card(c) { throw new Error("PURSUIT with more than one target!") c.pursuit = c.actions[0].target_list[0] } - if (c.reserve) + if (Array.isArray(c.reserve)) c.reserve = c.reserve.map(name => find_card(c.scenario, name)) } |