Debian Codegraph @

lib/gamedata/constants.txt

raw
1 # File: constants.txt
2
3
4 # This file is used to initialize game constants for Angband.
5
6 #---------------------------------------------------------------------
7 # Level Maxima
8 #---------------------------------------------------------------------
9
10 # Maximum number of monsters on the level
11 level-max:monsters:1024
12
13 #---------------------------------------------------------------------
14 # Monster Generation
15 #---------------------------------------------------------------------
16
17 # 1/per-turn-chance of new monster generation
18 mon-gen:chance:500
19
20 # Minimum number of monsters generated on a level
21 mon-gen:level-min:14
22
23 # Number of townsfolk generated in the day */
24 mon-gen:town-day:4
25
26 # Number of townsfolk generated in the night */
27 mon-gen:town-night:8
28
29 # Maximum number of breeding monsters allowed on a level
30 mon-gen:repro-max:100
31
32 # Chance of a generated monster's level being inflated is one-in-this
33 mon-gen:ood-chance:25
34
35 # Maximum out-of-depth amount for monster generation
36 mon-gen:ood-amount:10
37
38 # Maximum number of monsters in a group
39 mon-gen:group-max:25
40
41 # Maximum distance of a group of monsters from a related group
42 mon-gen:group-dist:5
43
44 #---------------------------------------------------------------------
45 # Monster Gameplay
46 #---------------------------------------------------------------------
47
48 # Rune of protection resistance to monster breaking
49 mon-play:break-glyph:550
50
51 # High value slows multiplication
52 mon-play:mult-rate:8
53
54 # Percent of player exp drained per hit
55 mon-play:life-drain:2
56
57 # Monsters will run up to this many grids out of sight
58 mon-play:flee-range:5
59
60 # Terrified monsters will turn to fight if they are slower than the character,
61 # and closer than this distance.
62 mon-play:turn-range:5
63
64 #---------------------------------------------------------------------
65 # Dungeon Generation
66 #---------------------------------------------------------------------
67
68 # Number of possible room centres (and hence rooms) on a normal level
69 dun-gen:cent-max:100
70
71 # Number of possible door locations
72 dun-gen:door-max:200
73
74 # Number of possible places to pierce room walls with tunnels
75 dun-gen:wall-max:500
76
77 # Number of tunnel grids
78 dun-gen:tunn-max:900
79
80 # Average number of objects to place in rooms
81 dun-gen:amt-room:9
82
83 # Average number of objects to place in rooms/corridors
84 dun-gen:amt-item:3
85
86 # Average amount of treasure to place in rooms/corridors
87 dun-gen:amt-gold:3
88
89 # Maximum number of pits or nests allowed per level
90 dun-gen:pit-max:2
91
92 #---------------------------------------------------------------------
93 # Game World
94 #---------------------------------------------------------------------
95
96 # Maximum dungeon level; must be at least 100.
97 # Setting it below 128 may prevent the creation of some objects.
98 world:max-depth:128
99
100 # Number of turns from dawn to dawn
101 world:day-length:10000
102
103 # Max number of grids in each dungeon level (vertically)
104 world:dungeon-hgt:66
105
106 # Max number of grids in each dungeon level (horizontally)
107 world:dungeon-wid:198
108
109 # Max number of grids in each town level (vertically)
110 world:town-hgt:22
111
112 # Max number of grids in each town level (horizontally)
113 world:town-wid:66
114
115 # Total number of feeling squares per level
116 world:feeling-total:100
117
118 # Squares needed to see to get first feeling
119 world:feeling-need:10
120
121 # Number of levels for each stair
122 world:stair-skip:1
123
124 # Energy needed by player or monsters to move
125 world:move-energy:100
126
127 #---------------------------------------------------------------------
128 # Carrying Capacity
129 #---------------------------------------------------------------------
130
131 # Max number of pack slots for carrying inventory
132 carry-cap:pack-size:23
133
134 # Max number of quiver slots for carrying missiles
135 carry-cap:quiver-size:10
136
137 # Max number of missiles per quiver slot
138 carry-cap:quiver-slot-size:40
139
140 # For computing quiver capacity, is the multiplier for non-ammo thrown items
141 carry-cap:thrown-quiver-mult:5
142
143 # Maximum number of objects allowed in a single dungeon grid.
144 #
145 # The main screen originally had a minimum size of 24 rows, so it could always
146 # display 23 objects + 1 header line.
147 carry-cap:floor-size:23
148
149
150 #---------------------------------------------------------------------
151 # Store Parameters
152 #---------------------------------------------------------------------
153
154 # Maximum number of discrete objects in store inventory
155 store:inven-max:24
156
157 # Number of turns between turnovers
158 store:turns:1000
159
160 # 1/Chance (per day) of an owner changing
161 store:shuffle:25
162
163 # Dungeon level to apply magic to objects for normal stores
164 store:magic-level:5
165
166
167 #---------------------------------------------------------------------
168 # Object generation
169 #---------------------------------------------------------------------
170
171 # Maximum depth used in object allocation
172 obj-make:max-depth:100
173
174 # 1/chance of inflating the requested object level
175 obj-make:great-obj:20
176
177 # 1/chance of inflating the requested ego item level
178 obj-make:great-ego:20
179
180 # Maximum amount of fuel in a torch
181 obj-make:fuel-torch:5000
182
183 # Maximum amount of fuel in a lantern
184 obj-make:fuel-lamp:15000
185
186 # Default amount of fuel in a lantern
187 obj-make:default-lamp:7500
188
189
190 #---------------------------------------------------------------------
191 # Player constants
192 #---------------------------------------------------------------------
193
194 # Maximum visual range
195 player:max-sight:20
196
197 # Maximum missile and spell range
198 player:max-range:20
199
200 # Amount of gold (or value of equipment) the player starts with
201 player:start-gold:600
202
203 # Number of turns that 1% of player food capacity feeds them for
204 player:food-value:100
205
206 #---------------------------------------------------------------------
207 # Constants for non-O critical calculations
208 # In general, those calculations compute the chance for a critical
209 # from a linear combination of the to-hit bonuses, the player's
210 # to-hit skill, the player's level, and the weapon or missile's
211 # weight. If a critical happens, they then compute the power (i.e.
212 # severity of the critical) from a random term and the weapon or
213 # missile's weight. For more details see critical_melee() and
214 # critical_shot() in player-attack.c.
215 #---------------------------------------------------------------------
216
217 # Amount added to the to-hit value for calculating the chance of a melee
218 # critical when the target is debuffed
219 melee-critical:debuff-toh:10
220
221 # Scale factor for the weapon's weight in the chance for a melee critical
222 melee-critical:chance-weight-scale:1
223
224 # Scale factor for the overall to-hit value when calculating the chance
225 # for a melee critical
226 melee-critical:chance-toh-scale:5
227
228 # Scale factor for player level when calculating the chance for a melee critical
229 melee-critical:chance-level-scale:0
230
231 # Scale factor for the to-hit skill when calculating the chance for a melee
232 # critical
233 melee-critical:chance-toh-skill-scale:1
234
235 # Value added to the chance for a melee critical
236 melee-critical:chance-offset:-60
237
238 # Maximum range for melee critical chance; if the chance is N and the maximum
239 # range is M, then the probability a critical will happen is
240 # min(max(0, N), M) / M; to avoid extra inaccuracies for the damage shown
241 # within object descriptions, this should be a multiple of 100
242 melee-critical:chance-range:5000
243
244 # Scale factor for the weapon weight in the power of a melee critical
245 melee-critical:power-weight-scale:1
246
247 # The maximum of the random part of the power for a melee critical
248 melee-critical:power-random:650
249
250 # Define each of the levels for melee criticals. If no critical levels are
251 # defined, then there's no extra damage due to critical hits.
252 # The first value is the cutoff for the power. Any critical which has a power
253 # less than that cutoff and is not covered by a lower power level will fall
254 # in that level. The cutoff for the last level is not used and that level
255 # will catch any criticals not caught by the previous levels. To be valid,
256 # the cutoffs for all levels but the last must be in scrictly ascending order.
257 # The second value is the damage multiplier for that power level.
258 # The third value is the amount added to the damage for that power level.
259 # The fourth value is the name of the message, from list-messages.h, to use when
260 # a critical happens for that power level.
261 melee-critical-level:400:2:5:HIT_GOOD
262 melee-critical-level:700:2:10:HIT_GREAT
263 melee-critical-level:900:3:15:HIT_SUPERB
264 melee-critical-level:1300:3:20:HIT_HI_GREAT
265 melee-critical-level:-1:4:20:HIT_HI_SUPERB
266
267 # Amount added to the to-hit value for calculating the chance of a ranged
268 # critical when the target is debuffed
269 ranged-critical:debuff-toh:10
270
271 # Scale factor for the missile's weight in the chance for a ranged critical
272 ranged-critical:chance-weight-scale:1
273
274 # Scale factor for the overall to-hit value when calculating the chance
275 # for a ranged critical
276 ranged-critical:chance-toh-scale:4
277
278 # Scale factor for player level when calculating the chance for a ranged
279 # critical
280 ranged-critical:chance-level-scale:2
281
282 # Scale factor for the launched to-hit skill when calculating the chance for
283 # a ranged critical when using a launcher
284 ranged-critical:chance-launched-toh-skill-scale:0
285
286 # Scale factor for the thrown to-hit skill when calculating the chance for
287 # a ranged critical for a thrown object
288 ranged-critical:chance-thrown-toh-skill-scale:0
289
290 # Value added to the chance for a ranged critical
291 ranged-critical:chance-offset:0
292
293 # Maximum range for ranged critical chance; if the chance is N and the maximum
294 # range is M, then the probability a critical will happen is
295 # min(max(0, N), M) / M; to avoid extra inaccuracies for the damage shown
296 # within object descriptions, this should be a multiple of 100
297 ranged-critical:chance-range:5000
298
299 # Scale factor for the missle weight in the power of a ranged critical
300 ranged-critical:power-weight-scale:1
301
302 # The maximum of the random part of the power for a ranged critical
303 ranged-critical:power-random:500
304
305 # Define each of the levels for ranged criticals. If no critical levels are
306 # defined, then there's no extra damage due to critical hits.
307 # The first value is the cutoff for the power. Any critical which has a power
308 # less than that cutoff and is not covered by a lower power level will fall
309 # in that level. The cutoff for the last level is not used and that level
310 # will catch any criticals not caught by the previous levels. To be valid,
311 # the cutoffs for all levels but the last must be in scrictly ascending order.
312 # The second value is the damage multiplier for that power level.
313 # The third value is the amount added to the damage for that power level.
314 # The fourth value is the name of the message, from list-messages.h, to use
315 # when a critical happens for that power level.
316 ranged-critical-level:500:2:5:HIT_GOOD
317 ranged-critical-level:1000:2:10:HIT_GREAT
318 ranged-critical-level:-1:3:15:HIT_SUPERB
319
320 #---------------------------------------------------------------------
321 # Constants for O critical calculations
322 # In general, those calculations compute a "power" of the critical
323 # by scaling the chance of a hit. The "power" is then converted to
324 # a chance of a critical using (a * power) / (b + power + c) as the
325 # chance where a, b, and c are constants specified here. For more
326 # details, see o_critical_melee() and o_critical_shot() in
327 # player-attack.c.
328 #---------------------------------------------------------------------
329
330 # Amount added to the to-hit value for calculating the power of a melee critical
331 # when the target is debuffed
332 o-melee-critical:debuff-toh:10
333
334 # The numerator for the scale factor applied to the combined to-hit value to
335 # get the power of the critical
336 o-melee-critical:power-toh-scale-numerator:1
337
338 # The denominator for the scale factor applied to the combined to-hit value to
339 # get the power of the critical
340 o-melee-critical:power-toh-scale-denominator:3
341
342 # The scale factor for the critical's power in the numerator for the chance
343 # of the critical
344 o-melee-critical:chance-power-scale-numerator:1
345
346 # The scale factor for the critical's power in the denominator for the chance
347 # of the critical
348 o-melee-critical:chance-power-scale-denominator:1
349
350 # Value of an added term in the denominator for the chance of a critical
351 o-melee-critical:chance-add-denominator:240
352
353 # Define each of the levels for melee criticals. They are considered in the
354 # order they appear so it's convenient to put the least likely first. If no
355 # critical levels are defined, then there's no extra damage due to critical
356 # hits.
357 # Except for the last level, one over the first value is the probability that
358 # this level occurs when none of the prior levels have been selected; the last
359 # level will always be used if none of the prior levels have been selected.
360 # The first value must be positive.
361 # The second value is the number of dice to add for the critical. It must be
362 # non-negative.
363 # The third value is the name of the message, from list-messages.h, to use
364 # when a critical happens for that power level.
365 o-melee-critical-level:40:5:HIT_HI_SUPERB
366 o-melee-critical-level:12:4:HIT_HI_GREAT
367 o-melee-critical-level:3:3:HIT_SUPERB
368 o-melee-critical-level:2:2:HIT_GREAT
369 o-melee-critical-level:1:1:HIT_GOOD
370
371 # Amount added to the to-hit value for calculating the power of a ranged
372 # critical when the target is debuffed
373 o-ranged-critical:debuff-toh:10
374
375 # The numerator for the scale factor applied to the combined to-hit value to
376 # get the power of the critical with a launched missile
377 o-ranged-critical:power-launched-toh-scale-numerator:1
378
379 # The denominator for the scale factor applied to the combined to-hit value to
380 # get the power of the critical with a launched missile
381 o-ranged-critical:power-launched-toh-scale-denominator:1
382
383 # The numerator for the scale factor applied to the combined to-hit value to
384 # get the power of the critical with a thrown missile; this and the
385 # denominator are currently set so thrown missiles get more criticals
386 o-ranged-critical:power-thrown-toh-scale-numerator:3
387
388 # The denominator for the scale factor applied to the combined to-hit value to
389 # get the power of the critical with a thrown missile
390 o-ranged-critical:power-thrown-toh-scale-denominator:2
391
392 # The scale factor for the critical's power in the numerator for the chance
393 # of the critical
394 o-ranged-critical:chance-power-scale-numerator:1
395
396 # The scale factor for the critical's power in the denominator for the chance
397 # of the critical
398 o-ranged-critical:chance-power-scale-denominator:1
399
400 # Value of an added term in the denominator for the chance of a critical
401 o-ranged-critical:chance-add-denominator:360
402
403 # Define each of the levels for ranged criticals. They are considered in the
404 # order they appear so it's convenient to put the least likely first. If no
405 # critical levels are defined, then there's no extra damage due to critical
406 # hits.
407 # Except for the last level, one over the first value is the probability that
408 # this level occurs when none of the prior levels have been selected; the last
409 # level will always be used if none of the prior levels have been selected.
410 # The first value must be positive.
411 # The second value is the number of dice to add for the critical. It must be
412 # non-negative.
413 # The third value is the name of the message, from list-messages.h, to use
414 # when a critical happens for that power level.
415 o-ranged-critical-level:50:3:HIT_SUPERB
416 o-ranged-critical-level:10:2:HIT_GREAT
417 o-ranged-critical-level:1:1:HIT_GOOD