# File: dungeon.txt


# This file is used to initialize the "dungeon" information for 
# PWMAngband.

# Do not modify this file unless you know exactly what you are doing,
# unless you wish to risk possible system crashes and broken savefiles.

# === Understanding dungeon.txt ===

# name : dungeon name
# wpos : x coordinate : y coordinate
# min-depth : minimum dungeon depth
# max-depth : maximum dungeon depth
# flags : dungeon flags
# floor : floor feature : chance of getting the feature
# wall : wall feature : chance of getting the feature
# rule : chance of using the rule : apply to all monsters
# rule-flags : monster flags
# rule-spells : monster spell flags
# rule-symbols : monster symbols

# Set min-depth to the depth of the first level of the dungeon.
# Leaving min-depth unset means that the first level of the dungeon has a
# standard depth of 1. This should always be the case for the Main Angband
# dungeon.

# Set max-depth to the depth of the corresponding "force-location" unique
# in monster.txt to create the "final level dungeon boss".
# Leaving max-depth unset means "maximum depth allowed" (defined in
# constants.txt). This should always be the case for the Main Angband dungeon.

# 'flags' are dungeon flags (see list-dungeon-flags.h)

# 'floor' are dungeon features that can replace basic floors
# 'wall' are dungeon features that can replace basic walls

# 'rule' are dungeon rules to restrict the possible monsters
# 'rule-flags' are monster flags checked by the rule
# 'rule-spells' are monster spell flags checked by the rule
# 'rule-symbols' are monster symbols checked by the rule


# Main Angband dungeon
name:Angband
wpos:-9:37
rule:100:1

# The Training Cave
name:The Training Cave
wpos:-21:20
min-depth:1
max-depth:2
flags:EMPTY
rule:100:1

# The Orc Cave (boss: Azog, King of the Uruk-Hai)
name:The Orc Cave
wpos:-14:28
min-depth:10
max-depth:23
flags:CAVERN
floor:packed dirt:10
wall:mountain:10
rule:50:0
rule-flags:ORC
rule-symbols:koO
rule:30:0
rule-flags:TROLL
rule:20:1

# The Old Forest (boss: Old Man Willow)
name:The Old Forest
wpos:-18:19
min-depth:13
max-depth:25
flags:NO_DOORS | WATER_RIVER
floor:packed dirt:8
floor:water:2
wall:tree:10
rule:40:0
rule-flags:ANIMAL
rule:30:0
rule-flags:UNDEAD
rule-symbols:h
rule:30:1

# The Sandworm Lair (boss: The Sandworm Queen)
name:The Sandworm Lair
wpos:40:-40
min-depth:22
max-depth:30
flags:NO_DOORS | SAND_VEIN
floor:sand:10
wall:sandwall:10
rule:90:0
rule-symbols:w
rule:10:0
rule-flags:MULTIPLY

# The Land Of Rhûn (boss: Ulfang the Black)
name:The Land Of Rhûn
wpos:32:12
min-depth:20
max-depth:34
floor:grass:10
wall:tree:3
wall:water:3
rule:30:0
rule-symbols:ph
rule:30:0
rule-flags:ANIMAL
rule:40:1

# The Barrow-downs (boss: The Wight-King of the Barrow-downs)
name:The Barrow-downs
wpos:-16:19
min-depth:1
max-depth:35
floor:packed dirt:8
floor:grass:2
wall:tree:3
wall:mountain:7
rule:25:0
rule-flags:UNDEAD
rule:75:1

# The Maze (boss: The Minotaur of the Labyrinth)
name:The Maze
wpos:-12:18
min-depth:25
max-depth:40
flags:MAZE
rule:20:0
rule-symbols:p
rule:80:1

# The Heart of the Earth (boss: Golgarach, the Living Rock)
name:The Heart of the Earth
wpos:21:29
min-depth:25
max-depth:45
rule:40:0
rule-symbols:#XgE
rule:30:0
rule-flags:PASS_WALL | KILL_WALL | HURT_ROCK
rule:30:1

# The Small Water Cave (boss: The Watcher in the Water)
name:The Small Water Cave
wpos:-5:10
min-depth:32
max-depth:45
floor:water:10
wall:mountain:10
rule:40:0
rule-flags:IM_COLD
rule:40:0
rule-spells:BO_WATE | BA_WATE | BR_WATE
rule:10:0
rule-flags:IM_WATER
rule:10:1

# The Helcaraxe (boss: The White Balrog)
name:The Helcaraxe
wpos:-14:42
min-depth:20
max-depth:50
flags:CAVERN | WATER_RIVER
floor:ice:10
wall:ice wall:10
rule:100:0
rule-flags:IM_COLD

