Update card definition

This commit is contained in:
CptSpaceToaster
2019-07-06 15:31:08 -04:00
parent 9182764395
commit a084077543
15 changed files with 60 additions and 125 deletions

View File

@ -1,4 +0,0 @@
export interface IAncientAbility {
name: string;
text: string;
}

View File

@ -1,7 +1,7 @@
export interface IAttack {
cost: string;
convertedEnergyCost: string;
cost: string[];
damage: string;
name: string;
text: string;
damage: string;
convertedEnergyCost: string;
}

View File

@ -1,32 +1,30 @@
import { IAbility } from '../interfaces/ability';
import { IAttack } from '../interfaces/attack';
import { ISet } from '../interfaces/set';
import { ISubType } from '../interfaces/subType';
import { ISuperType } from '../interfaces/superType';
import { IType } from '../interfaces/type';
import { IResistance } from '../interfaces/resistance';
import { IWeakness } from '../interfaces/weakness';
export interface ICard {
id: number;
name: string;
imageUrl: string;
imageUrlHighRes: string;
subType: ISubType;
superType: ISuperType;
ability: IAbility;
hp: number;
number: number;
artist: string;
rarity: string;
series: string;
set: ISet;
setCode: string;
retreatCost: string;
text: string;
types: IType[];
attacks: IAttack[];
weaknesses: string[];
resistances: string[];
nationalPokedexNumber: number;
ancientTrait: string;
convertedRetreatCost: number;
evolvesFrom: string;
hp: string;
id: string;
imageUrl: string;
imageUrlHiRes: string;
name: string;
nationalPokedexNumber: number;
number: string;
rarity: string;
resistances: IResistance[];
retreatCost: string[];
series: string;
set: string;
setCode: string;
subtype: string;
supertype: string;
text: string[];
types: string[];
weaknesses: IWeakness[];
}

View File

@ -0,0 +1,4 @@
export interface IResistance {
type: string;
value: string;
}

View File

@ -1,3 +0,0 @@
export interface ISubType {
type: string;
}

View File

@ -1,3 +0,0 @@
export interface ISuperType {
type: string;
}

View File

@ -0,0 +1,4 @@
export interface IWeakness {
type: string;
value: string;
}