Add missing XP field (and note about Victory)

This commit is contained in:
Adam Goldsmith 2021-09-07 23:46:31 -04:00
parent d1801add7a
commit 6c9bed5fe0
1 changed files with 2 additions and 0 deletions

View File

@ -115,12 +115,14 @@ var card_data = {
sanity: parseInt(Component.settings.get('Sanity')) || null,
slot: String(slot),
strength: skills["Combat"],
// TODO: should also handle "Victory" field
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"],
will: skills["Willpower"],
xp: parseInt(Component.settings.get('Level')) || null,
};
if (Component.settings.get('CardClass2') != 'None') {