Editing User:SerpentofSet/HealthMathGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
== Math == | == Math == | ||
The formula for max health | The formula for max health is: | ||
<math> | <math> | ||
HP_{Max} = \left( HP_0 + | HP_{Max} = \left( HP_0 + \text{Level} \times PI \right) \times (1 + \textstyle\sum HP_{Shop} ) + \textstyle\sum HP_{Bonus} | ||
</math> | </math> | ||
where < | where HP<sub>Max</sub> is max health, HP<sub>0</sub> is starting health, PI is the hero-specific [[Level#Power Increase Tables|Power Increase]] from each level, HP<sub>Shop</sub> are the implicit base health percent increases from [[Vitality]] items, and HP<sub>Bonus</sub> 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. | With the purchase of [[Glass Cannon]], the player's max health is reduced by 15% after the above calculations. | ||
===Example=== | ===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: | [[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: | ||
< | HP<sub>Max</sub> = 600 * (1 + (0.11 + 0.11)) + 160 = 892 | ||
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: | ||
< | HP<sub>Max</sub> = 650 * (1 + (0.11 + 0.11)) + 160 = 953 | ||