User:SerpentofSet/HealthMath

From Deadlock Wiki
Revision as of 01:14, 14 October 2024 by SerpentofSet (talk | contribs) (Created page with "== Math == The formula for max health is: <math> HP_{Max} = \left\lceil \left( HP_0 + \text{Level} \times PI \right) \times (1 + \textstyle\sum HP_{Shop} ) + \textstyle\sum HP_{Bonus} \right\rceil </math> where HP<sub>Max</sub> is max health, HP<sub>0</sub> is starting health, PI is the hero-specific Power Increase from each level, HP<sub>Shop</sub> are the implicit base health percent increases from Vitality items, and HP<sub>Bonus...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Math

The formula for max health is:

where HPMax is max health, HP0 is starting health, PI is the hero-specific Power Increase from each level, 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% before rounding down.

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 = 650 * (1 + (0.11 + 0.11)) + 160 = 953