Jump to content

User:SerpentofSet/HealthMath: Difference between revisions

From Deadlock Wiki
m Math: removed mention of levels
Line 3: Line 3:


<math>
<math>
HP_{Max} = \left( HP_0 + \text{Level} \times PI \right) \times (1 + \textstyle\sum HP_{Shop} ) + \textstyle\sum HP_{Bonus}
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_{Max}</math> is max health, <math>HP_0</math> is starting health, <math>PI</math> is the hero-specific [[Level#Power Increase Tables|Power Increase]] from each level, <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.
where <math>HP_{Max}</math> is max health, <math>HP_0</math> is starting health, <math>N_{PI}</math> is the number of [[Level|Power Increases]] earned, <math>PI_{HP}</math> is the 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.
With the purchase of [[Glass Cannon]], the player's max health is reduced by 15% after the above calculations.

Revision as of 16:27, 14 October 2024

Math

The formula for max health is:

HPMax=(HP0+NPI×PIHP)×(1+HPShop)+HPBonus

where HPMax is max health, HP0 is starting health, NPI is the number of Power Increases earned, PIHP is the hero-specific added base health from each power increase, HPShop are the implicit base health percent increases from Vitality items, and HPBonus are the miscellaneous bonus health flat increases from items, Golden Statues, 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:

HPMax=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:

HPMax=(600+50)×(1+(0.11+0.11))+160=953