Difference between revisions of "Tunneling monster"

From NetHackWiki
Jump to navigation Jump to search
m (See also: Needed a line break.)
m (Restructuring a bit.)
Line 7: Line 7:
 
No monster can tunnel through the specially designated [[undiggable]] [[wall]]s in some [[special levels]].
 
No monster can tunnel through the specially designated [[undiggable]] [[wall]]s in some [[special levels]].
  
[[Wall]] - When a monster tunnels through a rock [[wall]], there is a 1/5 chance of seeing the message "[[You hear crashing rock]]."<ref>{{sourcecode|dig.c|1106}}</ref>
+
==Effects==
 +
===[[Wall]]===
 +
When a monster tunnels through a rock [[wall]], there is a 1/5 chance of seeing the message "[[You hear crashing rock]]."<ref>{{sourcecode|dig.c|1106}}</ref>
  
[[Solid rock]] - When a monster tunnels through [[solid rock]] (the blank areas surrounding most of the dungeon) there is a 1/3 chance of some waste being produced. 1/4 of the time this waste will be a [[boulder]], the rest of the time it will be a single [[rock]]. No message is produced.<ref>{{sourcecode|dig.c|1071}}</ref><ref>{{sourcecode|dig.c|1125}}</ref>  
+
===[[Solid rock]]===
 +
When a monster tunnels through [[solid rock]] (the blank areas surrounding most of the dungeon) there is a 1/3 chance of some waste being produced. 1/4 of the time this waste will be a [[boulder]], the rest of the time it will be a single [[rock]]. No message is produced.<ref>{{sourcecode|dig.c|1071}}</ref><ref>{{sourcecode|dig.c|1125}}</ref>  
  
[[Tree]] - When a monster tunnels through a [[tree]], there is a 1/3 chance of a random piece of [[fruit]] being produced, chosen from amoung: [[apple]], [[orange]], [[pear]], [[banana]], [[eucalyptus leaf]]. No message is produced.<ref>{{sourcecode|dig.c|1121}}</ref>  
+
===[[Tree]]===
 +
When a monster tunnels through a [[tree]], there is a 1/3 chance of a random piece of [[fruit]] being produced, chosen from amoung: [[apple]], [[orange]], [[pear]], [[banana]], [[eucalyptus leaf]]. No message is produced.<ref>{{sourcecode|dig.c|1121}}</ref>  
  
[[Door]] - When a monster tunnels through a closed [[door]] there is a 1/3 chance of seeing the message "[[You feel an unexpected draft]]."<ref>{{sourcecode|dig.c|1077}}</ref>  
+
===[[Door]]===
 +
When a monster tunnels through a closed [[door]] there is a 1/3 chance of seeing the message "[[You feel an unexpected draft]]."<ref>{{sourcecode|dig.c|1077}}</ref>  
  
 
==Monsters capable of tunneling==
 
==Monsters capable of tunneling==
Line 36: Line 41:
  
 
'''[[You feel an unexpected draft]]'''
 
'''[[You feel an unexpected draft]]'''
:Produced 1/3 of the time when a monster tunnels through a [[door]].
+
:Produced 1/3 of the time when a monster tunnels through a [[door]].<ref>{{sourcecode|dig.c|1077}}</ref>
  
 
==Technical details==
 
==Technical details==
Monsters that can tunnel have the [[M1_TUNNEL]] monster attribute. Monsters that require picks and axes have the [[M1_NEEDPICK]] monster attribute in addition to [[M1_TUNNEL]]. No monster in vanilla [[NetHack]] has [[M1_NEEDPICK]] but NOT [[M1_TUNNEL]].
+
Monsters that can tunnel have the [[M1_TUNNEL]] monster attribute. Monsters that require picks and axes also have the [[M1_NEEDPICK]] monster attribute in addition to [[M1_TUNNEL]]. No monster in vanilla [[NetHack]] has [[M1_NEEDPICK]] but NOT [[M1_TUNNEL]].
  
 
==See also==
 
==See also==
 
* {{function|monmove.c|m_move}} -- decides when and if monsters can and will tunnel.
 
* {{function|monmove.c|m_move}} -- decides when and if monsters can and will tunnel.
* {{function|dig.c|mdig_tunnel}} -- performs the tunneling.
+
* {{function|dig.c|mdig_tunnel}} -- performs the tunneling. Called by m_move.
  
 
==References==
 
==References==
 
<references />
 
<references />

Revision as of 14:54, 29 February 2012

A Tunneling monster is a monster with the ability to bore tunnels through the normally solid dungeon. Tunneling monsters can tunnel through rock and closed doors, and chop down trees.

Some monsters can only tunnel through rock while wielding a pick-axe or dwarvish mattock, and through trees while wielding an axe or battle-axe. Both picks and axes suffice for doors. Note that in your natural (not polymorphed) form you fall into this category, though the game handles the players digging differently.

Note that ANY monster that can tunnel at all can go through both rock and wood. Rock moles can eat trees and woodchucks can apparently chuck rock.

No monster can tunnel through the specially designated undiggable walls in some special levels.

Effects

Wall

When a monster tunnels through a rock wall, there is a 1/5 chance of seeing the message "You hear crashing rock."[1]

Solid rock

When a monster tunnels through solid rock (the blank areas surrounding most of the dungeon) there is a 1/3 chance of some waste being produced. 1/4 of the time this waste will be a boulder, the rest of the time it will be a single rock. No message is produced.[2][3]

Tree

When a monster tunnels through a tree, there is a 1/3 chance of a random piece of fruit being produced, chosen from amoung: apple, orange, pear, banana, eucalyptus leaf. No message is produced.[4]

Door

When a monster tunnels through a closed door there is a 1/3 chance of seeing the message "You feel an unexpected draft."[5]

Monsters capable of tunneling

Without a pick/axe

With a pick/axe

Messages

You hear crashing rock

Produced 1/5 of the time when a monster tunnels through a rock wall.[6]

You feel an unexpected draft

Produced 1/3 of the time when a monster tunnels through a door.[7]

Technical details

Monsters that can tunnel have the M1_TUNNEL monster attribute. Monsters that require picks and axes also have the M1_NEEDPICK monster attribute in addition to M1_TUNNEL. No monster in vanilla NetHack has M1_NEEDPICK but NOT M1_TUNNEL.

See also

References