Health: Difference between revisions
SerpentofSet (talk | contribs) |
SerpentofSet (talk | contribs) →Math: rewrite math section, will likely condense the previous sections into this one soon-ish |
||
Line 89: | Line 89: | ||
== Math == | == Math == | ||
The formula for max health | The formula for max health <math>HP_{Max}</math> is: | ||
<math> | <math> | ||
HP_{Max} = \left( HP_0 + N_{PI} \times PI_{HP} \right) \times (1 + \textstyle\sum HP_{Shop} ) + \textstyle\sum HP_{Bonus} | |||
</math> | </math> | ||
where <math>HP_0</math> is hero-specific starting health, <math>N_{PI}</math> is the number of [[Level|Power Increases]] earned, <math>PI_{HP}</math> is hero-specific added base health from each power increase, <math>HP_{Shop}</math> are the implicit base health percent increases from [[Vitality]] items, and <math>HP_{Bonus}</math> are the miscellaneous bonus health flat increases from items, [[Golden Statue|Golden Statues]], [[Powerup Buff|Survival Powerups]], the [[Rejuvenator]], etc. | |||
[[ | |||
With the purchase of [[Glass Cannon]], the player's max health is reduced by 15% after the above calculations. | |||
Note that the max health presented in-game is rounded to the nearest integer. | |||
===Example=== | |||
[[Kelvin]] begins the game with 600 Base HP. If Kelvin purchases the tier 1 vitality items [[Extra Health]] and [[Extra Stamina]], the first of which also grants 160 bonus health, his max health becomes: | |||
( | <math>HP_{Max} = 600 \times (1 + (0.11 + 0.11)) + 160 = 892</math> | ||
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.11 + 0.11)) + 160 = 953</math> | |||
== Health Bars == | == Health Bars == |