Create a Weapon
API
constructor(name: string, level: number, ascend: boolean, refine: number, args: any)
name
All supported names are available here
level
Level of the weapon, integer from 0
to 90
, if the weapon is with rarity 3, then it's 0
to 70
ascend
Whether is ascend
refine
An integer from 1
to 5
args
Weapon-specific args. To fully document this argument requires quite a lot of time, so it's better to check out the source code.
https://github.com/wormtql/genshin_panel/tree/main/src/numerics/weapon/data
Examples
const app = require("genshin_panel");
let weapon = new app.Weapon("heijian", 90, false, 2);
let w2 = new app.Weapon("theblacksword", 80, true, 1);
let w3 = new app.Weapon("wolfsgravestone", 80, false, 1, { rate: 0.5 });
Last updated
Was this helpful?