Skip to content

Profectus / game/modifiers / createAdditiveModifier

Function: createAdditiveModifier() ​

createAdditiveModifier<T, S>(optionsFunc): S

Create a modifier that adds some value to the input value.

Type Parameters ​

• T extends AdditiveModifierOptions

• S = OperationModifier<T>

Parameters ​

optionsFunc ​

() => T

Additive modifier options.

Returns ​

S

Defined in ​

profectus/src/game/modifiers.tsx:60