Add keywords to card text

This commit is contained in:
Adam Goldsmith 2021-09-07 23:35:09 -04:00
parent 37ebabcf42
commit 236fb6c2a3

View File

@ -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));