No death damage

Revision as of 01:04, 12 January 2020 by imported>Leoetlino
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

In Master Mode, no death damage is disabled (when aoc2 flag 0x8 is set)[2].

Calculation

The no death damage value is calculated as follows[3]:

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.

References

  1. 0x7100851A24 [nx-1.5.0 executable]
  2. 0x7100851A24 [nx-1.5.0 executable]
  3. 0x7100886B08 [nx-1.5.0 executable]