Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decks support #33

Open
1 of 4 tasks
Tracked by #45
Aviortheking opened this issue Jun 23, 2021 · 0 comments · May be fixed by #116
Open
1 of 4 tasks
Tracked by #45

Decks support #33

Aviortheking opened this issue Jun 23, 2021 · 0 comments · May be fixed by #116
Labels
database Card Datas Related enhancement New feature or request
Milestone

Comments

@Aviortheking
Copy link
Member

Aviortheking commented Jun 23, 2021

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
@Aviortheking Aviortheking added database Card Datas Related enhancement New feature or request labels Jun 23, 2021
@Aviortheking Aviortheking added this to the 2.0 milestone Jun 30, 2021
@Aviortheking Aviortheking linked a pull request Oct 20, 2021 that will close this issue
@Aviortheking Aviortheking mentioned this issue May 7, 2024
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Card Datas Related enhancement New feature or request
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

1 participant