1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-25 12:22:14 +00:00
Florian Bouillon a284fcac64
Updated DB and made it work with SDK
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2020-03-11 09:41:29 +01:00

103 lines
1.6 KiB
TypeScript

import Card from '@tcgdex/sdk/interfaces/Card'
import Type from '@tcgdex/sdk/interfaces/Type'
import Tag from '@tcgdex/sdk/interfaces/Tag'
import Rarity from '@tcgdex/sdk/interfaces/Rarity'
import AbilityType from '@tcgdex/sdk/interfaces/AbilityType'
import Category from '@tcgdex/sdk/interfaces/Category'
const card: Card = {
// ids
id: "dp1-50",
localId: 50,
// Card informations
name: {
en: "Haunter",
fr: "Spectrum",
},
hp: 70,
type: [
Type.PSYCHIC,
],
dexId: 93,
image: {
low: {
en: "https://assets.tcgdex.net/en/dp/dp1/50/low",
fr: "https://assets.tcgdex.net/fr/dp/dp1/50/low",
},
high: {
en: "https://assets.tcgdex.net/en/dp/dp1/50/high",
fr: "https://assets.tcgdex.net/fr/dp/dp1/50/high",
},
},
evolveFrom: {
en: "Gastly",
fr: "Fantominus",
},
tags: [
Tag.STAGE1,
],
illustrator: "Naoyo Kimura",
attacks: [{
cost: [
Type.PSYCHIC
],
name: {
en: "Hypnosis",
fr: "Hypnose",
},
text: {
en: "The Defending Pokémon is now Asleep.",
fr: "Le Pokémon Défenseur est maintenant Endormi.",
},
},{
cost: [
Type.PSYCHIC,
Type.PSYCHIC
],
name: {
en: "Dream Eater",
fr: "Dévorêve",
},
text: {
en: "If the Defending Pokémon is not Asleep, this attack does nothing.",
fr: "Si le Pokémon Défenseur n'est pas Endormi, cette attaque est sans effet.",
},
damage: 60
}],
weaknesses: [{
type: Type.DARKNESS,
value: "+20"
}],
resistances: [{
type: Type.COLORLESS,
value: "-20"
}],
rarity: Rarity.Uncommon,
category: Category.POKEMON,
set: {
name: "Diamond & Pearl",
code: "dp1"
}
}
export default card