Create a Character
API
constructor(name: string, level: number, ascend: boolean, constellation: number, args: any)
name
All supported names are available here
level
An integer from 0
to 90
ascend
Whether the level is ascended, this only makes sense when the level is 20/40/50/60/70/80
constellation
The constellation of the character
args
Character specific args, you can find all args here
Examples
const app = require("genshin_panel");
let keqing = new app.Character("keqing", 90, false, 0);
let hutao = new app.Character("胡桃", 80, true, 2, { hpBelow50: true });
Last updated
Was this helpful?