Add keywords to card text
This commit is contained in:
parent
37ebabcf42
commit
236fb6c2a3
@ -118,7 +118,8 @@ var card_data = {
|
|||||||
sanity: parseInt(Component.settings.get('Sanity')) || null,
|
sanity: parseInt(Component.settings.get('Sanity')) || null,
|
||||||
slot: String(slot),
|
slot: String(slot),
|
||||||
strength: skills["Combat"],
|
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'))),
|
traits: substitute_tags(String(Component.settings.get('Traits'))),
|
||||||
type_code: card_types[Component.getFrontTemplateKey()],
|
type_code: card_types[Component.getFrontTemplateKey()],
|
||||||
wild: skills["Wild"],
|
wild: skills["Wild"],
|
||||||
@ -134,5 +135,6 @@ if (card_types[Component.getFrontTemplateKey()] == 'enemy') {
|
|||||||
card_data.subtype_code = "basicweakness";
|
card_data.subtype_code = "basicweakness";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: parse out some keywords into their own fields
|
||||||
|
|
||||||
println(JSON.stringify(card_data, null, 4));
|
println(JSON.stringify(card_data, null, 4));
|
||||||
|
Loading…
Reference in New Issue
Block a user