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

Last updated

Was this helpful?