Stacking

Concerning Stacking

Functions

additive()

function additive(initial, value): number;

Defined in: stacking/additive.ts:8

Computes the additive stacking of two values.

Parameters

ParameterTypeDescription
initialnumberThe initial value.
valuenumberThe value to add to the accumulator.

Returns

number

The result of the addition.


multiplicative()

function multiplicative(initial, value): number;

Defined in: stacking/multiplicative.ts:15

Computes the multiplicative stacking of two values.

Parameters

ParameterTypeDescription
initialnumberThe initial value.
valuenumberThe value to add.

Returns

number

The result of the addition.

Example

const initial = 0.1; // Current Armor Penetration: 10%
const value = 0.1; // Additional Armor Penetration: 10%
const result = multiplicative(initial, value); // 19% Armor Penetration