# Source:NetHack 3.6.1/dat/dungeon.def
Below is the full text to dungeon.def from the source code of NetHack 3.6.1. To link to a particular line, write [[Source:NetHack 3.6.1/dat/dungeon.def#line123]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.
This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

&nbsp;# NetHack 3.6	dungeon.def	$NHDT-Date: 1462486876 2016/05/05 22:21:16 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.14 $
&nbsp;#	Copyright (c) 1990-95 by M. Stephenson
&nbsp;# NetHack may be freely redistributed.  See license for details.
&nbsp;#
&nbsp;#	The dungeon description file for the "standard" 3.1 NetHack.
&nbsp;#
&nbsp;#	Note:	The order of the definition of dungeons in this file
&nbsp;#		reflects in their order of creation in the real dungeon.
&nbsp;#		The "Main" branch must *always* be first.
&nbsp;#		Also note that the order of the dungeons in this file
&nbsp;#		determines the order in which branch levels are assigned.
&nbsp;#		If two dungeons have overlapping ranges for their entry
&nbsp;#		points, then you should list the dungeon with the _least_
&nbsp;#		number of choices for its branch level _first_.
&nbsp;#
&nbsp;
&nbsp;DUNGEON:	"The Dungeons of Doom" "D" (25, 5)
&nbsp;ALIGNMENT:	unaligned
&nbsp;BRANCH:		"The Gnomish Mines" @ (2, 3)
&nbsp;LEVEL:		"rogue" "R" @ (15, 4)
&nbsp;LEVELDESC:	roguelike
&nbsp;LEVEL:		"oracle" "O" @ (5, 5)
&nbsp;LEVALIGN:	neutral
&nbsp;CHAINBRANCH:	"Sokoban" "oracle" + (1, 0) up
&nbsp;RNDLEVEL:	"bigrm" "B" @ (10, 3) 40 10
&nbsp;CHAINBRANCH:	"The Quest" "oracle" + (6, 2) portal
&nbsp;BRANCH:		"Fort Ludios" @ (18, 4) portal
&nbsp;RNDLEVEL:	"medusa" "none" @ (-5, 4) 4
&nbsp;LEVALIGN:	chaotic
&nbsp;LEVEL:		"castle" "none" @ (-1, 0)
&nbsp;CHAINBRANCH:	"Gehennom" "castle" + (0, 0) no_down
&nbsp;BRANCH:		"The Elemental Planes" @ (1, 0) no_down up
&nbsp;
&nbsp;#
&nbsp;#	Gehennom
&nbsp;#
&nbsp;#	Now re-worked for 3.1, hell is hopefully going to be a little
&nbsp;#	less boring.  Also, in 3.1, the tower is not considered as a
&nbsp;#	part of hell, but is set up as a separate dungeon.
&nbsp;#
&nbsp;#	Gehennom is no longer considered "hellish" as a complete dungeon.
&nbsp;#	That is, fire resistance is no longer a condition for survival in
&nbsp;#	it.  However, Gehennom, and the special levels in it in particular,
&nbsp;#	is abundant with fire traps.  As a result, fire resistance is still
&nbsp;#	a prudent survival strategy in Gehennom.
&nbsp;#
&nbsp;#	Note:	Gehennom *must* be the second dungeon defined so that
&nbsp;#		monsters can properly migrate here under certain
&nbsp;#		circumstances.
&nbsp;#
&nbsp;DUNGEON:	"Gehennom" "G" (20, 5)
&nbsp;DESCRIPTION:	mazelike
&nbsp;DESCRIPTION:	hellish
&nbsp;ALIGNMENT:	noalign
&nbsp;BRANCH:		"Vlad's Tower" @ (9, 5) up
&nbsp;LEVEL:		"valley" "V" @ (1, 0)
&nbsp;LEVEL:		"sanctum" "none" @ (-1, 0)
&nbsp;LEVEL:		"juiblex" "J" @ (4, 4)
&nbsp;LEVEL:		"baalz" "B" @ (6, 4)
&nbsp;LEVEL:		"asmodeus" "A" @ (2, 6)
&nbsp;LEVEL:		"wizard1" "none" @ (11, 6)
&nbsp;CHAINLEVEL:	"wizard2" "X" "wizard1" + (1, 0)
&nbsp;CHAINLEVEL:	"wizard3" "Y" "wizard1" + (2, 0)
&nbsp;LEVEL:		"orcus" "O" @ (10, 6)
&nbsp;LEVEL:		"fakewiz1" "F" @ (-6,4)
&nbsp;LEVEL:		"fakewiz2" "G" @ (-6,4)
&nbsp;
&nbsp;#
&nbsp;#	The Mines of the Gnomes of Zurich.
&nbsp;#
&nbsp;DUNGEON:	"The Gnomish Mines" "M" (8, 2)
&nbsp;ALIGNMENT:	lawful
&nbsp;DESCRIPTION:	mazelike
&nbsp;RNDLEVEL:	"minetn" "T" @ (3, 2) 7
&nbsp;LEVELDESC:	town
&nbsp;RNDLEVEL:	"minend" "E" @ (-1, 0) 3
&nbsp;
&nbsp;#
&nbsp;#	The Questdungeon
&nbsp;#
&nbsp;#	This is a proto-dungeon.  The level file names will be prepended with
&nbsp;#	three letter role abbreviation during initialization, replacing "x".
&nbsp;#	A special "x-fill" level must be defined in the levels description
&nbsp;#	file.  It will be used for all levels not defined explicitly below.
&nbsp;#
&nbsp;DUNGEON:	"The Quest" "Q" (5, 2)
&nbsp;LEVEL:	"x-strt" "none" @ (1, 1)
&nbsp;LEVEL:	"x-loca" "L" @ (3, 1)
&nbsp;LEVEL:	"x-goal" "none" @ (-1, 0)
&nbsp;
&nbsp;#
&nbsp;# Sokoban
&nbsp;#
&nbsp;DUNGEON:		"Sokoban" "none" (4, 0)
&nbsp;DESCRIPTION:    mazelike
&nbsp;ALIGNMENT:      neutral
&nbsp;ENTRY:          -1
&nbsp;RNDLEVEL:		"soko1" "none" @ (1, 0) 2
&nbsp;RNDLEVEL:		"soko2" "none" @ (2, 0) 2
&nbsp;RNDLEVEL:		"soko3" "none" @ (3, 0) 2
&nbsp;RNDLEVEL:		"soko4" "none" @ (4, 0) 2
&nbsp;
&nbsp;#
&nbsp;#	The Central Vault of Croesus.
&nbsp;#
&nbsp;DUNGEON:	"Fort Ludios" "K" (1, 0)
&nbsp;DESCRIPTION:	mazelike
&nbsp;ALIGNMENT:	unaligned
&nbsp;LEVEL:		"knox" "K" @ (-1, 0)
&nbsp;#
&nbsp;#	Vlad's Tower
&nbsp;#
&nbsp;#	It has been removed from Gehennom, and it is surrounded by stone.
&nbsp;#	Must not allow bones files for its top level.
&nbsp;#
&nbsp;DUNGEON:	"Vlad's Tower" "T" (3, 0)
&nbsp;PROTOFILE:	"tower"
&nbsp;DESCRIPTION:	mazelike
&nbsp;ALIGNMENT:	chaotic
&nbsp;ENTRY:		-1
&nbsp;LEVEL:		"tower1" "none" @ (1, 0)
&nbsp;# it isn't necessary to list these last two, but doing so makes them
&nbsp;# show up in ^O output and in the level teleport menu
&nbsp;LEVEL:		"tower2" "none" @ (2, 0)
&nbsp;LEVEL:		"tower3" "none" @ (3, 0)
&nbsp;
&nbsp;#
&nbsp;#	The Endgame levels
&nbsp;#
&nbsp;#	Enter on 2nd level from bottom; 1st (from bottom) is a
&nbsp;#	placeholder for surface level, and should be unreachable.
&nbsp;#	[Note: the name "dummy" is checked for in init_dungeons().]
&nbsp;#
&nbsp;DUNGEON:	"The Elemental Planes" "E" (6, 0)
&nbsp;DESCRIPTION:	mazelike
&nbsp;ALIGNMENT:	unaligned
&nbsp;ENTRY:		-2
&nbsp;LEVEL:		"astral" "none" @ (1, 0)
&nbsp;LEVEL:		"water"  "none" @ (2, 0)
&nbsp;LEVEL:		"fire"   "none" @ (3, 0)
&nbsp;LEVEL:		"air"    "none" @ (4, 0)
&nbsp;LEVEL:		"earth"  "none" @ (5, 0)
&nbsp;LEVEL:		"dummy"  "none" @ (6, 0)