Stacking
Concerning Stacking
Functions
additive()
function additive(initial, value): number;
Defined in: stacking/additive.ts:8
Computes the additive stacking of two values.
Parameters
Parameter | Type | Description |
---|---|---|
initial | number | The initial value. |
value | number | The 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
Parameter | Type | Description |
---|---|---|
initial | number | The initial value. |
value | number | The 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