Skip to content

Decks support #33

@Aviortheking

Description

@Aviortheking

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 deck

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseCard Datas RelatedenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions