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

helix / AttributeModifierValue

Class: AttributeModifierValue โ€‹

Defined in: core/values/attribute-modifier.ts:16

A named change to an attribute: id, amount and how it combines.

Build one with AttributeModifier.add/multiplyBase/multiplyTotal/scale, then pass it to target.attribute(attr).apply(...).

Constructors โ€‹

Constructor โ€‹

new AttributeModifierValue(id, amount, operation): AttributeModifierValue

Defined in: core/values/attribute-modifier.ts:17

Parameters โ€‹

id โ€‹

IdValue

amount โ€‹

number

operation โ€‹

ModifierOperation

Returns โ€‹

AttributeModifierValue

Properties โ€‹

amount โ€‹

readonly amount: number

Defined in: core/values/attribute-modifier.ts:19


id โ€‹

readonly id: IdValue

Defined in: core/values/attribute-modifier.ts:18


operation โ€‹

readonly operation: ModifierOperation

Defined in: core/values/attribute-modifier.ts:20

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