Iron bars
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.6.0. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-360}} tag to the current version's tag or {{noversion}} as appropriate.
Iron bars are a dungeon feature represented by #.
You cannot walk through them or dig through them, and objects thrown through them have a chance of being stopped by the iron bars. Specifically, "large" objects such as most melee weapons, most armor or boulders will be always stopped, while "small" objects such as most projectiles (including spears, but not daggers or boomerangs) or potions will pass through with 80% chance,[1][2] or always when the shooter is next to the bars in question. Spells and ray/beam attacks (such as dragon breath) will pass right through them as if they weren't there. All monsters which are whirly, amorphous, phasing, tiny, or slithy (but not large) can pass through them,[3] including you if you are polymorphed into such a monster.
A potion of acid can be used to dissolve iron bars by hitting them while wielding it.[4][5] Throwing also might work, but as noted above, the potion only has a 20% chance of hitting the bars. Acidic breath of a yellow dragon will dissolve the bars as well.[6]
Randomly generated inaccessible closets have a 20% chance of having iron bars where the door would be. This is the only time iron bars will appear on ordinary dungeon levels in vanilla, meaning there is a guaranteed scroll of teleportation past the bars. There are guaranteed iron bars in the Wizard, Tourist, and Ranger quests. The Minetown variant Orcish town will also have several iron bars.
History
A user has suggested improving this page or section as follows:
"Bug still valid for 3.6.0?"
Dissolving iron bars with acid was added in 3.6.1.
Prior to version 3.6.0, iron bars were never randomly generated in vanilla NetHack.
In version 3.4.0, a monster that can pass through iron bars can still do so even while engulfing a monster that cannot. This may be a bug.
Variants
SLASH'EM
In SLASH'EM, iron bars may be found in some of the new levels of Sokoban, but aren't randomly generated. They are also found in Grund's Stronghold, and may comprise the walls of some maze levels, like in Gehennom. Iron bar mazes are especially annoying during the ascension run.
Most creatures cannot pass through the bars, but a doppelganger character may still liquid leap through them.
UnNetHack
In UnNetHack, iron bars may be found in some of the new levels of Sokoban. They sometimes are generated on room-and-corridor dungeon levels instead of doorways. There is a small chance that levels in Gehennom may have iron bars instead of walls, making it difficult to hack a path.
Creatures are able to pass through Sokoban bars. Some are created around the exit if you are attempting to steal from the Black Market.
Iron bars may be eaten by metallivores[7][8] and dissolved by a acid breath (with a 20% chance)[9] or a potion of acid.[10]
SporkHack
In SporkHack, iron bars are sometimes generated on room-and-corridor dungeon levels instead of doorways.
dNetHack
In dNetHack, iron bars can be broken with wands of striking.
References
- ↑ hit_bars in mthrowu.c
- ↑ mthrowu.c in NetHack 3.6.1, line 463
- ↑ passes_bars in mondata.c
- ↑ hack.c in NetHack 3.6.1, line 1569
- ↑ mthrowu.c in NetHack 3.6.1, line 1115
- ↑ zap.c in NetHack 3.6.1, line 4425
- ↑ src/hack.c in UnNetHack revision 1499, line 731
- ↑ src/monmove.c in UnNetHack revision 1499, line 1307
- ↑ src/zap.c in UnNetHack revision 1499, line 3915
- ↑ src/mthrowu.c in UnNetHack revision 1499, line 856
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.6.0. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-360}} tag to the current version's tag or {{noversion}} as appropriate.