# The Mines of Moria (boss: The Balrog of Moria)
name:The Mines of Moria
wpos:-4:11
min-depth:30
max-depth:50
flags:WATER_RIVER
floor:packed dirt:10
wall:mountain:10
rule:40:0
rule-flags:ORC
rule:30:0
rule-flags:TROLL | GIANT
rule:20:0
rule-flags:DEMON
rule:10:1

# The Illusory Castle (boss: The Glass Golem)
name:The Illusory Castle
wpos:-7:2
min-depth:35
max-depth:52
wall:glass wall:5
wall:illusion wall:5
rule:70:0
rule-flags:STUPID | WEIRD_MIND | ATTR_MULTI | ATTR_FLICKER | RAND_25 |
rule-flags:RAND_50 | EMPTY_MIND | INVISIBLE | PASS_WALL | KILL_WALL | MULTIPLY
rule-spells:BR_CHAO | CONF | FORGET | TRAPS
rule:30:1

# Cirith Ungol (boss: Shelob, Spider of Darkness)
name:Cirith Ungol
wpos:13:-16
min-depth:25
max-depth:55
flags:CIRCULAR_ROOMS
floor:packed dirt:7
floor:web:3
wall:mountain:9
wall:web:1
rule:49:0
rule-symbols:caIS
rule:49:0
rule-flags:ORC
rule-symbols:wmj
rule:2:1

# Númenor (boss: Ar-Pharazôn the Golden)
name:Númenor
wpos:-39:-17
min-depth:35
max-depth:55
floor:water:10
wall:water:9
rule:80:0
rule-flags:IM_WATER
rule:20:1

# Mirkwood (boss: Radagast the Brown)
name:Mirkwood
wpos:7:24
min-depth:11
max-depth:64
flags:NO_DOORS
floor:grass:10
wall:tree:10
rule:25:0
rule-symbols:S
rule:75:1

# Mordor (boss: The Mouth of Sauron)
name:Mordor
wpos:13:-10
min-depth:34
max-depth:65
flags:CAVERN | LAVA_RIVER
floor:packed dirt:7
floor:ash:3
wall:mountain:5
rule:100:1

# Erebor (boss: Glaurung, Father of the Dragons)
name:Erebor
wpos:12:30
min-depth:58
max-depth:70
flags:CAVERN | LAVA_RIVER
floor:packed dirt:10
wall:mountain:9
wall:dark wall:1
rule:60:0
rule-symbols:D
rule:30:0
rule-symbols:d
rule:10:1

# The Sacred Land Of Mountains (boss: Trone, the Rebel Thunderlord)
name:The Sacred Land Of Mountains
wpos:25:3
min-depth:45
max-depth:72
floor:grass:10
wall:mountain:10
rule:100:1

# Dol Guldur (boss: The Necromancer of Dol Guldur)
name:Dol Guldur
wpos:6:9
min-depth:57
max-depth:75
floor:water:2
rule:30:0
rule-symbols:pP
rule:30:0
rule-flags:DEMON | DRAGON
rule:20:0
rule-flags:UNDEAD
rule:10:0
rule-flags:ORC | TROLL
rule:10:1

# The Paths of the Dead (boss: Feagwath, the Undead Sorcerer)
name:The Paths of the Dead
wpos:-2:-10
min-depth:40
max-depth:77
floor:packed dirt:9
floor:water:1
wall:dark wall:3
rule:85:0
rule-flags:UNDEAD | NONLIVING
rule:10:0
rule-symbols:p
rule:5:1

# Mount Doom (boss: The Balrog of the Sammath Naur)
name:Mount Doom
wpos:16:-13
min-depth:84
max-depth:98
flags:CAVERN | LAVA_RIVER
floor:lava stream:10
wall:lava:10
rule:100:0
rule-flags:IM_FIRE

# The Nether Realm (boss: Xakaze, Father of Abominations)
name:The Nether Realm
wpos:39:37
min-depth:101
max-depth:126
flags:EMPTY | LAVA_RIVER | WINNERS_ONLY
floor:nether mist:8
floor:lava stream:2
wall:lava:8
wall:dark wall:2
rule:95:0
rule-flags:IM_NETHER
rule-symbols:GWU
rule:5:1

# Utumno, Portal to the Void (boss: Melkor, Lord of Darkness)
name:Utumno, Portal to the Void
wpos:42:42
min-depth:102
max-depth:127
flags:EMPTY | WINNERS_ONLY
floor:void:10
rule:99:0
rule-flags:UNDEAD | DEMON | DRAGON | NONLIVING
rule:1:1