Difference between revisions of "Amphibious"

From NetHackWiki
Jump to navigation Jump to search
(Created page as stub.)
 
m (update to 3.6.6 and fix reference)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{todo|What's the difference between [[swimming]] and amphibiousness?}}
 +
 +
An amphibious monster is able to survive on both land and water. Such a monster is identified by the macro '''amphibious(ptr)'''{{refsrc|include/mondata.h|38|nethack=3.6.6}} which checks for either of the tags '''[[breathless|M1_BREATHLESS]]''' or '''[[M1_AMPHIBIOUS]]''' (see those articles for lists). Note that amphibiousness does not protect items from getting wet.
 +
 +
Also note that, rather confusingly, "amphibious" may include or exclude breathless non-amphibious monsters, depending on which of the macro and the tag is being referred to. Unless the meaning is obvious from context or the distinction is irrelevant, please specify which is meant.
 +
 +
==Messages==
 +
{{message|You fall into the water. But you aren't drowning. You touch bottom.|You are amphibious and you entered water}}
 +
{{message|You are on solid land again.|You are amphibious and you left water}}
 +
 +
==References==
 +
<references/>
 +
 +
[[Category:Properties]]
 +
[[Category:Monster attributes]]
 +
{{nethack-366}}
 
{{stub}}
 
{{stub}}
{{todo|swimming and amphibious are different monster attributes, see is_swimmer in mondata that checks M1_SWIM and amphibious in mondata that checks both M1_AMPHIBIOUS and M1_BREATHLESS}}
 
 
Some monsters like [[medusa]] are able to survive on both land and water.
 

Latest revision as of 13:25, 15 August 2022

A user has suggested improving this page or section as follows:

"What's the difference between swimming and amphibiousness?"

An amphibious monster is able to survive on both land and water. Such a monster is identified by the macro amphibious(ptr)[1] which checks for either of the tags M1_BREATHLESS or M1_AMPHIBIOUS (see those articles for lists). Note that amphibiousness does not protect items from getting wet.

Also note that, rather confusingly, "amphibious" may include or exclude breathless non-amphibious monsters, depending on which of the macro and the tag is being referred to. Unless the meaning is obvious from context or the distinction is irrelevant, please specify which is meant.

Messages

You fall into the water. But you aren't drowning. You touch bottom.
You are amphibious and you entered water
You are on solid land again.
You are amphibious and you left water

References

This page is a stub. Should you wish to do so, you can contribute by expanding this page.