@cfvdb/core
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -72,2 +72,7 @@ const LZUTF8 = require('lzutf8'); | ||
card.data = cardDataResponse[i]; | ||
if (card.data.grade === 0 && card.partOfRideDeck) { | ||
card.starter = true; | ||
} | ||
result[getCardType(card.data)].cards.push(card); | ||
@@ -84,9 +89,5 @@ } | ||
const number = elements[elements.length - 1]; | ||
let starter = elements.length >= 3 && elements[elements.length - 2].trim() === '(S)'; | ||
const starter = elements.length >= 3 && elements[elements.length - 2].trim() === '(S)'; | ||
const partOfRideDeck = elements.length >= 3 && elements[elements.length - 2].trim() === '(R)'; | ||
if (partOfRideDeck) { | ||
starter = true; | ||
} | ||
return { | ||
@@ -93,0 +94,0 @@ count, |
{ | ||
"name": "@cfvdb/core", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Core functions for CFVDB", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -94,2 +94,4 @@ const parseDeckList = require('../lib/deck-list-parser'); | ||
assert.deepStrictEqual(result.normal.cards[9].starter, true); | ||
assert.deepStrictEqual(result.normal.cards[0].partOfRideDeck, true); | ||
assert.deepStrictEqual(result.normal.cards[0].starter, false); | ||
}); | ||
@@ -96,0 +98,0 @@ }); |
****** Cardfight!! Vanguard Deck List ****** | ||
## Normal units - 33 | ||
* 4 Ranunculus Flower Maiden, Ahsha V-TD12/001EN | ||
* 4 Ranunculus Flower Maiden, Ahsha (R) V-TD12/001EN | ||
* 4 Genteel Knight, Orvell V-TD12/002EN | ||
@@ -6,0 +6,0 @@ * 4 Blossoming Maiden, Cela V-TD12/003EN |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28075
554