Armor.IArmorJSCallback
Index
Methods
hurt
Parameters
params: IArmorHurtParams
additional data about damage
slot: ItemInstance
current armor item instance
index: number
armor slot, one of the EArmorType values
durability: number
maximum damage the armor
Returns boolean
true, if changes to the item parameter should be applied,falseotherwise.
tick
Called every tick if player wears the armor.
Parameters
slot: ItemInstance
current armor item instance
index: number
armor slot, one of the EArmorType values
durability: number
maximum damage the armor
Returns boolean
true, if changes to the item parameter should be applied,falseotherwise.
Called when player deals damage if player wears the armor.