From 2d427e7ddf6958c03e96ca47abd9303f86e73954 Mon Sep 17 00:00:00 2001 From: Avior Date: Wed, 20 Oct 2021 16:17:25 +0200 Subject: [PATCH] First deck added (still need to find a good ID) Signed-off-by: Avior --- .../Noble Victories/Decks/Fast Daze.ts | 40 +++++++++++++++++++ interfaces.d.ts | 20 ++++++++++ 2 files changed, 60 insertions(+) create mode 100644 data/Black & White/Noble Victories/Decks/Fast Daze.ts diff --git a/data/Black & White/Noble Victories/Decks/Fast Daze.ts b/data/Black & White/Noble Victories/Decks/Fast Daze.ts new file mode 100644 index 0000000000..a0c560db18 --- /dev/null +++ b/data/Black & White/Noble Victories/Decks/Fast Daze.ts @@ -0,0 +1,40 @@ +import { Deck } from '../../../../interfaces' + +const deck: Deck = { + id: 'deck.bw.nv.fd', + // id: 'd-bw3-1', + // id: 'card.bw.nv.1', + name: { + en: 'Fast Daze' + }, + typesFocus: ['Fire', 'Grass'], + cards: [ + { id: 'bw3-12', variant: 'holo' }, + 'bw3-12', + { id: 'bw3-11', quantity: 4 }, + 'bw3-3', + { id: 'bw3-2', quantity: 2 }, + { id: 'bw3-1', quantity: 3 }, + 'bw3-5', + { id: 'bw3-4', quantity: 2 }, + { id: 'bw3-7', quantity: 2 }, + { id: 'bw3-6', quantity: 2 }, + { id: 'bw3-9', quantity: 3 }, + 'bw3-21', + { id: 'bw3-21', quantity: 2 }, + { id: 'bw3-17', quantity: 2 }, + { id: 'bw3-16', quantity: 2 }, + { id: 'bw3-7', quantity: 2 }, + { id: 'bw1-93', quantity: 2 }, + { id: 'bw1-100', quantity: 2 }, + { id: 'bw2-91', quantity: 2 }, + { id: 'bw2-91', quantity: 2 }, + 'bw3-92', + { id: 'bw1-99', quantity: 2 }, + { id: 'bw3-95', quantity: 2 }, + { id: 'bw1-105', quantity: 12 }, + { id: 'bw1-106', quantity: 6 } + ] +} + +export default deck diff --git a/interfaces.d.ts b/interfaces.d.ts index 0eb6bc33db..0bfd6ad963 100644 --- a/interfaces.d.ts +++ b/interfaces.d.ts @@ -314,3 +314,23 @@ export interface Filter { cards: Array } } + +export interface Deck { + id: string + name: Languages + typesFocus: Array + cards: Array<{ + /** + * Card Global ID + */ + id: string + /** + * Card quantity in the deck + */ + quantity?: number + /** + * Card variant + */ + variant?: keyof Omit + } | string> +}