


Replaces the piecewise armor function with a singular one and provides a configuration setting for general armor effectiveness.
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. (Please see 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 all values. By default armor will be more effective vs larger hits and will behave more consistently vs varying hit sizes.
Adjusting armorEffectiveness value is equivalent to multiplying your current armor value.