-
-
Notifications
You must be signed in to change notification settings - Fork 137
Decks support #33
Copy link
Copy link
Closed
Labels
Milestone
Description
Blocked by #59
What do you want to change?
- Serie
- Set
- Card
- Deck
What change do you want to do?
Describe the change(s) you want to be added/enhanced
Add new datas to support decks that are/was sold in the market
possible sourcing https://bulbapedia.bulbagarden.net/wiki/Theme_Deck_(TCG)
export interface Deck {
id: `deck-${string}-${string}` // {set id}-{deck abbreviation}
set: Set
name: Languages
typesFocus: Array<Types>
cards: Array<{
/**
* Card Global ID
*/
id: string
/**
* Card quantity in the deck
*/
quantity?: number
/**
* Card variant
*/
variant?: keyof Omit<variants, 'normal' | 'firstEdition'>
} | string /* just the card global ID */>
}data/[serie]/[set]/decks/[deckname].ts or elsewhere
const deck: Deck = {
name: {
en: 'Charizard',
fr: 'Dracaufeu',
it: 'Charizard',
de: 'Glurak',
es: 'Charizard'
},
typeFocus: ['Fire'],
cards: [{
id: 'swsh4-25',
variant: 'holo'
}, {
id: 'swsh4-25'
}, {
id: 'swsh4-24',
quantity: 3
}, {
id: 'swsh4-23',
quantity: 3
}]
}
export default deckReactions are currently unavailable