Skip to content

Profectus / game/modifiers / createExponentialModifier

Function: createExponentialModifier() ​

createExponentialModifier<T, S>(optionsFunc): S

Create a modifier that raises the input value to the power of some value.

Type Parameters ​

• T extends ExponentialModifierOptions

• S = OperationModifier<T>

Parameters ​

optionsFunc ​

() => T

Exponential modifier options.

Returns ​

S

Defined in ​

profectus/src/game/modifiers.tsx:174