Class of weapon

Constructors

  • Create a Weapon

    Parameters

    • weaponId: number

      Weapon ID

    • level: number = 1

      Weapon level (1-90). Default: 1

    • isAscended: boolean = true

      Weapon is ascended. Default: true

    • refinementRank: number = 1

      Weapon refinement rank (1-5). Default: 1

    Returns Weapon

Properties

description: string

Weapon description

Weapon icon

id: number

Weapon ID

isAscended: boolean

Weapon is ascended

isAwaken: boolean

Whether the weapon is awakened

level: number

Weapon level

maxLevel: number

Weapon max level

name: string

Weapon name

promoteLevel: number

Weapon promote level

rarity: number

Weapon rarity

refinementRank: number

Weapon refinement rank

skillDescription: undefined | string

Weapon skill description

skillName: undefined | string

Weapon skill name

stats: StatProperty[]

Weapon stats

Weapon type

Accessors

  • get allWeaponIds(): number[]
  • Get all weapon IDs

    Returns number[]

    All weapon IDs

Methods

  • Get weapon ID by name

    Parameters

    • name: string

      Weapon name

    Returns number[]

    Weapon ID