CharacterData
class CharacterData
constructor
new CharacterData(data, enka, candSkillDepotId)
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
data | JsonObject | |||
enka | EnkaClient | |||
candSkillDepotId | number | ✔️ |
Properties
id
Type: number
enka
Type: EnkaClient
name
Type: TextAssets
description
Type: TextAssets
bodyType
Type: BodyType
weaponType
Type: WeaponType
gender
Type: Gender
icon
Type: ImageAssets
sideIcon
Type: ImageAssets
splashImage
Type: ImageAssets
gachaSlice
This is not available for Travelers
Type: ImageAssets
cardIcon
Type: ImageAssets
nameCard
This will be null if the character is Traveler
Type: NameCard | null
rarity
Type: CharacterRarity
stars
Type: number
costumes
Type: Costume[]
skillDepotId
Type: number
elementalBurst
Type: ElementalBurst | null
element
Type: Element | null
arkhe
Type: Arkhe | null
skills
Type: Skill[]
elementalSkill
Can be null if the character doesn't have element such as traveler without elements
Type: ElementalSkill | null
normalAttack
Type: NormalAttack
passiveTalents
Type: PassiveTalent[]
constellations
Type: Constellation[]
releasedAt
This will be null if the character is not (being) released character, like Travelers and test avatars
Type: Date | null
isArchon
Type: boolean
isTraveler
Type: boolean
details
Information in the profile menu in in-game character screen
Type: CharacterDetails | null
Methods
getById
Returns: CharacterData
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
id | number | |||
enka | EnkaClient | |||
candSkillDepotId | number | ✔️ |
getOriginalName
Returns: TextAssets
- character's original name (Travelers -> Aether, Lumine)
getAscensionData
Returns: CharacterAscension
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
ascension | number | ascension level between 0 and 6 |
getStats
Returns: StatProperty[]
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
ascension | number | ascension level between 0 and 6 | ||
level | number | character level between 1 and 90 |