Health: Difference between revisions

Sources: updated numbers
LVL (talk | contribs)
Simplified math a bit
Line 4: Line 4:
== Maximum Health ==
== Maximum Health ==
[[File:Kelvin base health 1.png|thumb|263x263px|Kelvin's starting base health at {{Souls|0}}]]
[[File:Kelvin base health 1.png|thumb|263x263px|Kelvin's starting base health at {{Souls|0}}]]
The formula for maximum health <math>HP_{Max}</math> is:


<math>
Max health is calculated as follows:
HP_{Max} = \left( HP_0 + N_{Boons} \times HP_{Boon} \right) \times (1 + \textstyle\sum HP_{Shop} ) + \textstyle\sum HP_{Bonus}
</math>


where <math>HP_0</math> is hero-specific starting base health, <math>N_{Boons}</math> is the number of [[Boons]] earned, <math>HP_{Boon}</math> is hero-specific added base health from each boon, <math>HP_{Shop}</math> are implicit base health percent increases from [[Vitality]] items, and <math>HP_{Bonus}</math> are bonus health flat increases from various sources. <math>HP_{Shop}</math> starts at 8% and increases with additional investment in the vitality items category.
<math>\text{Max HP} = (\text{Base HP} + \text{Boons Earned} \times \text{HP per Boon}) \times (1 + \text{Vitality Bonuses}) + \text{Bonus HP}</math>
 
Where:
* '''Base HP''' is the hero's starting health value.
* '''Boons Earned''' is the number of [[Boons]] the hero has earned, multiplied by the hero's hero-specific HP gained per Boon.
* '''Vitality Bonuses''' are the percentage-based health increases from [[Vitality]] items, starting at 8% and increasing with further Vitality investment.
* '''Bonus HP''' is flat health added from items, map pickups, and other sources, applied after the Vitality multiplier.


Note that the max health presented in-game is rounded up to the nearest integer.
Note that the max health presented in-game is rounded up to the nearest integer.
Line 36: Line 39:


=== Miscellaneous Health Modifiers ===
=== Miscellaneous Health Modifiers ===
With the purchase of [[Glass Cannon]], the hero's max health is reduced by 10% after the above calculations.
With the purchase of [[Glass Cannon]], the hero's max health is reduced by {{ItemData|Glass Cannon|MaxHealthLossPercent}} after the above calculations.


=== Example ===
=== Example ===
[[Kelvin]] begins the game with 600 Base HP. If Kelvin purchases two tier 1 vitality items, one of which grants 100 bonus health, his max health becomes:
[[Kelvin]] begins the game with 600 Base HP. If Kelvin purchases two tier 1 vitality items, one of which grants 100 bonus health, his max health becomes:


<math>HP_{Max} = 600 \times (1 + (0.10 + 0.10)) + 100 = 820</math>
<math>\text{Max HP} = 600 \times (1 + 0.10 + 0.10) + 100 = 820</math>


If Kelvin then earns a power increase, his base health increases by 50, and his max health becomes:
If Kelvin then earns a power increase, his base health increases by 50, and his max health becomes:


<math>HP_{Max} = (600 + 50) \times (1 + (0.10 + 0.10)) + 100 = 880</math>
<math>\text{Max HP} = (600 + 50) \times (1 + 0.10 + 0.10) + 100 = 880</math>


== Regaining Health ==
== Regaining Health ==