Resistances
Concerning Resistances, Damage Reduction and Resistance Penetration
Functions
dmgx()
function dmgx(resist): number;
Defined in: resist/dmgx.ts:15
Converts an amount of resist to a Damage Multiplier.
Parameters
Parameter | Type | Description |
---|---|---|
resist | number | The amount of armor or magic resist. |
Returns
number
The damage multiplier.
Example
const resist = 100; // 100 armor
const dmg = 100; // 100 damage
const result = dmg * dmgx(resist); // 50 damage
lethalityx()
function lethalityx(lvl): number;
Defined in: resist/lethality.ts:18
Calculates the multiplier to be used for lethality to armor penetration conversion.
Parameters
Parameter | Type | Description |
---|---|---|
lvl | number | Current champion level |
Returns
number
The multiplier to be used for converting lethality to flat armor penetration.
Example
const lethality = 100;
const level = 13;
const armorPenFlat = lethality * lethalityx(level); // ~88.9
postReductionResist()
function postReductionResist(
resist,
flatReduction,
percentReduction,
percentPenetration,
flatPenetration): number;
Defined in: resist/post-reduction-resist.ts:22
Calculates the resist after all reductions and penetrations have been applied.
Parameters
Parameter | Type | Description |
---|---|---|
resist | number | The initial magic resist or armor. |
flatReduction | number | Flat reduction of magic resist or armor. |
percentReduction | number | Percent reduction of magic resist or armor. |
percentPenetration | number | Percent penetration of magic resist or armor. |
flatPenetration | number | Flat penetration of magic resist or armor. |
Returns
number
The resist after all reductions and penetrations.
Remarks
Magic penetration and magic resist reduction work exactly like armor penetration and armor reduction. penetration and reduction are considered on the target champion in the following order:
- Reduction, flat.
- Reduction, percentage.
- Penetration, percentage.
- Penetration, flat.