Appearance
helix / AttributeModifier
Variable: AttributeModifier โ
AttributeModifier:
object
Defined in: core/values/attribute-modifier.ts:24
Type Declaration โ
add โ
add: (
id,amount) =>AttributeModifierValue
Adds amount to the value (add_value).
Parameters โ
id โ
amount โ
number
Returns โ
multiplyBase โ
multiplyBase: (
id,amount) =>AttributeModifierValue
Adds amount x base (add_multiplied_base).
Parameters โ
id โ
amount โ
number
Returns โ
multiplyTotal โ
multiplyTotal: (
id,amount) =>AttributeModifierValue
Multiplies the total by 1 + amount (add_multiplied_total).
Parameters โ
id โ
amount โ
number
Returns โ
scale โ
scale: (
id,factor) =>AttributeModifierValue
Makes the base count factor times, e.g. 0.85 for 15% slower.
Parameters โ
id โ
factor โ
number