Debian Codegraph @

lib/gamedata/dungeon_profile.txt

raw
1 # file: dungeon_profile.txt
2
3 # Contains information about how each type of dungeon level (and the town)
4 # are generated.
5
6 # name: The profile name. This needs to match the corresponding entry in
7 # list-dun-profiles.h so the correct level-building function can be called
8
9 # params: block_size : rooms : unusual : rarity
10 # The dungeon is divided into non-overlapping square blocks of block_size by
11 # block_size grids. When rooms are placed, each is assigned a rectangular
12 # chunk of blocks, and those assignments won't leave a block assigned to more
13 # than one room (the staircase rooms for persistent levels are an exception
14 # to that rule). So, block_size affects how densely the rooms can be packed
15 # and the maximum number of rooms possible. rooms is the number of rooms to
16 # aim for. unusual is a measure of how likely high rarity roooms are to
17 # appear - higher values make the rare rooms rarer. rarity is the maximum
18 # rarity room allowed with this cave profile.
19
20 # tunnel: rnd : chg : con : pen : jct
21 # These are percentage chances - rnd of choosing a random tunnel direction
22 # (as opposed to heading in the desired direction), chg the chance of changing
23 # direction, at any tunnel grid, con the chance of just terminating a tunnel,
24 # pen the chance of putting a door in a room entrance, jct the chance of a
25 # door at a tunnel junction.
26
27 # streamer: den : rng : mag : mc : qua : qc
28 # Streamers are drawn as a random walk which stops at the dungeon edge.
29 # den is the number of grids near any walk grid to make streamer; rng is how
30 # far from the walk those grids can be; mag and qua are the numbers of magma
31 # and quartz streamers per level; 1/mc and 1/qc are the chances of treasure in
32 # magma and quartz.
33
34 # alloc is used to decide which profile to use. For a profile that has a
35 # positive value for alloc, the profile will be used for a level that satisfies
36 # the profile's min-level with a probability of the value of alloc divided by
37 # the sum of the alloc values for all other possible profiles at that level.
38 # Except for the town profile, if alloc is zero or less than -1, the profile
39 # will not be used. If alloc is -1, the profile can only be selected by
40 # hard-coded tests in generate.c for the profile selection. If those tests do
41 # not already include the profile, using a value of -1 will be the same as
42 # using 0 for alloc. The hard-coded tests currently include checks for the
43 # town, moria, and labyrinth profiles.
44
45 # min-level is the shallowest dungeon level on which the profile can be used
46
47 # room: name : rating : height : width : level : pit : rarity : cutoff
48 # name is the room name, which must match the name in list-rooms.h so the
49 # correct room-building function can be called.
50 # rating is used only for template rooms
51 # height and width are the maximum dimensions of the room, and define how much
52 # space is allocated for that room.
53 # level is the minimum depth at which this room can appear.
54 # pit is 1 if the room is a pit/nest, 0 otherwise.
55 # rarity is the room's rarity - normally 0, 1 or 2 (see comments about profile
56 # rarity above). Some rooms are chosen by a different means; in this case
57 # rarity is usually 0.
58 # cutoff is used to pick between rooms once a rarity is chosen: a random value
59 # from 0 to 99 is selected and a room may appear if its cutoff is greater than
60 # that value. Non-zero cutoffs normally appear in ascending order within the
61 # rooms of the same rarity for a given profile. A room with a smaller cutoff
62 # appearing after one with a larger cutoff will only be selected if an attempt
63 # to place the earlier room fails. One way that can happen is because of the
64 # depth restrictions set in this file. For greater vaults and huge rooms,
65 # there are also restrictions in the code that make their generation fail
66 # frequently.
67
68 ## Town
69 name:town
70 streamer:1:1:0:0:0:0
71 params:1:0:200:0
72 alloc:-1
73
74 ## Labyrinth - these have alloc -1, but still appear after other checks
75 ## To completely turn them off, set alloc to zero
76 name:labyrinth
77 params:1:0:200:0
78 alloc:-1
79
80 ## Cavern
81 name:cavern
82 params:1:0:200:0
83 min-level:15
84 alloc:10
85
86 ## Classic
87 name:classic
88 params:11:50:200:2
89 tunnel:10:30:15:25:50
90 streamer:5:2:3:90:2:40
91 alloc:90
92
93 # Greater vaults only have rarity 0 but they have other checks
94 room:Greater vault:0:44:66:35:0:0:100
95
96 # Very rare rooms (rarity = 2)
97 room:monster pit:0:11:33:5:1:2:8
98 room:monster nest:0:11:33:5:1:2:16
99 room:Medium vault:0:22:33:30:0:2:38
100 room:Lesser vault:0:22:33:20:0:2:55
101
102 # Unusual rooms (rarity = 1)
103 room:large room:0:11:33:3:0:1:15
104 room:crossed room:0:11:33:3:0:1:35
105 room:circular room:0:22:22:1:0:1:50
106 room:overlap room:0:11:33:1:0:1:70
107 room:room template:1:11:33:1:0:1:95
108 room:room template:2:11:33:10:0:1:99
109 room:room template:3:11:33:30:0:1:100
110
111 # Normal rooms (rarity = 0)
112 room:simple room:0:11:33:1:0:0:100
113
114 # Staircase rooms - rarity 99 to prevent random occurrence
115 # these rooms are specially generated to join persistent levels
116 room:staircase room:0:3:3:1:0:99:0
117
118 ## Modified
119 name:modified
120 params:1:50:300:2
121 tunnel:10:30:15:25:50
122 streamer:5:2:3:90:2:40
123 alloc:97
124
125 # Really big rooms only have rarity 0 but they have other checks
126 room:Greater vault:0:44:66:35:0:0:50
127 room:Greater vault (new):0:44:66:35:0:0:100
128 room:huge room:0:44:66:40:0:0:100
129
130 # Very rare rooms (rarity = 2)
131 room:room of chambers:0:44:66:10:0:2:4
132 room:monster pit:0:11:33:5:1:2:12
133 room:monster nest:0:11:33:5:1:2:20
134 room:Medium vault:0:22:33:30:0:2:30
135 room:Medium vault (new):0:22:33:30:0:2:40
136 room:Lesser vault:0:22:33:20:0:2:50
137 room:Lesser vault (new):0:22:33:20:0:2:60
138
139 # Unusual rooms (rarity = 1)
140 room:Interesting room:0:44:55:0:0:1:10
141 room:large room:0:11:33:3:0:1:25
142 room:crossed room:0:11:33:3:0:1:40
143 room:circular room:0:22:22:1:0:1:55
144 room:overlap room:0:11:33:1:0:1:70
145 room:room template:1:11:33:1:0:1:95
146 room:room template:2:11:33:10:0:1:99
147 room:room template:3:11:33:30:0:1:100
148
149 # Normal rooms (rarity = 0)
150 room:simple room:0:11:33:1:0:0:100
151
152 # Staircase rooms - rarity 99 to prevent random occurrence
153 # these rooms are specially generated to join persistent levels
154 room:staircase room:0:3:3:1:0:99:0
155
156 ## Moria - these have alloc -1, but still appear after other checks
157 ## To completely turn them off, set alloc to zero
158 name:moria
159 params:1:50:250:2
160 tunnel:10:30:15:25:30
161 streamer:5:2:3:90:2:40
162 alloc:-1
163
164 # Really big rooms only have rarity 0 but they have other checks
165 room:Greater vault:0:44:66:35:0:0:50
166 room:Greater vault (new):0:44:66:35:0:0:100
167
168 # Very rare rooms (rarity = 2)
169 room:room of chambers:0:44:66:10:0:2:4
170 room:monster pit:0:11:33:5:1:2:12
171 room:monster nest:0:11:33:5:1:2:20
172 room:Medium vault:0:22:33:30:0:2:30
173 room:Medium vault (new):0:22:33:30:0:2:40
174 room:Lesser vault:0:22:33:20:0:2:50
175 room:Lesser vault (new):0:22:33:20:0:2:60
176 room:Interesting room:0:44:55:0:0:2:100
177
178 # Normal moria-style rooms (rarity = 0)
179 room:moria room:0:11:33:1:0:0:100
180
181 # Staircase rooms - rarity 99 to prevent random occurrence
182 # these rooms are specially generated to join persistent levels
183 room:staircase room:0:3:3:1:0:99:0
184
185 ## Lair
186 name:lair
187 params:1:50:500:2
188 tunnel:10:30:15:25:50
189 streamer:5:2:3:90:2:40
190 min-level:20
191 alloc:1
192
193 # Really big rooms only have rarity 0 but they have other checks
194 room:Greater vault:0:44:66:35:0:0:50
195 room:Greater vault (new):0:44:66:35:0:0:100
196 room:huge room:0:44:66:40:0:0:100
197
198 # Very rare rooms (rarity = 2)
199 room:room of chambers:0:44:66:10:0:2:4
200 room:monster pit:0:11:33:5:1:2:12
201 room:monster nest:0:11:33:5:1:2:20
202 room:Medium vault:0:22:33:30:0:2:30
203 room:Medium vault (new):0:22:33:30:0:2:40
204 room:Lesser vault:0:22:33:20:0:2:50
205 room:Lesser vault (new):0:22:33:20:0:2:60
206
207 # Unusual rooms (rarity = 1)
208 room:Interesting room:0:44:55:0:0:1:10
209 room:large room:0:11:33:3:0:1:25
210 room:crossed room:0:11:33:3:0:1:40
211 room:circular room:0:22:22:1:0:1:55
212 room:overlap room:0:11:33:1:0:1:70
213 room:room template:1:11:33:1:0:1:95
214 room:room template:2:11:33:10:0:1:99
215 room:room template:3:11:33:30:0:1:100
216
217 # Normal rooms (rarity = 0)
218 room:simple room:0:11:33:1:0:0:100
219
220 # Staircase rooms - rarity 99 to prevent random occurrence
221 # these rooms are specially generated to join persistent levels
222 room:staircase room:0:3:3:1:0:99:0
223
224 ## Gauntlet
225 name:gauntlet
226 params:1:0:200:0
227 min-level:20
228 alloc:1
229
230 ## Hard Centre
231 name:hard centre
232 params:1:0:200:0
233 min-level:50
234 alloc:1