


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. Refer to the wiki page for details.

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. Armor will be more effective vs larger hits and behave more consistently vs varying hit sizes.
The following settings can be used to adjust the armor amounts on players and gear:
playerBaseArmor Add flat armor to players.
gearArmorMultiplier Multiply base armor of Head, Chest, and Leg pieces.
gearFlatArmor Add flat armor to Head, Chest, and Leg pieces.
gearArmorPerLevel Armor added per quality level for Head, Chest, and Leg pieces.
capeFlatArmor Add flat armor to Capes.
capeArmorPerLevel Armor added per quality level for Capes.
These results of applying these settings are reflected on their respective tooltips.
ServerSync enabled
Valheim Modding Server
Github
Discord Kruft#6332