Fix arkhamdb skill tags
This commit is contained in:
parent
6c9bed5fe0
commit
65abe1c7cb
@ -43,9 +43,9 @@ const tag_replacements = {
|
|||||||
"<rog>": "[rogue]",
|
"<rog>": "[rogue]",
|
||||||
"<mys>": "[mystic]",
|
"<mys>": "[mystic]",
|
||||||
"<sur>": "[survivor]",
|
"<sur>": "[survivor]",
|
||||||
"<wil>": "[will]",
|
"<wil>": "[willpower]",
|
||||||
"<int>": "[lore]",
|
"<int>": "[intellect]",
|
||||||
"<com>": "[strength]",
|
"<com>": "[combat]",
|
||||||
"<agi>": "[agility]",
|
"<agi>": "[agility]",
|
||||||
"<wild>": "[wild]",
|
"<wild>": "[wild]",
|
||||||
"<sku>": "[skull]",
|
"<sku>": "[skull]",
|
||||||
@ -96,7 +96,6 @@ const card_types = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var card_data = {
|
var card_data = {
|
||||||
agility: skills["Agility"],
|
|
||||||
code: String(code),
|
code: String(code),
|
||||||
// TODO: handle None/X
|
// TODO: handle None/X
|
||||||
cost: parseInt(Component.settings.get('ResourceCost')) || null,
|
cost: parseInt(Component.settings.get('ResourceCost')) || null,
|
||||||
@ -106,22 +105,23 @@ var card_data = {
|
|||||||
health: parseInt(Component.settings.get('Stamina')) || null,
|
health: parseInt(Component.settings.get('Stamina')) || null,
|
||||||
illustrator: String(Component.settings.get('Artist')),
|
illustrator: String(Component.settings.get('Artist')),
|
||||||
is_unique: Component.settings.getBoolean('Unique'),
|
is_unique: Component.settings.getBoolean('Unique'),
|
||||||
lore: skills["Intellect"],
|
|
||||||
name: substitute_tags(String(card_name)),
|
name: substitute_tags(String(card_name)),
|
||||||
pack_code: pack_code,
|
pack_code: pack_code,
|
||||||
position: parseInt(Component.settings.get('CollectionNumber')) || null,
|
position: parseInt(Component.settings.get('CollectionNumber')) || null,
|
||||||
quantity: 2, // TODO
|
quantity: 2, // TODO
|
||||||
//restrictions: null, // TODO
|
//restrictions: null, // TODO
|
||||||
sanity: parseInt(Component.settings.get('Sanity')) || null,
|
sanity: parseInt(Component.settings.get('Sanity')) || null,
|
||||||
|
skill_agility: skills["Agility"],
|
||||||
|
skill_combat: skills["Combat"],
|
||||||
|
skill_intellect: skills["Intellect"],
|
||||||
|
skill_wild: skills["Wild"],
|
||||||
|
skill_willpower: skills["Willpower"],
|
||||||
slot: String(slot),
|
slot: String(slot),
|
||||||
strength: skills["Combat"],
|
|
||||||
// TODO: should also handle "Victory" field
|
// TODO: should also handle "Victory" field
|
||||||
text: substitute_tags(String(
|
text: substitute_tags(String(
|
||||||
Component.settings.get('Keywords') + '\n' + Component.settings.get('Rules'))),
|
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"],
|
|
||||||
will: skills["Willpower"],
|
|
||||||
xp: parseInt(Component.settings.get('Level')) || null,
|
xp: parseInt(Component.settings.get('Level')) || null,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user