Make 'cost' an integer

This commit is contained in:
Adam Goldsmith 2021-09-07 23:22:15 -04:00
parent b779427b62
commit f2a9f81834
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ const card_types = {
var card_data = {
agility: skills["Agility"],
code: String(code),
cost: String(Component.settings.get('ResourceCost')),
// TODO: handle None/X
cost: parseInt(Component.settings.get('ResourceCost')) || null,
// TODO: could be derived?
deck_limit: 2,
faction_code: String(Component.settings.get('CardClass')).toLowerCase(),