# Special room
Not to be confused with themed room.
A special room is different from the normal rooms of the randomly-generated Dungeons of Doom. For example, it might contain a shop or a collection of monsters. They typically appear in random rooms-and-corridors levels in the Dungeons of Doom, never in mazes or cavern levels, although many special levels also contain special rooms.
NetHack attempts to generate most special rooms in the order they appear in the below table. Rooms lower on the table can only be generated if all rooms higher on the table failed to generate. For example, a temple is created with probability 1/5 from level 9 onwards in an ordinary rooms-and-corridors level in the main dungeon, provided the level does not already have a shop, a throne room, a leprechaun hall or a zoo.[1]
Vaults are an exception: they are generated independently of other special rooms.[2]

Name
Min DL
Frequency
Generation restrictions

Shop
2
3/DL
Must be above Medusa's Island[3], room must have 1 door and no stairs

Throne room
5
1/6

Leprechaun hall
6
1/8
Leprechauns must not be genocided/extinct[4]

Zoo
7
1/7

Temple
9
1/5

Beehive
10
1/5
Killer bees must not be genocided/extinct[5]

Graveyard
12
1/6

Anthole
13
1/8
Ants must not be genocided/extinct[6][7]

Barracks
15
1/4
Soldiers must not be extinct[8]

Swamp
16
1/6

Cockatrice nest
17
1/8
Cockatrices must not be genocided/extinct[9]

Vault
1

(Generated independently of other special rooms)

Variants
Many variants add new special rooms or change the behavior of these existing special rooms.

Main article: Special room (SLASH'EM)
Main article: Special room (UnNetHack)
Main article: Special room (dNetHack)
References

↑ src/mklev.c in NetHack 3.6.6, line 776

↑ src/mklev.c in NetHack 3.6.6, line 735

↑ src/mklev.c in NetHack 3.6.6, line 766

↑ src/mklev.c in NetHack 3.6.6, line 772

↑ src/mklev.c in NetHack 3.6.6, line 778

↑ src/mklev.c in NetHack 3.6.6, line 783

↑ src/mkroom.c in NetHack 3.6.6, line 484

↑ src/mklev.c in NetHack 3.6.6, line 786

↑ src/mklev.c in NetHack 3.6.6, line 791

External links
More information at http://www.steelypips.org/nethack/343/room-343.html