I would like to know precisely the influence of the different factors (equipment, attack & defense, level) in combat in the MMORPG Stendhal. I did not found the formula computing the hit points, is it available somewhere?
Edit: as answered, the formula is quite complex; a few things I was not sure of that can be confirmed by looking at the code:
- the x between DEF and the defense provided by items is not misleading: these two stats are multiplied (similar for ATK);
- the actual value for defense is a geometric mean (square root of the product) between the above product and the level;
- both 1. and 2. are mitigated by additive and multiplicative constants, so at low level the level does not count very much.
There are some strange things in the code, though. For example, the weighting of the level for the computation of the max defense is given by a multiplicative constant. But inside a geometric mean, the right way to weight should be to use level raised to a constant power. This is mitigated by the additive constant NEWBIE_DEF that complicates the interpretation, but the formula still makes little sense to me.