


Replaces the armor function and provides an armor multiplier configuration setting.
The standard armor formula is a piecewise function in which 1 armor = 1 damage reduction for up to half of the incoming damage, after which it has diminishing returns in proportion to its reciprocal. Refer to the wiki page for damage mechanics.

This mod replaces that piecewise function with a singular function:
float basis = 1.0f + (ac * armorEffectiveness / dmg);
return dmg / (basis * basis);
This function follows the behavior of the original relatively closely but has smooth scaling across all values. By default armor will be more effective vs larger hits and will behave more consistently vs varying hit sizes.
To report issues or request features contact me via discord in the Valheim modding server or via DM.
Valheim Modding Server
Discord ID: Kruft#6332