User blog:Blupo/Calculating a Player's HP (with fancy math rendering)

''Originally from User blog:NightcoreRayRay/A Player's Total HP. Credit to NightcoreRayRay for the values and calculations.''

For this article, $$x$$ is a number in the domain $$[1, 85]$$ denoting the player's level.

Calculations may be inaccurate due to the uncertainty of oberserved values. For these calculations, a user was wearing a Whal Leather Cloak (10 defense) and was being hit with a weapon with 2172 damage.

Base HP A player's base HP is given by the function $$b(x)$$, where $$b(x)=55(x-1) + 100$$

Examples
 * A level 1 player would have 100 base HP ($$55(1-1) + 100 = 55(0) + 100 = 100$$)
 * A level 25 player would have 1420 base HP ($$55(25-1) + 100 = 55(24) + 100 = 1320 + 100 = 1420$$)
 * A level 85 player would have 4720 base HP ($$55(85-1) + 100 = 55(84) + 100 = 4620 + 100 = 4720$$)

Total HP A player's total HP is given by the function $$h(x)$$, where $$h(x)=b(x)+d(a)$$, where $$d(a)$$ is a function that returns the defense of a certain armor $$a$$.

Examples
 * A level 1 player with a base Novice Armor (18 defense) would have 118 HP ($$b(1) + 18 = 100 + 18 = 118$$)
 * A level 25 player with a base Kobold Iron Armor (124 defense) would have 1442 HP ($$b(25) + 124 = 1420 + 124 = 1442$$)
 * A level 85 player with a base Chaos Platemail (7536 defense) would have 12256 HP ($$b(85) + 7536 = 4720 + 7536 = 12256$$)