WeaponData
class WeaponData
Properties
Methods
constructor
new WeaponData(data, enka)
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| data | JsonObject | |||
| enka | EnkaClient | 
Properties
enka
Type: EnkaClient
id
Type: number
name
Type: TextAssets
description
Type: TextAssets
icon
Type: ImageAssets
awakenIcon
Type: ImageAssets
stars
Type: number
weaponType
Type: WeaponType
weaponTypeName
Type: TextAssets
refinements
Type: WeaponRefinement[]
Methods
getById
static
Returns: WeaponData
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| id | number | |||
| enka | EnkaClient | 
getAscensionData
Returns: WeaponAscension
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| ascension | number | ascension level 0-6 for 3-5 stars, and 0-4 for 1-2 stars. | 
getStats
Returns: StatProperty[]
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| ascension | number | ascension level 0-6 for 3-5 stars, and 0-4 for 1-2 stars. | ||
| level | number | weapon level 1-90 for 3-5 stars, and 1-70 for 1-2 stars. |