Difference between revisions of "Closet"

From NetHackWiki
Jump to navigation Jump to search
(Closets are referred to as niches in the source code; references; tag as 343.)
m (xNetHack: rephrase)
 
(14 intermediate revisions by 9 users not shown)
Line 1: Line 1:
A '''closet''' is a single square located behind a door. Often the door is a [[secret door]].  
+
In ''[[NetHack]]'', a '''closet''', also known as a '''niche''', is a single square that is often located behind a [[door]] or wall.{{refsrc|src/mklev.c|451|version=NetHack 3.6.7|comment="place_niche"}}
  
Closets are referred to as '''niches''' in the source code<ref>{{sourcecode|mklev.c|462}}</ref>.
+
==Description==
 +
Closets are only created in ordinary rooms that are generated as part of a room-and-corridors map at level creation. Monsters can be generated inside closets just like on any other square.
  
Sometimes closets are generated without doors leading to them. The only way to get to these is for a corridor to be generated adjacent to them, or to teleport or dig in. Such closets always have a [[scroll of teleportation]] inside, and a [[potion of object detection]] will reveal its presence. Every closet has either a door or a scroll of teleportation.
+
{{frac|6|7}} of closets will have a door leading into them, with {{frac|4|5}} of doors created this way being [[secret door]]s. If a closet is created with no door, there is a {{frac|5}} chance that the [[wall]] blocking the closet is replaced with [[iron bars]], and a separate {{frac|2|3}} chance of a {{mcsl|@}} [[corpse]] being generated in the closet{{refsrc|src/mklev.c|529|version=NetHack 3.6.7}}{{refsrc|src/mklev.c|531|version=NetHack 3.6.7}} - the closet will also have a [[scroll of teleportation]] if it is not generated on a [[no-teleport level]], and has a {{frac|3}} chance of containing an additional random item.{{refsrc|src/mklev.c|536|version=NetHack 3.6.7}}{{refsrc|src/mklev.c|539|version=NetHack 3.6.7}} The scroll is present to ensure that a character teleported into such a closet can escape if they lack any other means of doing so, though it is also possible to dig into or out of them unless the level is [[undiggable]]; the closet may also be connected to a corridor, allowing normal access.
  
There is sometimes writing in the dust outside. The engraving '''ad aerarium''' (from the Latin "to the treasure") indicates that the closet contains a [[vault]] teleporter, and the engraving '''[[Vlad the Impaler|Vlad]] was here''' indicates that there is a [[trap door]] inside. On deeper levels, a closet marked with ''ad aerarium'' may have a [[level teleporter]] instead.
+
Some closets can be generated with a [[teleportation trap]] that points to a [[vault]], a [[level teleporter]] or a [[trap door]] - the former two closet types will have a faded [[engraving]] of '''ad aerarium''' (from the Latin "to the treasure") in the dust outside, while the latter will have a faded engraving of '''[[Vlad the Impaler|Vlad]] was here''' instead. The presence of a level teleporter in an "ad aerarium" closet is a [[pun]] on a supposed secondary meaning of "aerarium" as sky.<ref>This does not appear to be an actual secondary meaning - it may be an error on the part of the [[DevTeam]], which could be due to confusion between the prefixes <i>aes-</i> relating to money, from which 'aerarium' derives, and <i>aer-</i>, which relates to air/sky/flight.</ref>
  
Monsters can be generated inside closets just like on any other square.
+
==Strategy==
 +
Lockable closets can be used as a "safe area" to test certain items or rest via {{kbd|.}} to recover [[HP]]. They can also be used for various other purposes, e.g. farming for [[dragon scales]] to create [[dragon scale mail]].
 +
 
 +
==Variants==
 +
===SporkHack===
 +
In [[SporkHack]], a [[skull]] may be generated inside an inaccessible closet instead of a corpse.
 +
 
 +
===xNetHack===
 +
In [[xNetHack]], if a [[thiefstone]] steals an item from you but there is no [[chest]] available on the level, it will find an accessible closet to teleport itself and the item to.
  
 
==References==
 
==References==
 
<references/>
 
<references/>
 
+
{{nethack-367}}
 
[[Category:Dungeon features]]
 
[[Category:Dungeon features]]
{{nethack-343}}
 

Latest revision as of 08:22, 27 January 2024

In NetHack, a closet, also known as a niche, is a single square that is often located behind a door or wall.[1]

Description

Closets are only created in ordinary rooms that are generated as part of a room-and-corridors map at level creation. Monsters can be generated inside closets just like on any other square.

67 of closets will have a door leading into them, with 45 of doors created this way being secret doors. If a closet is created with no door, there is a 15 chance that the wall blocking the closet is replaced with iron bars, and a separate 23 chance of a @ corpse being generated in the closet[2][3] - the closet will also have a scroll of teleportation if it is not generated on a no-teleport level, and has a 13 chance of containing an additional random item.[4][5] The scroll is present to ensure that a character teleported into such a closet can escape if they lack any other means of doing so, though it is also possible to dig into or out of them unless the level is undiggable; the closet may also be connected to a corridor, allowing normal access.

Some closets can be generated with a teleportation trap that points to a vault, a level teleporter or a trap door - the former two closet types will have a faded engraving of ad aerarium (from the Latin "to the treasure") in the dust outside, while the latter will have a faded engraving of Vlad was here instead. The presence of a level teleporter in an "ad aerarium" closet is a pun on a supposed secondary meaning of "aerarium" as sky.[6]

Strategy

Lockable closets can be used as a "safe area" to test certain items or rest via . to recover HP. They can also be used for various other purposes, e.g. farming for dragon scales to create dragon scale mail.

Variants

SporkHack

In SporkHack, a skull may be generated inside an inaccessible closet instead of a corpse.

xNetHack

In xNetHack, if a thiefstone steals an item from you but there is no chest available on the level, it will find an accessible closet to teleport itself and the item to.

References

  1. src/mklev.c in NetHack 3.6.7, line 451: "place_niche"
  2. src/mklev.c in NetHack 3.6.7, line 529
  3. src/mklev.c in NetHack 3.6.7, line 531
  4. src/mklev.c in NetHack 3.6.7, line 536
  5. src/mklev.c in NetHack 3.6.7, line 539
  6. This does not appear to be an actual secondary meaning - it may be an error on the part of the DevTeam, which could be due to confusion between the prefixes aes- relating to money, from which 'aerarium' derives, and aer-, which relates to air/sky/flight.