From 868cd47e4691065a5da429c54e6d72a842b9e399 Mon Sep 17 00:00:00 2001 From: Avior Date: Thu, 13 Feb 2020 19:38:45 +0100 Subject: [PATCH] Updated card and added effect field Signed-off-by: Avior --- cards/sm/sm12/209.ts | 34 +++++----------------------------- interfaces/Card.ts | 3 +++ 2 files changed, 8 insertions(+), 29 deletions(-) diff --git a/cards/sm/sm12/209.ts b/cards/sm/sm12/209.ts index 3d2824bed..4c2ac0efb 100644 --- a/cards/sm/sm12/209.ts +++ b/cards/sm/sm12/209.ts @@ -4,6 +4,7 @@ import Tag from '../../../interfaces/Tag' import Rarity from '../../../interfaces/Rarity' import AbilityType from '../../../interfaces/AbilityType' import Category from '../../../interfaces/Category' +import sm from '../../../sets/sm/sm12' const card: Card = { @@ -17,12 +18,6 @@ const card: Card = { fr: "Énergie de Pioche", }, - - - - - - image: { low: { en: "https://assets.tcgdex.net/en/sm/sm12/209/low.png", @@ -34,38 +29,19 @@ const card: Card = { }, }, - evolveFrom: {}, - tags: [ Tag.SPECIAL, ], - - - - - attacks: [{ - name: {}, - text: { - fr: "Cette carte fournit de l’Énergie Colorless. \n\nLorsque vous attachez cette carte de votre main à un Pokémon, piochez une carte.", - }, - }], - - - - - - + effect: { + fr: "Cette carte fournit de l’Énergie Colorless. \n\nLorsque vous attachez cette carte de votre main à un Pokémon, piochez une carte." + }, rarity: Rarity.Uncommon, category: Category.ENERGY, - set: { - name: "Cosmic Eclipse", - code: "sm12" - } + set: sm } export default card - diff --git a/interfaces/Card.ts b/interfaces/Card.ts index f3a027aee..62e47c620 100644 --- a/interfaces/Card.ts +++ b/interfaces/Card.ts @@ -37,6 +37,9 @@ interface Card { attacks?: Array + // If card is trainer or energy effect is here + effect?: LangList + weaknesses?: Array<{ type: Type value?: string