From d7d600c0d77093bf0ade7c69561f87d687d604e1 Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 22 Nov 2021 14:52:58 +0100 Subject: [PATCH] feat: Add W Promotional variant (#183) Signed-off-by: Avior --- data/Base/Base Set 2/63.ts | 7 +++---- data/Base/Fossil/50.ts | 4 ++++ data/Base/Jungle/60.ts | 4 ++++ data/Base/Team Rocket/19.ts | 4 ++++ data/Base/Team Rocket/32.ts | 4 ++++ data/Base/W Promotional.ts | 6 +++++- data/Gym/Gym Challenge/37.ts | 4 +++- data/Gym/Gym Heroes/54.ts | 4 +++- interfaces.d.ts | 28 ++++++++++++++++++++++++++++ 9 files changed, 58 insertions(+), 7 deletions(-) diff --git a/data/Base/Base Set 2/63.ts b/data/Base/Base Set 2/63.ts index be3091d47..a6a0be7d0 100644 --- a/data/Base/Base Set 2/63.ts +++ b/data/Base/Base Set 2/63.ts @@ -58,10 +58,9 @@ const card: Card = { }, ], - - - - + variants: { + wPromo: true + } } export default card diff --git a/data/Base/Fossil/50.ts b/data/Base/Fossil/50.ts index 64033fbc6..09961dc18 100644 --- a/data/Base/Fossil/50.ts +++ b/data/Base/Fossil/50.ts @@ -62,6 +62,10 @@ const card: Card = { description: { fr: "Disparu depuis longtemps, il peut être réanimé génétiquement à partir d'anciens fossiles." + }, + + variants: { + wPromo: true } } diff --git a/data/Base/Jungle/60.ts b/data/Base/Jungle/60.ts index 87b3e719d..f3acc5ee2 100644 --- a/data/Base/Jungle/60.ts +++ b/data/Base/Jungle/60.ts @@ -56,6 +56,10 @@ const card: Card = { description: { fr: "Quand plusieurs de ces Pokémon se réunissent, ils provoquent de gigantesques orages." + }, + + variants: { + wPromo: true } } diff --git a/data/Base/Team Rocket/19.ts b/data/Base/Team Rocket/19.ts index 4e43fbf46..f8734560a 100644 --- a/data/Base/Team Rocket/19.ts +++ b/data/Base/Team Rocket/19.ts @@ -72,6 +72,10 @@ const card: Card = { description: { fr: "Il paralyse ses proies d'un regard. Si vous en rencontrez un, gardez-vous de le regarder dans les yeux ." + }, + + variants: { + wPromo: true } } diff --git a/data/Base/Team Rocket/32.ts b/data/Base/Team Rocket/32.ts index fc3b9553d..55ab02c7e 100644 --- a/data/Base/Team Rocket/32.ts +++ b/data/Base/Team Rocket/32.ts @@ -72,6 +72,10 @@ const card: Card = { description: { fr: "Sa queue incroyablement puissante est capable de soulever 5 hommes." + }, + + variants: { + wPromo: true } } diff --git a/data/Base/W Promotional.ts b/data/Base/W Promotional.ts index d3c43e886..80b7deea0 100644 --- a/data/Base/W Promotional.ts +++ b/data/Base/W Promotional.ts @@ -1,6 +1,10 @@ import { Set } from '../../interfaces' import serie from '../Base' +/** + * @deprecated + * Will be removed in V3 + */ const wp: Set = { id: "wp", @@ -13,7 +17,7 @@ const wp: Set = { serie: serie, cardCount: { - official: 53 + official: 7 }, releaseDate: "1999-09-01" diff --git a/data/Gym/Gym Challenge/37.ts b/data/Gym/Gym Challenge/37.ts index 700134369..d8fdccc3c 100644 --- a/data/Gym/Gym Challenge/37.ts +++ b/data/Gym/Gym Challenge/37.ts @@ -56,7 +56,9 @@ const card: Card = { }, ], - + variants: { + wPromo: true + } diff --git a/data/Gym/Gym Heroes/54.ts b/data/Gym/Gym Heroes/54.ts index 3caa57ae9..5d44920ed 100644 --- a/data/Gym/Gym Heroes/54.ts +++ b/data/Gym/Gym Heroes/54.ts @@ -53,7 +53,9 @@ const card: Card = { }, ], - + variants: { + wPromo: true + } diff --git a/interfaces.d.ts b/interfaces.d.ts index bbf927af1..1f95379b8 100644 --- a/interfaces.d.ts +++ b/interfaces.d.ts @@ -13,12 +13,40 @@ export interface Serie { } interface variants { + /** + * Card base version + */ normal?: boolean + /** + * Holo Reverse + * (colored Background holographic) + */ reverse?: boolean + /** + * Holo Card + * (illustration holographic) + */ holo?: boolean + + /** + * can have a first Edition stamp + */ firstEdition?: boolean + + /** + * Can be found in Jumob Format + */ jumbo?: boolean + + /** + * Card has a pre-release stamp + */ preRelease?: boolean + + /** + * Card has a W stamp + */ + wPromo?: true } export type Types = 'Colorless' | 'Darkness' | 'Dragon' |