@genshin-db/tcg
Version:
Genshin Impact Trading Card Game JSON data with an API for searching the data in all in-game languages.
48 lines (36 loc) • 1.32 kB
TypeScript
declare module "@genshin-db/tcg" {
export interface TcgEnemyCards {
id: number;
name: string; // translated
transformsinto?: number[]; // list of card ids that this card can transform into. undefined if none. example: azhdaha into cryo azhdaha
istransformation?: boolean; // is this card only accessible through transformation
hp: number;
maxenergy: number;
tags: string[]; // enum
tagstext: string[]; // translated
skills: TcgSkills[];
images: {
filename_tagsicon: string[];
filename_cardface: string;
filename_cardface_golden: string;
filename_cardface_HD: string;
};
version: string;
}
export interface TcgSkills {
id: number;
name: string; // translated
basedamage?: number; // some skills like Barbara's burst don't do damage directly.
baseelement?: string; // some skills like Barbara's burst don't apply elements directly.
typetag: 'GCG_SKILL_TAG_A' | 'GCG_SKILL_TAG_E' | 'GCG_SKILL_TAG_Q' | 'GCG_SKILL_TAG_PASSIVE'; // enum
type: string; // translated
description: string; // translated
descriptionraw: string; // translated
descriptionreplaced: string; // translated
playcost: TcgSkillPlayCost[];
}
export interface TcgSkillPlayCost {
costtype: string; // enum
count: number;
}
}