Skip to main content

WeaponData

class WeaponData

constructor

new WeaponData(data, enka)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
dataJsonObject
enkaEnkaClient

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

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
idnumber
enkaEnkaClient

getAscensionData

Returns: WeaponAscension

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ascensionnumberascension level 0-6 for 3-5 stars, and 0-4 for 1-2 stars.

getStats

Returns: StatProperty[]

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ascensionnumberascension level 0-6 for 3-5 stars, and 0-4 for 1-2 stars.
levelnumberweapon level 1-90 for 3-5 stars, and 1-70 for 1-2 stars.