No death damage

From ZeldaMods (Breath of the Wild)
Revision as of 00:59, 12 January 2020 by imported>Leoetlino (Created page with "'''No death damage''' is the maximum damage that Link can take without dying even when he would normally not survive. This is used to implement '''one-hit kill protection'''....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

No death damage is the maximum damage that Link can take without dying even when he would normally not survive. This is used to implement one-hit kill protection.

Calculation

The no death damage value is calculated as follows:

NoDeathDamageBase + floor(PlayerMaxLife × NoDeathDamageAdd) / 4

where NoDeathDamageBase and NoDeathDamageAdd are parameters in Link's bgparamlist. In 1.5.0, those values are 20 (= 5 hearts) and 4 (= 1 heart) respectively.