CharacterStats
Index
Constructors
Properties
- _data
- anemoDamage
- anemoEnergyCost
- anemoRes
- attack
- attackBase
- attackFlat
- attackPercent
- chargeEfficiency
- cooldownReduction
- critDamage
- critRate
- cryoDamage
- cryoEnergyCost
- cryoRes
- currentAnemoEnergy
- currentCryoEnergy
- currentDendroEnergy
- currentElectroEnergy
- currentEnergy
- currentGeoEnergy
- currentHealth
- currentHydroEnergy
- currentPyroEnergy
- defense
- defenseBase
- defenseFlat
- defensePercent
- dendroDamage
- dendroEnergyCost
- dendroRes
- electroDamage
- electroEnergyCost
- electroRes
- elementMastery
- energyCost
- enka
- geoDamage
- geoEnergyCost
- geoRes
- healAdd
- healedAdd
- healthBase
- healthFlat
- healthPercent
- highestDamageBonus
- hydroDamage
- hydroEnergyCost
- hydroRes
- matchedElementDamage
- maxHealth
- physicalDamage
- physicalRes
- pyroDamage
- pyroEnergyCost
- pyroRes
- shieldStrength
- speed
- speedBase
- speedPercent
- statProperties
Methods
Constructors
constructor
Parameters
data: JsonObject
enka: EnkaClient
element: Element
Returns CharacterStats
Properties
readonly_data
readonlyanemoDamage
readonlyanemoEnergyCost
readonlyanemoRes
readonlyattack
readonlyattackBase
readonlyattackFlat
readonlyattackPercent
readonlychargeEfficiency
readonlycooldownReduction
readonlycritDamage
readonlycritRate
readonlycryoDamage
readonlycryoEnergyCost
readonlycryoRes
readonlycurrentAnemoEnergy
readonlycurrentCryoEnergy
readonlycurrentDendroEnergy
readonlycurrentElectroEnergy
readonlycurrentEnergy
readonlycurrentGeoEnergy
readonlycurrentHealth
readonlycurrentHydroEnergy
readonlycurrentPyroEnergy
readonlydefense
The current defense of the character
readonlydefenseBase
readonlydefenseFlat
readonlydefensePercent
readonlydendroDamage
readonlydendroEnergyCost
readonlydendroRes
readonlyelectroDamage
readonlyelectroEnergyCost
readonlyelectroRes
readonlyelementMastery
readonlyenergyCost
readonlyenka
readonlygeoDamage
readonlygeoEnergyCost
readonlygeoRes
readonlyhealAdd
readonlyhealedAdd
readonlyhealthBase
readonlyhealthFlat
readonlyhealthPercent
readonlyhighestDamageBonus
Including physical damage bonus, and returns list of highest damage bonus. The order of the list is such that elemental matches come first.
readonlyhydroDamage
readonlyhydroEnergyCost
readonlyhydroRes
readonlymatchedElementDamage
Element damage bonus which matches the character's element (Physical DMG ignored)
readonlymaxHealth
readonlyphysicalDamage
readonlyphysicalRes
readonlypyroDamage
readonlypyroEnergyCost
readonlypyroRes
readonlyshieldStrength
readonlyspeed
The current speed of the character
readonlyspeedBase
readonlyspeedPercent
readonlystatProperties
Methods
getStatProperty
Parameters
id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 20 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 80 | 81 | 1010 | 2000 | 2001 | 2002 | 2003
defaultValue: number = 0
Returns StatProperty<FightProp>
The current attack of the character