Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

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 โ€‹

IdValue

amount โ€‹

number

Returns โ€‹

AttributeModifierValue

multiplyBase โ€‹

multiplyBase: (id, amount) => AttributeModifierValue

Adds amount x base (add_multiplied_base).

Parameters โ€‹

id โ€‹

IdValue

amount โ€‹

number

Returns โ€‹

AttributeModifierValue

multiplyTotal โ€‹

multiplyTotal: (id, amount) => AttributeModifierValue

Multiplies the total by 1 + amount (add_multiplied_total).

Parameters โ€‹

id โ€‹

IdValue

amount โ€‹

number

Returns โ€‹

AttributeModifierValue

scale โ€‹

scale: (id, factor) => AttributeModifierValue

Makes the base count factor times, e.g. 0.85 for 15% slower.

Parameters โ€‹

id โ€‹

IdValue

factor โ€‹

number

Returns โ€‹

AttributeModifierValue

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.