No death damage: Difference between revisions

no edit summary
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'''....")
 
imported>Leoetlino
No edit summary
 
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]]
Anonymous user