Skip to main content

StatProperty

Index

Constructors

constructor

  • new StatProperty(type: Defence | MaxHP | Attack | Speed | CriticalChance | CriticalDamage | BreakDamageAddedRatio | BreakDamageAddedRatioBase | HealRatio | MaxSP | SPRatio | StatusProbability | StatusResistance | CriticalChanceBase | CriticalDamageBase | HealRatioBase | StanceBreakAddedRatio | SPRatioBase | StatusProbabilityBase | StatusResistanceBase | PhysicalAddedRatio | PhysicalResistance | FireAddedRatio | FireResistance | IceAddedRatio | IceResistance | ThunderAddedRatio | ThunderResistance | WindAddedRatio | WindResistance | QuantumAddedRatio | QuantumResistance | ImaginaryAddedRatio | ImaginaryResistance | BaseHP | HPDelta | HPAddedRatio | BaseAttack | AttackDelta | AttackAddedRatio | BaseDefence | DefenceDelta | DefenceAddedRatio | BaseSpeed | HealTakenRatio | PhysicalResistanceDelta | FireResistanceDelta | IceResistanceDelta | ThunderResistanceDelta | WindResistanceDelta | QuantumResistanceDelta | ImaginaryResistanceDelta | SpeedDelta, client: StarRail): StatProperty
  • Parameters

    • type: Defence | MaxHP | Attack | Speed | CriticalChance | CriticalDamage | BreakDamageAddedRatio | BreakDamageAddedRatioBase | HealRatio | MaxSP | SPRatio | StatusProbability | StatusResistance | CriticalChanceBase | CriticalDamageBase | HealRatioBase | StanceBreakAddedRatio | SPRatioBase | StatusProbabilityBase | StatusResistanceBase | PhysicalAddedRatio | PhysicalResistance | FireAddedRatio | FireResistance | IceAddedRatio | IceResistance | ThunderAddedRatio | ThunderResistance | WindAddedRatio | WindResistance | QuantumAddedRatio | QuantumResistance | ImaginaryAddedRatio | ImaginaryResistance | BaseHP | HPDelta | HPAddedRatio | BaseAttack | AttackDelta | AttackAddedRatio | BaseDefence | DefenceDelta | DefenceAddedRatio | BaseSpeed | HealTakenRatio | PhysicalResistanceDelta | FireResistanceDelta | IceResistanceDelta | ThunderResistanceDelta | WindResistanceDelta | QuantumResistanceDelta | ImaginaryResistanceDelta | SpeedDelta
    • client: StarRail

    Returns StatProperty

Properties

readonly_data

_data: JsonObject

readonlyclient

client: StarRail

readonlyicon

Icon for the stat property. Also you can use svg files here.

readonlyisBattleDisplay

isBattleDisplay: boolean

readonlyisDisplay

isDisplay: boolean

readonlyisPercent

isPercent: boolean

readonlyname

readonlynameFilter

nameFilter: TextAssets

readonlynameRelic

nameRelic: TextAssets

readonlynameSkillTree

nameSkillTree: TextAssets

readonlyorder

order: number

readonlytype

type: Defence | MaxHP | Attack | Speed | CriticalChance | CriticalDamage | BreakDamageAddedRatio | BreakDamageAddedRatioBase | HealRatio | MaxSP | SPRatio | StatusProbability | StatusResistance | CriticalChanceBase | CriticalDamageBase | HealRatioBase | StanceBreakAddedRatio | SPRatioBase | StatusProbabilityBase | StatusResistanceBase | PhysicalAddedRatio | PhysicalResistance | FireAddedRatio | FireResistance | IceAddedRatio | IceResistance | ThunderAddedRatio | ThunderResistance | WindAddedRatio | WindResistance | QuantumAddedRatio | QuantumResistance | ImaginaryAddedRatio | ImaginaryResistance | BaseHP | HPDelta | HPAddedRatio | BaseAttack | AttackDelta | AttackAddedRatio | BaseDefence | DefenceDelta | DefenceAddedRatio | BaseSpeed | HealTakenRatio | PhysicalResistanceDelta | FireResistanceDelta | IceResistanceDelta | ThunderResistanceDelta | WindResistanceDelta | QuantumResistanceDelta | ImaginaryResistanceDelta | SpeedDelta

staticALL_DAMAGE_TYPES

ALL_DAMAGE_TYPES: readonly [PhysicalAddedRatio, FireAddedRatio, IceAddedRatio, ThunderAddedRatio, WindAddedRatio, QuantumAddedRatio, ImaginaryAddedRatio] = ...