From 236fb6c2a3e872ccc77d81a24d359e8b8d31b1d1 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 7 Sep 2021 23:35:09 -0400 Subject: [PATCH] Add keywords to card text --- strange_eons_to_arkhamdb.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/strange_eons_to_arkhamdb.js b/strange_eons_to_arkhamdb.js index a146851..88d8287 100644 --- a/strange_eons_to_arkhamdb.js +++ b/strange_eons_to_arkhamdb.js @@ -118,7 +118,8 @@ var card_data = { sanity: parseInt(Component.settings.get('Sanity')) || null, slot: String(slot), strength: skills["Combat"], - text: substitute_tags(String(Component.settings.get('Rules'))), + text: substitute_tags(String( + Component.settings.get('Keywords') + '\n' + Component.settings.get('Rules'))), traits: substitute_tags(String(Component.settings.get('Traits'))), type_code: card_types[Component.getFrontTemplateKey()], wild: skills["Wild"], @@ -134,5 +135,6 @@ if (card_types[Component.getFrontTemplateKey()] == 'enemy') { card_data.subtype_code = "basicweakness"; } +// TODO: parse out some keywords into their own fields println(JSON.stringify(card_data, null, 4));