<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sm64decomp.tenry.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Health</id>
	<title>Health - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sm64decomp.tenry.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Health"/>
	<link rel="alternate" type="text/html" href="https://sm64decomp.tenry.net/wiki/index.php?title=Health&amp;action=history"/>
	<updated>2026-04-06T05:04:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://sm64decomp.tenry.net/wiki/index.php?title=Health&amp;diff=62&amp;oldid=prev</id>
		<title>Tenry at 17:33, 8 November 2020</title>
		<link rel="alternate" type="text/html" href="https://sm64decomp.tenry.net/wiki/index.php?title=Health&amp;diff=62&amp;oldid=prev"/>
		<updated>2020-11-08T17:33:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:33, 8 November 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot; &gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://ukikipedia.net/wiki/HP HP] on Ukikipedia&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://ukikipedia.net/wiki/HP HP] on Ukikipedia&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Coding]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key sm64decomp_wiki:diff::1.12:old-30:rev-62 --&gt;
&lt;/table&gt;</summary>
		<author><name>Tenry</name></author>
	</entry>
	<entry>
		<id>https://sm64decomp.tenry.net/wiki/index.php?title=Health&amp;diff=30&amp;oldid=prev</id>
		<title>Tenry: Created page with &quot;''Health'', also known as ''Power'', is what keeps Mario alive. On screen, the player only sees up to 8 units of health. Technically however, there are more values underneath....&quot;</title>
		<link rel="alternate" type="text/html" href="https://sm64decomp.tenry.net/wiki/index.php?title=Health&amp;diff=30&amp;oldid=prev"/>
		<updated>2020-11-02T15:37:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;Health&amp;#039;&amp;#039;, also known as &amp;#039;&amp;#039;Power&amp;#039;&amp;#039;, is what keeps Mario alive. On screen, the player only sees up to 8 units of health. Technically however, there are more values underneath....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;''Health'', also known as ''Power'', is what keeps Mario alive. On screen, the player only sees up to 8 units of health. Technically however, there are more values underneath.&lt;br /&gt;
&lt;br /&gt;
Mario's current health is stored as a 2-byte value in &amp;lt;code&amp;gt;gMarioState-&amp;gt;health&amp;lt;/code&amp;gt; and usually ranges from &amp;lt;code&amp;gt;0x0FF&amp;lt;/code&amp;gt; (dead) to &amp;lt;code&amp;gt;0x880&amp;lt;/code&amp;gt; (full live). The upper byte is used as the number of health units that's shown in the [[HUD]]. For example, &amp;lt;code&amp;gt;0x'''3'''60&amp;lt;/code&amp;gt; corresponds to 3 units of health, &amp;lt;code&amp;gt;0x'''5'''20&amp;lt;/code&amp;gt; corresponds to 5 units of health.&lt;br /&gt;
&lt;br /&gt;
== Where health is modified ==&lt;br /&gt;
There are a few occasions in which Mario's health is modified.&lt;br /&gt;
&lt;br /&gt;
=== Water ===&lt;br /&gt;
While underwater, Mario continously loses health. It's restored when he's on the surface. If the level terrain is set to snow, Mario loses three times health, even on surface.&lt;br /&gt;
&lt;br /&gt;
Mario's health, when in water, is updated in '''src/game/mario.c''' in the function &amp;lt;code&amp;gt;update_mario_health()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Where health is checked ==&lt;br /&gt;
There are several locations in code where health is checked for various actions, such as showing or hiding health in the HUD, changing Mario's animation or to make him die or drown.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [https://ukikipedia.net/wiki/HP HP] on Ukikipedia&lt;/div&gt;</summary>
		<author><name>Tenry</name></author>
	</entry>
</feed>