Difference between revisions of "No death damage"

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
(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'''....")
 
 
Line 1: Line 1:
'''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'''.
+
'''No death damage''' is the maximum damage that Link can take without dying even when he would normally not survive<ref>{{addr|a=0x7100851A24|ver=nx-1.5.0}}</ref>. This is used to implement '''one-hit kill protection'''.
 +
 
 +
In Master Mode, no death damage is disabled (when [[aoc2]] flag 0x8 is set)<ref>{{addr|a=0x7100851A24|ver=nx-1.5.0}}</ref>.
  
 
== Calculation ==
 
== Calculation ==
The no death damage value is calculated as follows:
+
The no death damage value is calculated as follows<ref>{{addr|a=0x7100886B08|ver=nx-1.5.0}}</ref>:
  
 
'''NoDeathDamageBase''' + floor('''PlayerMaxLife''' × '''NoDeathDamageAdd''') / 4
 
'''NoDeathDamageBase''' + floor('''PlayerMaxLife''' × '''NoDeathDamageAdd''') / 4
  
 
where NoDeathDamageBase and NoDeathDamageAdd are parameters in Link's [[GeneralParamList]]. In 1.5.0, those values are 20 (= 5 hearts) and 4 (= 1 heart) respectively.
 
where NoDeathDamageBase and NoDeathDamageAdd are parameters in Link's [[GeneralParamList]]. In 1.5.0, those values are 20 (= 5 hearts) and 4 (= 1 heart) respectively.
 +
 +
== References ==
 +
<references/>
 +
 
[[Category:Game mechanics]]
 
[[Category:Game mechanics]]

Latest revision as of 01:04, 12 January 2020

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]