@genshin-db/tcg
Version:
Genshin Impact Trading Card Game JSON data with an API for searching the data in all in-game languages.
54 lines (40 loc) • 1.49 kB
TypeScript
declare module "@genshin-db/tcg" {
export interface TcgCharacterCards {
id: number;
name: string; // translated
shareid: number; // id for generating deck share code
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
storytitle: string; // translated
storytext: string; // translated
source: 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;
}
}