OSDN Git Service

[Refactor] #37353 realm_choices1, realm_choices2 を player-class.c/h へ追加.
[hengband/hengband.git] / src / tables.c
1 /*!
2  * @file tables.c
3  * @brief ゲーム情報テーブル / Angband Tables
4  * @date 2014/07/23
5  * @author
6  * <pre>
7  * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
8  * This software may be copied and distributed for educational, research,
9  * and not for profit purposes provided that this copyright and statement
10  * are included in all such copies.  Other copyrights may also apply.
11  * </pre>
12  */
13
14
15 #include "angband.h"
16 #include "spells.h"
17
18 /*!
19  * キーパッドの方向を南から反時計回り順に列挙 / Global array for looping through the "keypad directions"
20  */
21 const POSITION ddd[9] =
22 { 2, 8, 6, 4, 3, 1, 9, 7, 5 };
23
24 /*!
25  * dddで定義した順にベクトルのX軸成分を定義 / Global arrays for converting "keypad direction" into offsets
26  */
27 const POSITION ddx[10] =
28 { 0, -1, 0, 1, -1, 0, 1, -1, 0, 1 };
29
30 /*!
31  * dddで定義した順にベクトルのY軸成分を定義 / Global arrays for converting "keypad direction" into offsets
32  */
33 const POSITION ddy[10] =
34 { 0, 1, 1, 1, 0, 0, 0, -1, -1, -1 };
35
36 /*!
37  * ddd越しにベクトルのX軸成分を定義 / Global arrays for optimizing "ddx[ddd[i]]" and "ddy[ddd[i]]"
38  */
39 const POSITION ddx_ddd[9] =
40 { 0, 0, 1, -1, 1, -1, 1, -1, 0 };
41
42 /*!
43  * ddd越しにベクトルのY軸成分を定義 / Global arrays for optimizing "ddx[ddd[i]]" and "ddy[ddd[i]]"
44  */
45 const POSITION ddy_ddd[9] =
46 { 1, -1, 0, 0, 1, 1, -1, -1, 0 };
47
48
49 /*!
50  * キーパッドの円環状方向配列 / Circular keypad direction array
51  */
52 const POSITION cdd[8] =
53 { 2, 3, 6, 9, 8, 7, 4, 1 };
54
55 /*!
56  * cdd越しにベクトルのX軸成分を定義 / Global arrays for optimizing "ddx[cdd[i]]" and "ddy[cdd[i]]"
57  */
58 const POSITION ddx_cdd[8] =
59 { 0, 1, 1, 1, 0, -1, -1, -1 };
60
61 /*!
62  * cdd越しにベクトルのY軸成分を定義 / Global arrays for optimizing "ddx[cdd[i]]" and "ddy[cdd[i]]"
63  */
64 const POSITION ddy_cdd[8] =
65 { 1, 1, 0, -1, -1, -1, 0, 1 };
66
67
68
69 /*!
70  * 10進数から16進数への変換テーブル /
71  * Global array for converting numbers to uppercase hecidecimal digit
72  * This array can also be used to convert a number to an octal digit
73  */
74 const char hexsym[16] =
75 {
76         '0', '1', '2', '3', '4', '5', '6', '7',
77         '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
78 };
79
80
81 /*!
82  * 選択処理用キーコード /
83  * Global array for converting numbers to a logical list symbol
84  */
85 const char listsym[] =
86 {
87         '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
88         'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
89         'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
90         'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
91         'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
92         '\0'
93 };
94
95
96 /*!
97  * スクリーン表示色キャラクタ /
98  * Encode the screen colors
99  */
100 const concptr color_char = "dwsorgbuDWvyRGBU";
101
102
103 /*!
104  * 知力/賢さによるレベル毎の習得可能魔法数テーブル
105  * Stat Table (INT/WIS) -- Number of half-spells per level
106  */
107 const byte adj_mag_study[] =
108 {
109         0       /* 3 */,
110         0       /* 4 */,
111         0       /* 5 */,
112         0       /* 6 */,
113         0       /* 7 */,
114         1       /* 8 */,
115         1       /* 9 */,
116         1       /* 10 */,
117         1       /* 11 */,
118         2       /* 12 */,
119         2       /* 13 */,
120         2       /* 14 */,
121         2       /* 15 */,
122         2       /* 16 */,
123         2       /* 17 */,
124         2       /* 18/00-18/09 */,
125         2       /* 18/10-18/19 */,
126         2       /* 18/20-18/29 */,
127         2       /* 18/30-18/39 */,
128         2       /* 18/40-18/49 */,
129         3       /* 18/50-18/59 */,
130         3       /* 18/60-18/69 */,
131         3       /* 18/70-18/79 */,
132         3       /* 18/80-18/89 */,
133         4       /* 18/90-18/99 */,
134         4       /* 18/100-18/109 */,
135         4       /* 18/110-18/119 */,
136         5       /* 18/120-18/129 */,
137         5       /* 18/130-18/139 */,
138         5       /* 18/140-18/149 */,
139         5       /* 18/150-18/159 */,
140         5       /* 18/160-18/169 */,
141         5       /* 18/170-18/179 */,
142         5       /* 18/180-18/189 */,
143         5       /* 18/190-18/199 */,
144         5       /* 18/200-18/209 */,
145         6       /* 18/210-18/219 */,
146         6       /* 18/220+ */
147 };
148
149
150 /*!
151  * 知力/賢さによるMP修正テーブル
152  * Stat Table (INT/WIS) -- extra 1/4-mana-points per level
153  */
154 const byte adj_mag_mana[] =
155 {
156         0       /* 3 */,
157         0       /* 4 */,
158         0       /* 5 */,
159         0       /* 6 */,
160         0       /* 7 */,
161         1       /* 8 */,
162         2       /* 9 */,
163         3       /* 10 */,
164         4       /* 11 */,
165         5       /* 12 */,
166         5       /* 13 */,
167         6       /* 14 */,
168         7       /* 15 */,
169         8       /* 16 */,
170         9       /* 17 */,
171         10      /* 18/00-18/09 */,
172         11      /* 18/10-18/19 */,
173         11      /* 18/20-18/29 */,
174         12      /* 18/30-18/39 */,
175         12      /* 18/40-18/49 */,
176         13      /* 18/50-18/59 */,
177         14      /* 18/60-18/69 */,
178         15      /* 18/70-18/79 */,
179         16      /* 18/80-18/89 */,
180         17      /* 18/90-18/99 */,
181         18      /* 18/100-18/109 */,
182         19      /* 18/110-18/119 */,
183         20      /* 18/120-18/129 */,
184         21      /* 18/130-18/139 */,
185         22      /* 18/140-18/149 */,
186         23      /* 18/150-18/159 */,
187         24      /* 18/160-18/169 */,
188         25      /* 18/170-18/179 */,
189         26      /* 18/180-18/189 */,
190         27      /* 18/190-18/199 */,
191         28      /* 18/200-18/209 */,
192         29      /* 18/210-18/219 */,
193         30      /* 18/220+ */
194 };
195
196
197 /*!
198  * 知力/賢さによる最低魔法失敗率テーブル
199  * Stat Table (INT/WIS) -- Minimum failure rate (percentage)
200  */
201 const byte adj_mag_fail[] =
202 {
203         99      /* 3 */,
204         99      /* 4 */,
205         99      /* 5 */,
206         99      /* 6 */,
207         99      /* 7 */,
208         50      /* 8 */,
209         30      /* 9 */,
210         20      /* 10 */,
211         15      /* 11 */,
212         12      /* 12 */,
213         11      /* 13 */,
214         10      /* 14 */,
215         9       /* 15 */,
216         8       /* 16 */,
217         7       /* 17 */,
218         6       /* 18/00-18/09 */,
219         6       /* 18/10-18/19 */,
220         5       /* 18/20-18/29 */,
221         5       /* 18/30-18/39 */,
222         5       /* 18/40-18/49 */,
223         4       /* 18/50-18/59 */,
224         4       /* 18/60-18/69 */,
225         4       /* 18/70-18/79 */,
226         4       /* 18/80-18/89 */,
227         3       /* 18/90-18/99 */,
228         3       /* 18/100-18/109 */,
229         2       /* 18/110-18/119 */,
230         2       /* 18/120-18/129 */,
231         2       /* 18/130-18/139 */,
232         2       /* 18/140-18/149 */,
233         1       /* 18/150-18/159 */,
234         1       /* 18/160-18/169 */,
235         1       /* 18/170-18/179 */,
236         1       /* 18/180-18/189 */,
237         1       /* 18/190-18/199 */,
238         0       /* 18/200-18/209 */,
239         0       /* 18/210-18/219 */,
240         0       /* 18/220+ */
241 };
242
243
244 /*!
245  * 知力/賢さによる魔法失敗率修正テーブル
246  * Stat Table (INT/WIS) -- Various things
247  */
248 const byte adj_mag_stat[] =
249 {
250         0       /* 3 */,
251         0       /* 4 */,
252         0       /* 5 */,
253         0       /* 6 */,
254         0       /* 7 */,
255         1       /* 8 */,
256         1       /* 9 */,
257         1       /* 10 */,
258         1       /* 11 */,
259         1       /* 12 */,
260         1       /* 13 */,
261         1       /* 14 */,
262         2       /* 15 */,
263         2       /* 16 */,
264         2       /* 17 */,
265         3       /* 18/00-18/09 */,
266         3       /* 18/10-18/19 */,
267         3       /* 18/20-18/29 */,
268         3       /* 18/30-18/39 */,
269         3       /* 18/40-18/49 */,
270         4       /* 18/50-18/59 */,
271         4       /* 18/60-18/69 */,
272         5       /* 18/70-18/79 */,
273         6       /* 18/80-18/89 */,
274         7       /* 18/90-18/99 */,
275         8       /* 18/100-18/109 */,
276         9       /* 18/110-18/119 */,
277         10      /* 18/120-18/129 */,
278         11      /* 18/130-18/139 */,
279         12      /* 18/140-18/149 */,
280         13      /* 18/150-18/159 */,
281         14      /* 18/160-18/169 */,
282         15      /* 18/170-18/179 */,
283         16      /* 18/180-18/189 */,
284         17      /* 18/190-18/199 */,
285         18      /* 18/200-18/209 */,
286         19      /* 18/210-18/219 */,
287         20      /* 18/220+ */
288 };
289
290
291 /*!
292  * 魅力による店での取引修正テーブル
293  * Stat Table (CHR) -- payment percentages
294  */
295 const byte adj_chr_gold[] =
296 {
297         130     /* 3 */,
298         125     /* 4 */,
299         122     /* 5 */,
300         120     /* 6 */,
301         118     /* 7 */,
302         116     /* 8 */,
303         114     /* 9 */,
304         112     /* 10 */,
305         110     /* 11 */,
306         108     /* 12 */,
307         106     /* 13 */,
308         104     /* 14 */,
309         103     /* 15 */,
310         102     /* 16 */,
311         101     /* 17 */,
312         100     /* 18/00-18/09 */,
313         99      /* 18/10-18/19 */,
314         98      /* 18/20-18/29 */,
315         97      /* 18/30-18/39 */,
316         96      /* 18/40-18/49 */,
317         95      /* 18/50-18/59 */,
318         94      /* 18/60-18/69 */,
319         93      /* 18/70-18/79 */,
320         92      /* 18/80-18/89 */,
321         91      /* 18/90-18/99 */,
322         90      /* 18/100-18/109 */,
323         89      /* 18/110-18/119 */,
324         88      /* 18/120-18/129 */,
325         87      /* 18/130-18/139 */,
326         86      /* 18/140-18/149 */,
327         85      /* 18/150-18/159 */,
328         84      /* 18/160-18/169 */,
329         83      /* 18/170-18/179 */,
330         82      /* 18/180-18/189 */,
331         81      /* 18/190-18/199 */,
332         80      /* 18/200-18/209 */,
333         79      /* 18/210-18/219 */,
334         78      /* 18/220+ */
335 };
336
337
338 /*!
339  * 知力による魔道具使用修正テーブル
340  * Stat Table (INT) -- Magic devices
341  */
342 const byte adj_int_dev[] =
343 {
344         0       /* 3 */,
345         0       /* 4 */,
346         0       /* 5 */,
347         0       /* 6 */,
348         0       /* 7 */,
349         1       /* 8 */,
350         1       /* 9 */,
351         1       /* 10 */,
352         1       /* 11 */,
353         1       /* 12 */,
354         1       /* 13 */,
355         1       /* 14 */,
356         2       /* 15 */,
357         2       /* 16 */,
358         2       /* 17 */,
359         3       /* 18/00-18/09 */,
360         3       /* 18/10-18/19 */,
361         4       /* 18/20-18/29 */,
362         4       /* 18/30-18/39 */,
363         5       /* 18/40-18/49 */,
364         5       /* 18/50-18/59 */,
365         6       /* 18/60-18/69 */,
366         6       /* 18/70-18/79 */,
367         7       /* 18/80-18/89 */,
368         7       /* 18/90-18/99 */,
369         8       /* 18/100-18/109 */,
370         9       /* 18/110-18/119 */,
371         10      /* 18/120-18/129 */,
372         11      /* 18/130-18/139 */,
373         12      /* 18/140-18/149 */,
374         13      /* 18/150-18/159 */,
375         14      /* 18/160-18/169 */,
376         15      /* 18/170-18/179 */,
377         16      /* 18/180-18/189 */,
378         17      /* 18/190-18/199 */,
379         18      /* 18/200-18/209 */,
380         19      /* 18/210-18/219 */,
381         20      /* 18/220+ */
382 };
383
384
385 /*!
386  * 賢さによる魔法防御修正テーブル
387  * Stat Table (WIS) -- Saving throw
388  */
389 const byte adj_wis_sav[] =
390 {
391         0       /* 3 */,
392         0       /* 4 */,
393         0       /* 5 */,
394         0       /* 6 */,
395         0       /* 7 */,
396         1       /* 8 */,
397         1       /* 9 */,
398         1       /* 10 */,
399         1       /* 11 */,
400         1       /* 12 */,
401         1       /* 13 */,
402         1       /* 14 */,
403         2       /* 15 */,
404         2       /* 16 */,
405         2       /* 17 */,
406         3       /* 18/00-18/09 */,
407         3       /* 18/10-18/19 */,
408         3       /* 18/20-18/29 */,
409         3       /* 18/30-18/39 */,
410         3       /* 18/40-18/49 */,
411         4       /* 18/50-18/59 */,
412         4       /* 18/60-18/69 */,
413         5       /* 18/70-18/79 */,
414         5       /* 18/80-18/89 */,
415         6       /* 18/90-18/99 */,
416         7       /* 18/100-18/109 */,
417         8       /* 18/110-18/119 */,
418         9       /* 18/120-18/129 */,
419         10      /* 18/130-18/139 */,
420         11      /* 18/140-18/149 */,
421         12      /* 18/150-18/159 */,
422         13      /* 18/160-18/169 */,
423         14      /* 18/170-18/179 */,
424         15      /* 18/180-18/189 */,
425         16      /* 18/190-18/199 */,
426         17      /* 18/200-18/209 */,
427         18      /* 18/210-18/219 */,
428         19      /* 18/220+ */
429 };
430
431
432 /*!
433  * 器用さによるトラップ解除修正テーブル
434  * Stat Table (DEX) -- disarming
435  */
436 const byte adj_dex_dis[] =
437 {
438         0       /* 3 */,
439         0       /* 4 */,
440         0       /* 5 */,
441         0       /* 6 */,
442         0       /* 7 */,
443         0       /* 8 */,
444         0       /* 9 */,
445         0       /* 10 */,
446         0       /* 11 */,
447         0       /* 12 */,
448         1       /* 13 */,
449         1       /* 14 */,
450         1       /* 15 */,
451         2       /* 16 */,
452         2       /* 17 */,
453         4       /* 18/00-18/09 */,
454         4       /* 18/10-18/19 */,
455         4       /* 18/20-18/29 */,
456         4       /* 18/30-18/39 */,
457         5       /* 18/40-18/49 */,
458         5       /* 18/50-18/59 */,
459         5       /* 18/60-18/69 */,
460         6       /* 18/70-18/79 */,
461         6       /* 18/80-18/89 */,
462         7       /* 18/90-18/99 */,
463         8       /* 18/100-18/109 */,
464         8       /* 18/110-18/119 */,
465         8       /* 18/120-18/129 */,
466         8       /* 18/130-18/139 */,
467         8       /* 18/140-18/149 */,
468         9       /* 18/150-18/159 */,
469         9       /* 18/160-18/169 */,
470         9       /* 18/170-18/179 */,
471         9       /* 18/180-18/189 */,
472         9       /* 18/190-18/199 */,
473         10      /* 18/200-18/209 */,
474         10      /* 18/210-18/219 */,
475         10      /* 18/220+ */
476 };
477
478
479 /*!
480  * 知力によるトラップ解除修正テーブル
481  * Stat Table (INT) -- disarming
482  */
483 const byte adj_int_dis[] =
484 {
485         0       /* 3 */,
486         0       /* 4 */,
487         0       /* 5 */,
488         0       /* 6 */,
489         0       /* 7 */,
490         1       /* 8 */,
491         1       /* 9 */,
492         1       /* 10 */,
493         1       /* 11 */,
494         1       /* 12 */,
495         1       /* 13 */,
496         1       /* 14 */,
497         2       /* 15 */,
498         2       /* 16 */,
499         2       /* 17 */,
500         3       /* 18/00-18/09 */,
501         3       /* 18/10-18/19 */,
502         3       /* 18/20-18/29 */,
503         4       /* 18/30-18/39 */,
504         4       /* 18/40-18/49 */,
505         5       /* 18/50-18/59 */,
506         6       /* 18/60-18/69 */,
507         7       /* 18/70-18/79 */,
508         8       /* 18/80-18/89 */,
509         9       /* 18/90-18/99 */,
510         10      /* 18/100-18/109 */,
511         10      /* 18/110-18/119 */,
512         11      /* 18/120-18/129 */,
513         12      /* 18/130-18/139 */,
514         13      /* 18/140-18/149 */,
515         14      /* 18/150-18/159 */,
516         15      /* 18/160-18/169 */,
517         16      /* 18/170-18/179 */,
518         17      /* 18/180-18/189 */,
519         18      /* 18/190-18/199 */,
520         19      /* 18/200-18/209 */,
521         19      /* 18/210-18/219 */,
522         20      /* 18/220+ */
523 };
524
525
526 /*!
527  * 器用さによるAC修正テーブル
528  * Stat Table (DEX) -- bonus to ac (plus 128)
529  */
530 const byte adj_dex_ta[] =
531 {
532         128 + -4    /*  3 */,
533         128 + -3    /*  4 */,
534         128 + -2    /*  5 */,
535         128 + -1    /*  6 */,
536         128 + 0     /*  7 */,
537         128 + 0     /*  8 */,
538         128 + 0     /*  9 */,
539         128 + 0     /* 10 */,
540         128 + 0     /* 11 */,
541         128 + 0     /* 12 */,
542         128 + 0     /* 13 */,
543         128 + 0     /* 14 */,
544         128 + 1     /* 15 */,
545         128 + 1     /* 16 */,
546         128 + 1     /* 17 */,
547         128 + 2     /* 18/00-18/09 */,
548         128 + 2     /* 18/10-18/19 */,
549         128 + 2     /* 18/20-18/29 */,
550         128 + 2     /* 18/30-18/39 */,
551         128 + 2     /* 18/40-18/49 */,
552         128 + 3     /* 18/50-18/59 */,
553         128 + 3     /* 18/60-18/69 */,
554         128 + 3     /* 18/70-18/79 */,
555         128 + 4     /* 18/80-18/89 */,
556         128 + 5     /* 18/90-18/99 */,
557         128 + 6     /* 18/100-18/109 */,
558         128 + 7     /* 18/110-18/119 */,
559         128 + 8     /* 18/120-18/129 */,
560         128 + 9     /* 18/130-18/139 */,
561         128 + 9     /* 18/140-18/149 */,
562         128 + 10    /* 18/150-18/159 */,
563         128 + 11    /* 18/160-18/169 */,
564         128 + 12    /* 18/170-18/179 */,
565         128 + 13    /* 18/180-18/189 */,
566         128 + 14    /* 18/190-18/199 */,
567         128 + 15    /* 18/200-18/209 */,
568         128 + 15    /* 18/210-18/219 */,
569         128 + 16    /* 18/220+ */
570 };
571
572
573 /*!
574  * 腕力によるダメージ修正テーブル
575  * Stat Table (STR) -- bonus to dam (plus 128)
576  */
577 const byte adj_str_td[] =
578 {
579         128 + -2    /*  3 */,
580         128 + -2    /*  4 */,
581         128 + -1    /*  5 */,
582         128 + -1    /*  6 */,
583         128 + 0     /*  7 */,
584         128 + 0     /*  8 */,
585         128 + 0     /*  9 */,
586         128 + 0     /* 10 */,
587         128 + 0     /* 11 */,
588         128 + 0     /* 12 */,
589         128 + 0     /* 13 */,
590         128 + 0     /* 14 */,
591         128 + 0     /* 15 */,
592         128 + 1     /* 16 */,
593         128 + 2     /* 17 */,
594         128 + 2     /* 18/00-18/09 */,
595         128 + 2     /* 18/10-18/19 */,
596         128 + 3     /* 18/20-18/29 */,
597         128 + 3     /* 18/30-18/39 */,
598         128 + 3     /* 18/40-18/49 */,
599         128 + 3     /* 18/50-18/59 */,
600         128 + 3     /* 18/60-18/69 */,
601         128 + 4     /* 18/70-18/79 */,
602         128 + 5     /* 18/80-18/89 */,
603         128 + 5     /* 18/90-18/99 */,
604         128 + 6     /* 18/100-18/109 */,
605         128 + 7     /* 18/110-18/119 */,
606         128 + 8     /* 18/120-18/129 */,
607         128 + 9     /* 18/130-18/139 */,
608         128 + 10    /* 18/140-18/149 */,
609         128 + 11    /* 18/150-18/159 */,
610         128 + 12    /* 18/160-18/169 */,
611         128 + 13    /* 18/170-18/179 */,
612         128 + 14    /* 18/180-18/189 */,
613         128 + 15    /* 18/190-18/199 */,
614         128 + 16    /* 18/200-18/209 */,
615         128 + 18    /* 18/210-18/219 */,
616         128 + 20    /* 18/220+ */
617 };
618
619
620 /*!
621  * 器用度による命中修正テーブル
622  * Stat Table (DEX) -- bonus to hit (plus 128)
623  */
624 const byte adj_dex_th[] =
625 {
626         128 + -3        /* 3 */,
627         128 + -2        /* 4 */,
628         128 + -2        /* 5 */,
629         128 + -1        /* 6 */,
630         128 + -1        /* 7 */,
631         128 + 0 /* 8 */,
632         128 + 0 /* 9 */,
633         128 + 0 /* 10 */,
634         128 + 0 /* 11 */,
635         128 + 0 /* 12 */,
636         128 + 0 /* 13 */,
637         128 + 0 /* 14 */,
638         128 + 0 /* 15 */,
639         128 + 1 /* 16 */,
640         128 + 2 /* 17 */,
641         128 + 3 /* 18/00-18/09 */,
642         128 + 3 /* 18/10-18/19 */,
643         128 + 3 /* 18/20-18/29 */,
644         128 + 3 /* 18/30-18/39 */,
645         128 + 3 /* 18/40-18/49 */,
646         128 + 4 /* 18/50-18/59 */,
647         128 + 4 /* 18/60-18/69 */,
648         128 + 4 /* 18/70-18/79 */,
649         128 + 4 /* 18/80-18/89 */,
650         128 + 5 /* 18/90-18/99 */,
651         128 + 6 /* 18/100-18/109 */,
652         128 + 7 /* 18/110-18/119 */,
653         128 + 8 /* 18/120-18/129 */,
654         128 + 9 /* 18/130-18/139 */,
655         128 + 9 /* 18/140-18/149 */,
656         128 + 10        /* 18/150-18/159 */,
657         128 + 11        /* 18/160-18/169 */,
658         128 + 12        /* 18/170-18/179 */,
659         128 + 13        /* 18/180-18/189 */,
660         128 + 14        /* 18/190-18/199 */,
661         128 + 15        /* 18/200-18/209 */,
662         128 + 15        /* 18/210-18/219 */,
663         128 + 16        /* 18/220+ */
664 };
665
666
667 /*!
668  * 腕力による命中修正テーブル
669  * Stat Table (STR) -- bonus to hit (plus 128)
670  */
671 const byte adj_str_th[] =
672 {
673         128 + -3        /* 3 */,
674         128 + -2        /* 4 */,
675         128 + -1        /* 5 */,
676         128 + -1        /* 6 */,
677         128 + 0 /* 7 */,
678         128 + 0 /* 8 */,
679         128 + 0 /* 9 */,
680         128 + 0 /* 10 */,
681         128 + 0 /* 11 */,
682         128 + 0 /* 12 */,
683         128 + 0 /* 13 */,
684         128 + 0 /* 14 */,
685         128 + 0 /* 15 */,
686         128 + 0 /* 16 */,
687         128 + 0 /* 17 */,
688         128 + 1 /* 18/00-18/09 */,
689         128 + 1 /* 18/10-18/19 */,
690         128 + 1 /* 18/20-18/29 */,
691         128 + 1 /* 18/30-18/39 */,
692         128 + 1 /* 18/40-18/49 */,
693         128 + 1 /* 18/50-18/59 */,
694         128 + 1 /* 18/60-18/69 */,
695         128 + 2 /* 18/70-18/79 */,
696         128 + 3 /* 18/80-18/89 */,
697         128 + 4 /* 18/90-18/99 */,
698         128 + 5 /* 18/100-18/109 */,
699         128 + 6 /* 18/110-18/119 */,
700         128 + 7 /* 18/120-18/129 */,
701         128 + 8 /* 18/130-18/139 */,
702         128 + 9 /* 18/140-18/149 */,
703         128 + 10        /* 18/150-18/159 */,
704         128 + 11        /* 18/160-18/169 */,
705         128 + 12        /* 18/170-18/179 */,
706         128 + 13        /* 18/180-18/189 */,
707         128 + 14        /* 18/190-18/199 */,
708         128 + 15        /* 18/200-18/209 */,
709         128 + 15        /* 18/210-18/219 */,
710         128 + 16        /* 18/220+ */
711 };
712
713
714 /*!
715  * 腕力による基本所持重量値テーブル
716  * Stat Table (STR) -- weight limit in deca-pounds
717  */
718 const byte adj_str_wgt[] =
719 {
720         10      /* 3 */,
721         11      /* 4 */,
722         12      /* 5 */,
723         13      /* 6 */,
724         14      /* 7 */,
725         15      /* 8 */,
726         16      /* 9 */,
727         17      /* 10 */,
728         18      /* 11 */,
729         19      /* 12 */,
730         20      /* 13 */,
731         21      /* 14 */,
732         22      /* 15 */,
733         23      /* 16 */,
734         24      /* 17 */,
735         25      /* 18/00-18/09 */,
736         26      /* 18/10-18/19 */,
737         27      /* 18/20-18/29 */,
738         28      /* 18/30-18/39 */,
739         29      /* 18/40-18/49 */,
740         30      /* 18/50-18/59 */,
741         31      /* 18/60-18/69 */,
742         31      /* 18/70-18/79 */,
743         32      /* 18/80-18/89 */,
744         32      /* 18/90-18/99 */,
745         33      /* 18/100-18/109 */,
746         33      /* 18/110-18/119 */,
747         34      /* 18/120-18/129 */,
748         34      /* 18/130-18/139 */,
749         35      /* 18/140-18/149 */,
750         35      /* 18/150-18/159 */,
751         36      /* 18/160-18/169 */,
752         36      /* 18/170-18/179 */,
753         37      /* 18/180-18/189 */,
754         37      /* 18/190-18/199 */,
755         38      /* 18/200-18/209 */,
756         38      /* 18/210-18/219 */,
757         39      /* 18/220+ */
758 };
759
760
761 /*!
762  * 腕力による武器重量限界値テーブル
763  * Stat Table (STR) -- weapon weight limit in pounds
764  */
765 const byte adj_str_hold[] =
766 {
767         4       /* 3 */,
768         5       /* 4 */,
769         6       /* 5 */,
770         7       /* 6 */,
771         8       /* 7 */,
772         9       /* 8 */,
773         10      /* 9 */,
774         11      /* 10 */,
775         12      /* 11 */,
776         13      /* 12 */,
777         14      /* 13 */,
778         15      /* 14 */,
779         16      /* 15 */,
780         17      /* 16 */,
781         18      /* 17 */,
782         19      /* 18/00-18/09 */,
783         20      /* 18/10-18/19 */,
784         21      /* 18/20-18/29 */,
785         22      /* 18/30-18/39 */,
786         23      /* 18/40-18/49 */,
787         24      /* 18/50-18/59 */,
788         25      /* 18/60-18/69 */,
789         26      /* 18/70-18/79 */,
790         27      /* 18/80-18/89 */,
791         28      /* 18/90-18/99 */,
792         30      /* 18/100-18/109 */,
793         31      /* 18/110-18/119 */,
794         32      /* 18/120-18/129 */,
795         33      /* 18/130-18/139 */,
796         34      /* 18/140-18/149 */,
797         35      /* 18/150-18/159 */,
798         37      /* 18/160-18/169 */,
799         40      /* 18/170-18/179 */,
800         44      /* 18/180-18/189 */,
801         48      /* 18/190-18/199 */,
802         50     /* 18/200-18/209 */,
803         50     /* 18/210-18/219 */,
804         50     /* 18/220+ */
805 };
806
807
808 /*!
809  * 腕力による採掘能力修正値テーブル
810  * Stat Table (STR) -- digging value
811  */
812 const byte adj_str_dig[] =
813 {
814         0       /* 3 */,
815         0       /* 4 */,
816         1       /* 5 */,
817         2       /* 6 */,
818         3       /* 7 */,
819         4       /* 8 */,
820         4       /* 9 */,
821         5       /* 10 */,
822         5       /* 11 */,
823         6       /* 12 */,
824         6       /* 13 */,
825         7       /* 14 */,
826         7       /* 15 */,
827         8       /* 16 */,
828         8       /* 17 */,
829         9       /* 18/00-18/09 */,
830         10      /* 18/10-18/19 */,
831         12      /* 18/20-18/29 */,
832         15      /* 18/30-18/39 */,
833         20      /* 18/40-18/49 */,
834         25      /* 18/50-18/59 */,
835         30      /* 18/60-18/69 */,
836         35      /* 18/70-18/79 */,
837         40      /* 18/80-18/89 */,
838         45      /* 18/90-18/99 */,
839         50      /* 18/100-18/109 */,
840         55      /* 18/110-18/119 */,
841         60      /* 18/120-18/129 */,
842         65      /* 18/130-18/139 */,
843         70      /* 18/140-18/149 */,
844         75      /* 18/150-18/159 */,
845         80      /* 18/160-18/169 */,
846         85      /* 18/170-18/179 */,
847         90      /* 18/180-18/189 */,
848         95      /* 18/190-18/199 */,
849         100     /* 18/200-18/209 */,
850         100     /* 18/210-18/219 */,
851         100     /* 18/220+ */
852 };
853
854
855 /*!
856  * 腕力による攻撃回数算定値テーブル
857  * Stat Table (STR) -- help index into the "blow" table
858  */
859 const byte adj_str_blow[] =
860 {
861         3       /* 3 */,
862         4       /* 4 */,
863         5       /* 5 */,
864         6       /* 6 */,
865         7       /* 7 */,
866         8       /* 8 */,
867         9       /* 9 */,
868         10      /* 10 */,
869         11      /* 11 */,
870         12      /* 12 */,
871         13      /* 13 */,
872         14      /* 14 */,
873         15      /* 15 */,
874         16      /* 16 */,
875         17      /* 17 */,
876         20 /* 18/00-18/09 */,
877         30 /* 18/10-18/19 */,
878         40 /* 18/20-18/29 */,
879         50 /* 18/30-18/39 */,
880         60 /* 18/40-18/49 */,
881         70 /* 18/50-18/59 */,
882         80 /* 18/60-18/69 */,
883         90 /* 18/70-18/79 */,
884         100 /* 18/80-18/89 */,
885         110 /* 18/90-18/99 */,
886         120 /* 18/100-18/109 */,
887         130 /* 18/110-18/119 */,
888         140 /* 18/120-18/129 */,
889         150 /* 18/130-18/139 */,
890         160 /* 18/140-18/149 */,
891         170 /* 18/150-18/159 */,
892         180 /* 18/160-18/169 */,
893         190 /* 18/170-18/179 */,
894         200 /* 18/180-18/189 */,
895         210 /* 18/190-18/199 */,
896         220 /* 18/200-18/209 */,
897         230 /* 18/210-18/219 */,
898         240 /* 18/220+ */
899 };
900
901
902 /*!
903  * 器用さによる攻撃回数インデックステーブル
904  * Stat Table (DEX) -- index into the "blow" table
905  */
906 const byte adj_dex_blow[] =
907 {
908         0       /* 3 */,
909         0       /* 4 */,
910         0       /* 5 */,
911         0       /* 6 */,
912         0       /* 7 */,
913         0       /* 8 */,
914         0       /* 9 */,
915         1       /* 10 */,
916         1       /* 11 */,
917         1       /* 12 */,
918         1       /* 13 */,
919         1       /* 14 */,
920         2       /* 15 */,
921         2       /* 16 */,
922         2       /* 17 */,
923         2       /* 18/00-18/09 */,
924         3       /* 18/10-18/19 */,
925         3       /* 18/20-18/29 */,
926         3       /* 18/30-18/39 */,
927         4       /* 18/40-18/49 */,
928         4       /* 18/50-18/59 */,
929         5       /* 18/60-18/69 */,
930         5       /* 18/70-18/79 */,
931         6       /* 18/80-18/89 */,
932         6       /* 18/90-18/99 */,
933         7       /* 18/100-18/109 */,
934         7       /* 18/110-18/119 */,
935         8       /* 18/120-18/129 */,
936         8       /* 18/130-18/139 */,
937         9      /* 18/140-18/149 */,
938         9      /* 18/150-18/159 */,
939         10      /* 18/160-18/169 */,
940         10      /* 18/170-18/179 */,
941         11      /* 18/180-18/189 */,
942         11      /* 18/190-18/199 */,
943         12      /* 18/200-18/209 */,
944         12      /* 18/210-18/219 */,
945         13      /* 18/220+ */
946 };
947
948
949 /*!
950  * 器用さによる盗難防止&体当たり成功判定修正テーブル
951  * Stat Table (DEX) -- chance of avoiding "theft" and "falling"
952  */
953 const byte adj_dex_safe[] =
954 {
955         0       /* 3 */,
956         1       /* 4 */,
957         2       /* 5 */,
958         3       /* 6 */,
959         4       /* 7 */,
960         5       /* 8 */,
961         5       /* 9 */,
962         6       /* 10 */,
963         6       /* 11 */,
964         7       /* 12 */,
965         7       /* 13 */,
966         8       /* 14 */,
967         8       /* 15 */,
968         9       /* 16 */,
969         9       /* 17 */,
970         10      /* 18/00-18/09 */,
971         10      /* 18/10-18/19 */,
972         15      /* 18/20-18/29 */,
973         15      /* 18/30-18/39 */,
974         20      /* 18/40-18/49 */,
975         25      /* 18/50-18/59 */,
976         30      /* 18/60-18/69 */,
977         35      /* 18/70-18/79 */,
978         40      /* 18/80-18/89 */,
979         45      /* 18/90-18/99 */,
980         50      /* 18/100-18/109 */,
981         60      /* 18/110-18/119 */,
982         70      /* 18/120-18/129 */,
983         80      /* 18/130-18/139 */,
984         90      /* 18/140-18/149 */,
985         100     /* 18/150-18/159 */,
986         100     /* 18/160-18/169 */,
987         100     /* 18/170-18/179 */,
988         100     /* 18/180-18/189 */,
989         100     /* 18/190-18/199 */,
990         100     /* 18/200-18/209 */,
991         100     /* 18/210-18/219 */,
992         100     /* 18/220+ */
993 };
994
995
996 /*!
997  * 耐久による基本HP自然治癒値テーブル /
998  * Stat Table (CON) -- base regeneration rate
999  */
1000 const byte adj_con_fix[] =
1001 {
1002         0       /* 3 */,
1003         0       /* 4 */,
1004         0       /* 5 */,
1005         0       /* 6 */,
1006         0       /* 7 */,
1007         0       /* 8 */,
1008         0       /* 9 */,
1009         0       /* 10 */,
1010         0       /* 11 */,
1011         0       /* 12 */,
1012         0       /* 13 */,
1013         1       /* 14 */,
1014         1       /* 15 */,
1015         1       /* 16 */,
1016         1       /* 17 */,
1017         2       /* 18/00-18/09 */,
1018         2       /* 18/10-18/19 */,
1019         2       /* 18/20-18/29 */,
1020         2       /* 18/30-18/39 */,
1021         2       /* 18/40-18/49 */,
1022         3       /* 18/50-18/59 */,
1023         3       /* 18/60-18/69 */,
1024         3       /* 18/70-18/79 */,
1025         3       /* 18/80-18/89 */,
1026         3       /* 18/90-18/99 */,
1027         4       /* 18/100-18/109 */,
1028         4       /* 18/110-18/119 */,
1029         5       /* 18/120-18/129 */,
1030         6       /* 18/130-18/139 */,
1031         6       /* 18/140-18/149 */,
1032         7       /* 18/150-18/159 */,
1033         7       /* 18/160-18/169 */,
1034         8       /* 18/170-18/179 */,
1035         8       /* 18/180-18/189 */,
1036         8       /* 18/190-18/199 */,
1037         9       /* 18/200-18/209 */,
1038         9       /* 18/210-18/219 */,
1039         9       /* 18/220+ */
1040 };
1041
1042
1043 /*!
1044  * 耐久による基本HP自然治癒値テーブル /
1045  * Stat Table (CON) -- extra 1/4-hitpoints per level (plus 128)
1046  */
1047 const byte adj_con_mhp[] =
1048 {
1049         128 + -8        /* 3 */,
1050         128 + -6        /* 4 */,
1051         128 + -4        /* 5 */,
1052         128 + -2        /* 6 */,
1053         128 + -1 /* 7 */,
1054         128 + 0 /* 8 */,
1055         128 + 0 /* 9 */,
1056         128 + 0 /* 10 */,
1057         128 + 0 /* 11 */,
1058         128 + 0 /* 12 */,
1059         128 + 0 /* 13 */,
1060         128 + 1 /* 14 */,
1061         128 + 1 /* 15 */,
1062         128 + 2 /* 16 */,
1063         128 + 3 /* 17 */,
1064         128 + 4 /* 18/00-18/09 */,
1065         128 + 5 /* 18/10-18/19 */,
1066         128 + 6 /* 18/20-18/29 */,
1067         128 + 7 /* 18/30-18/39 */,
1068         128 + 8 /* 18/40-18/49 */,
1069         128 + 9 /* 18/50-18/59 */,
1070         128 + 10  /* 18/60-18/69 */,
1071         128 + 11 /* 18/70-18/79 */,
1072         128 + 12 /* 18/80-18/89 */,
1073         128 + 14 /* 18/90-18/99 */,
1074         128 + 17         /* 18/100-18/109 */,
1075         128 + 20        /* 18/110-18/119 */,
1076         128 + 23        /* 18/120-18/129 */,
1077         128 + 26        /* 18/130-18/139 */,
1078         128 + 29        /* 18/140-18/149 */,
1079         128 + 32        /* 18/150-18/159 */,
1080         128 + 35        /* 18/160-18/169 */,
1081         128 + 38        /* 18/170-18/179 */,
1082         128 + 40        /* 18/180-18/189 */,
1083         128 + 42        /* 18/190-18/199 */,
1084         128 + 44        /* 18/200-18/209 */,
1085         128 + 46        /* 18/210-18/219 */,
1086         128 + 48        /* 18/220+ */
1087 };
1088
1089
1090 /*!
1091  * 魅力による魅了能力修正テーブル /
1092  * Stat Table (CHR) -- charm
1093  */
1094 const byte adj_chr_chm[] =
1095 {
1096         0       /* 3 */,
1097         0       /* 4 */,
1098         1       /* 5 */,
1099         2       /* 6 */,
1100         3       /* 7 */,
1101         4       /* 8 */,
1102         4       /* 9 */,
1103         5       /* 10 */,
1104         5       /* 11 */,
1105         6       /* 12 */,
1106         6       /* 13 */,
1107         7       /* 14 */,
1108         7       /* 15 */,
1109         8       /* 16 */,
1110         8       /* 17 */,
1111         9       /* 18/00-18/09 */,
1112         10      /* 18/10-18/19 */,
1113         12      /* 18/20-18/29 */,
1114         15      /* 18/30-18/39 */,
1115         18      /* 18/40-18/49 */,
1116         21      /* 18/50-18/59 */,
1117         24      /* 18/60-18/69 */,
1118         28      /* 18/70-18/79 */,
1119         32      /* 18/80-18/89 */,
1120         36      /* 18/90-18/99 */,
1121         39      /* 18/100-18/109 */,
1122         42      /* 18/110-18/119 */,
1123         45      /* 18/120-18/129 */,
1124         49      /* 18/130-18/139 */,
1125         53      /* 18/140-18/149 */,
1126         57      /* 18/150-18/159 */,
1127         61      /* 18/160-18/169 */,
1128         65      /* 18/170-18/179 */,
1129         69      /* 18/180-18/189 */,
1130         73      /* 18/190-18/199 */,
1131         77      /* 18/200-18/209 */,
1132         81      /* 18/210-18/219 */,
1133         85      /* 18/220+ */
1134 };
1135
1136
1137 /*!
1138  * @brief
1139  * 魅力による魅了能力修正テーブル /
1140  * This table is used to help calculate the number of blows the player can
1141  * make in a single round of attacks (one player current_world_ptr->game_turn) with a normal weapon.
1142  * @details
1143  * <pre>
1144  * This number ranges from a single blow/round for weak players to up to six
1145  * blows/round for powerful warriors.
1146  *
1147  * Note that certain artifacts and ego-items give "bonus" blows/round.
1148  *
1149  * First, from the player class, we extract some values:
1150  *
1151  * Warrior       num = 6; mul = 5; div = MAX(70, weapon_weight);
1152  * Berserker     num = 6; mul = 7; div = MAX(70, weapon_weight);
1153  * Mage          num = 3; mul = 2; div = MAX(100, weapon_weight);
1154  * Priest        num = 5; mul = 3; div = MAX(100, weapon_weight);
1155  * Mindcrafter   num = 5; mul = 3; div = MAX(100, weapon_weight);
1156  * Rogue         num = 5; mul = 3; div = MAX(40, weapon_weight);
1157  * Ranger        num = 5; mul = 4; div = MAX(70, weapon_weight);
1158  * Paladin       num = 5; mul = 4; div = MAX(70, weapon_weight);
1159  * Weaponsmith   num = 5; mul = 5; div = MAX(150, weapon_weight);
1160  * Warrior-Mage  num = 5; mul = 3; div = MAX(70, weapon_weight);
1161  * Chaos Warrior num = 5; mul = 4; div = MAX(70, weapon_weight);
1162  * Monk          num = 5; mul = 3; div = MAX(60, weapon_weight);
1163  * Tourist       num = 4; mul = 3; div = MAX(100, weapon_weight);
1164  * Imitator      num = 5; mul = 4; div = MAX(70, weapon_weight);
1165  * Beastmaster   num = 5; mul = 3; div = MAX(70, weapon_weight);
1166  * Cavalry(Ride) num = 5; mul = 4; div = MAX(70, weapon_weight);
1167  * Cavalry(Walk) num = 5; mul = 3; div = MAX(100, weapon_weight);
1168  * Sorcerer      num = 1; mul = 1; div = MAX(1, weapon_weight);
1169  * Archer        num = 4; mul = 2; div = MAX(70, weapon_weight);
1170  * Magic eater   num = 4; mul = 2; div = MAX(70, weapon_weight);
1171  * ForceTrainer  num = 4; mul = 2; div = MAX(60, weapon_weight);
1172  * Mirror Master num = 3; mul = 3; div = MAX(100, weapon_weight);
1173  * Ninja         num = 4; mul = 1; div = MAX(20, weapon_weight);
1174  *
1175  * To get "P", we look up the relevant "adj_str_blow[]" (see above),
1176  * multiply it by "mul", and then divide it by "div".
1177  * Increase P by 1 if you wield a weapon two-handed.
1178  * Decrease P by 1 if you are a Ninja.
1179  *
1180  * To get "D", we look up the relevant "adj_dex_blow[]" (see above),
1181  *
1182  * The player gets "blows_table[P][D]" blows/round, as shown below,
1183  * up to a maximum of "num" blows/round, plus any "bonus" blows/round.
1184  * </pre>
1185  */
1186 const byte blows_table[12][12] =
1187 {
1188         /* P/D */
1189         /*      0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11+ */
1190         /*      3   10   15  /10  /40  /60  /80 /100 /120 /140 /160 /180  */
1191 /* 0 */{        1,   1,   1,   1,   1,   2,   2,   2,   2,   3,   3,   4 },
1192 /* 1 */{        1,   1,   1,   2,   2,   2,   3,   3,   3,   4,   4,   4 },
1193 /* 2 */{        1,   1,   2,   2,   3,   3,   4,   4,   4,   5,   5,   5 },
1194 /* 3 */{        1,   1,   2,   3,   3,   4,   4,   4,   5,   5,   5,   5 },
1195 /* 4 */{        1,   1,   2,   3,   3,   4,   4,   5,   5,   5,   5,   5 },
1196 /* 5 */{        1,   1,   2,   3,   4,   4,   4,   5,   5,   5,   5,   6 },
1197 /* 6 */{        1,   1,   2,   3,   4,   4,   4,   5,   5,   5,   5,   6 },
1198 /* 7 */{        1,   2,   2,   3,   4,   4,   4,   5,   5,   5,   5,   6 },
1199 /* 8 */{        1,   2,   3,   3,   4,   4,   4,   5,   5,   5,   6,   6 },
1200 /* 9 */{        1,   2,   3,   4,   4,   4,   5,   5,   5,   5,   6,   6 },
1201 /* 10*/{        2,   2,   3,   4,   4,   4,   5,   5,   5,   6,   6,   6 },
1202 /*11+*/{        2,   2,   3,   4,   4,   4,   5,   5,   6,   6,   6,   6 },
1203
1204 };
1205
1206
1207 /*!
1208  * @brief 加速値による実質速度修正倍率テーブル /
1209  * This table allows quick conversion from "speed" to "energy"
1210  * @details
1211  * <pre>
1212  * The basic function WAS ((S>=110) ? (S-110) : (100 / (120-S)))
1213  * Note that table access is *much* quicker than computation.
1214  *
1215  * Note that the table has been changed at high speeds.  From
1216  * "Slow (-40)" to "Fast (+30)" is pretty much unchanged, but
1217  * at speeds above "Fast (+30)", one approaches an asymptotic
1218  * effective limit of 50 energy per current_world_ptr->game_turn.  This means that it
1219  * is relatively easy to reach "Fast (+30)" and get about 40
1220  * energy per current_world_ptr->game_turn, but then speed becomes very "expensive",
1221  * and you must get all the way to "Fast (+50)" to reach the
1222  * point of getting 45 energy per current_world_ptr->game_turn.  After that point,
1223  * furthur increases in speed are more or less pointless,
1224  * except to balance out heavy p_ptr->inventory_list.
1225  *
1226  * Note that currently the fastest monster is "Fast (+30)".
1227  *
1228  * It should be possible to lower the energy threshhold from
1229  * 100 units to 50 units, though this may interact badly with
1230  * the (compiled out) small random energy boost code.  It may
1231  * also tend to cause more "clumping" at high speeds.
1232  * </pre>
1233  */
1234 const byte extract_energy[200] =
1235 {
1236         /* Slow */     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
1237         /* Slow */     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
1238         /* Slow */     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
1239         /* Slow */     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
1240         /* Slow */     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
1241         /* Slow */     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
1242         /* S-50 */     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
1243         /* S-40 */     2,  2,  2,  2,  2,  2,  2,  2,  2,  2,
1244         /* S-30 */     2,  2,  2,  2,  2,  2,  2,  3,  3,  3,
1245         /* S-20 */     3,  3,  3,  3,  3,  4,  4,  4,  4,  4,
1246         /* S-10 */     5,  5,  5,  5,  6,  6,  7,  7,  8,  9,
1247         /* Norm */    10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
1248         /* F+10 */    20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
1249         /* F+20 */    30, 31, 32, 33, 34, 35, 36, 36, 37, 37,
1250         /* F+30 */    38, 38, 39, 39, 40, 40, 40, 41, 41, 41,
1251         /* F+40 */    42, 42, 42, 43, 43, 43, 44, 44, 44, 44,
1252         /* F+50 */    45, 45, 45, 45, 45, 46, 46, 46, 46, 46,
1253         /* F+60 */    47, 47, 47, 47, 47, 48, 48, 48, 48, 48,
1254         /* F+70 */    49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
1255         /* Fast */    49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
1256 };
1257
1258
1259 /*!
1260  * @brief 性別表記 /
1261  * Player Sexes
1262  * @details
1263  * <pre>
1264  *      Title,
1265  *      Winner
1266  * </pre>
1267  */
1268 const player_sex sex_info[MAX_SEXES] =
1269 {
1270         {
1271 #ifdef JP
1272                 "女性",
1273                 "クイーン",
1274 #endif
1275                 "Female",
1276                 "Queen"
1277         },
1278         {
1279 #ifdef JP
1280                 "男性",
1281                 "キング",
1282 #endif
1283                 "Male",
1284                 "King"
1285         }
1286 };
1287
1288
1289 /*!
1290  * @brief 種族情報 /
1291  * Player Races
1292  * @details
1293  * <pre>
1294  *      Title,
1295  *      {STR,INT,WIS,DEX,CON,CHR},
1296  *      r_dis, r_dev, r_sav, r_stl, r_srh, r_fos, r_thn, r_thb,
1297  *      hitdie, exp base,
1298  *      Age (Base, Mod),
1299  *      Male (Hgt, Wgt),
1300  *      Female (Hgt, Wgt)
1301  *      infra,
1302  *      class-choices
1303  * </pre>
1304  */
1305 const player_race race_info[MAX_RACES] =
1306 {
1307         {
1308 #ifdef JP
1309                 "人間",
1310 #endif
1311                 "Human",
1312
1313                 {  0,  0,  0,  0,  0,  0 },
1314                 0,  0,  0,  0,  0,  10,  0,  0,
1315                 10,  100,
1316                 14,  6,
1317                 72,  6, 180, 25,
1318                 66,  4, 150, 20,
1319                 0,
1320                 0xFFFFFFF,
1321         },
1322         {
1323 #ifdef JP
1324                 "ハーフエルフ",
1325 #endif
1326                 "Half-Elf",
1327
1328                 { -1,  1,  1,  1, -1,  1 },
1329                 2,  3,  2,  1, 6,  11, -1,  5,
1330                 9,  110,
1331                 24, 16,
1332                 66,  6, 130, 15,
1333                 62,  6, 100, 10,
1334                 2,
1335                 0xE77E7FF,
1336         },
1337         {
1338 #ifdef JP
1339                 "エルフ",
1340 #endif
1341                 "Elf",
1342
1343                 { -1,  2,  0,  1, -2,  2 },
1344                 5,  6,  4,  2, 8,  12, -5, 15,
1345                 8,  120,
1346                 75, 75,
1347                 60,  4, 100,  6,
1348                 54,  4, 80,  6,
1349                 3,
1350                 0xE77E75B,
1351
1352         },
1353         {
1354 #ifdef JP
1355                 "ホビット",
1356 #endif
1357                 "Hobbit",
1358
1359                 { -2,  1,  1,  3,  2,  1 },
1360                 15, 12, 10, 5, 12,  15, -10, 20,
1361                 7,  110,
1362                 21, 12,
1363                 36,  3, 60,  3,
1364                 33,  3, 50,  3,
1365                 4,
1366                 0xF6FFC0B,
1367         },
1368         {
1369 #ifdef JP
1370                 "ノーム",
1371 #endif
1372                 "Gnome",
1373
1374                 { -1,  2,  0,  2,  1, -1 },
1375                 10, 8, 7,  3, 6,  13, -8, 12,
1376                 8,  120,
1377                 50, 40,
1378                 42,  3, 90,  6,
1379                 39,  3, 75,  3,
1380                 4,
1381                 0xF67D60F,
1382         },
1383         {
1384 #ifdef JP
1385                 "ドワーフ",
1386 #endif
1387                 "Dwarf",
1388
1389                 {  2, -2,  2, -2,  2, -1 },
1390                 2,  7,  6,  -1,  7,  10, 15,  0,
1391                 11,  125,
1392                 35, 15,
1393                 48,  3, 150, 10,
1394                 46,  3, 120, 10,
1395                 5,
1396                 0x1890005,
1397         },
1398         {
1399 #ifdef JP
1400                 "ハーフオーク",
1401 #endif
1402                 "Half-Orc",
1403
1404                 {  2, -1,  0,  0,  1, -2 },
1405                 -3, -3, -2,  -1,  0, 7, 12, -5,
1406                 10,  110,
1407                 11,  4,
1408                 66,  1, 150,  5,
1409                 62,  1, 120,  5,
1410                 3,
1411                 0xDD8818D,
1412         },
1413         {
1414 #ifdef JP
1415                 "ハーフトロル",
1416 #endif
1417                 "Half-Troll",
1418
1419                 { 4, -4, -1, -3,  3, -3 },
1420                 -5, -8, -5, -2,  -1, 5, 20, -10,
1421                 12,  125,
1422                 20, 10,
1423                 96, 10, 250, 50,
1424                 84,  8, 225, 40,
1425                 3,
1426                 0x0880005,
1427         },
1428         {
1429 #ifdef JP
1430                 "アンバライト",
1431 #endif
1432                 "Amberite",
1433
1434                 {  1,  2,  2,  2,  3,  2 },
1435                 4,  5,  3,  2, 3, 13, 15, 10,
1436                 10,  225,
1437                 50, 50,
1438                 82, 5, 190, 20,
1439                 78,  6, 180, 15,
1440                 0,
1441                 0xFFFF7FF,
1442         },
1443         {
1444 #ifdef JP
1445                 "ハイエルフ",
1446 #endif
1447                 "High-Elf",
1448
1449                 {  1,  3,  -1,  3,  1,  3 },
1450                 4,  13, 12,  4,  3, 14, 10, 25,
1451                 10,  200,
1452                 100, 30,
1453                 90, 10, 190, 20,
1454                 82, 10, 180, 15,
1455                 4,
1456                 0xF77E75B,
1457         },
1458         {
1459 #ifdef JP
1460                 "野蛮人",
1461 #endif
1462                 "Barbarian",
1463
1464                 { 3, -2,  -1,  1,  2, 0 },
1465                 -2, -10, 2,  -1,  1, 7, 12, 10,
1466                 11, 120,
1467                 14, 8,
1468                 82, 5, 200, 20,
1469                 78,  6, 190, 15,
1470                 0,
1471                 0x5C0A09D,
1472         },
1473         {
1474 #ifdef JP
1475                 "ハーフオーガ",
1476 #endif
1477                 "Half-Ogre",
1478
1479                 { 3, -2, 0, -1, 3, -2 },
1480                 -3, -5, -3, -2, -1, 5, 20, 0,
1481                 12,  145,
1482                 40, 10,
1483                 92, 10, 255, 60,
1484                 80,  8, 235, 60,
1485                 3,
1486                 0x0A80407,
1487         },
1488         {
1489 #ifdef JP
1490                 "半巨人",
1491 #endif
1492                 "Half-Giant",
1493
1494                 { 4, -2, -2, -2, 3, -2 },
1495                 -6, -8, -3, -2, -1, 5, 25, 5,
1496                 13, 160,
1497                 40, 10,
1498                 100,10, 255, 65,
1499                 80, 10, 240, 64,
1500                 3,
1501                 0x8880011,
1502         },
1503         {
1504 #ifdef JP
1505                 "半タイタン",
1506 #endif
1507                 "Half-Titan",
1508
1509                 { 5, 1, 2, -2, 3, 1 },
1510                 -5, 5, 1, -2, 1, 8, 25, 0,
1511                 14, 255,
1512                 100,30,
1513                 111, 11, 255, 86,
1514                 99, 11, 250, 86,
1515                 0,
1516                 0x23D4727,
1517         },
1518         {
1519 #ifdef JP
1520                 "サイクロプス",
1521 #endif
1522                 "Cyclops",
1523
1524                 { 4, -3, -2, -3, 4, -3 },
1525                 -4, -5, -3, -2, -2, 5, 20, 12,
1526                 13, 150,
1527                 50, 24,
1528                 92, 10, 255, 60,
1529                 80,  8, 235, 60,
1530                 1,
1531                 0x0888005,
1532         },
1533         {
1534 #ifdef JP
1535                 "イーク",
1536 #endif
1537                 "Yeek",
1538
1539                 { -2, 1, 1, 1, -2, -4 },
1540                 2, 4, 6, 3, 5, 15, -5, -5,
1541                 7, 100,
1542                 14, 3,
1543                 50,  3, 90,  6,
1544                 50,  3, 75,  3,
1545                 2,
1546                 0x667360F,
1547         },
1548         {
1549 #ifdef JP
1550                 "クラッコン",
1551 #endif
1552                 "Klackon",
1553
1554                 { 2, -1, -1, 1, 2, -1 },
1555                 10, 5, 3, 0, -1, 10, 5, 5,
1556                 12, 190,
1557                 20, 3,
1558                 60,  3, 80,  4,
1559                 54,  3, 70,  4,
1560                 2,
1561                 0x04D8011,
1562         },
1563         {
1564 #ifdef JP
1565                 "コボルド",
1566 #endif
1567                 "Kobold",
1568
1569                 { 1, -1, 0, 1, 0, -2 },
1570                 -2, -3, -1, -1, 1, 8, 10, -8,
1571                 9, 125,
1572                 11,  3,
1573                 60,  1, 130,  5,
1574                 55,  1, 100,  5,
1575                 3,
1576                 0x444A009,
1577         },
1578         {
1579 #ifdef JP
1580                 "ニーベルング",
1581 #endif
1582                 "Nibelung",
1583
1584                 { 1, -1, 2, 0, 2, -2 },
1585                 3, 5, 6, 1, 5, 10, 9, 0,
1586                 11, 170,
1587                 40, 12,
1588                 43,  3, 92,  6,
1589                 40,  3, 78,  3,
1590                 5,
1591                 0x569040F,
1592         },
1593         {
1594 #ifdef JP
1595                 "ダークエルフ",
1596 #endif
1597                 "Dark-Elf",
1598
1599                 { -1, 3, 2, 2, -2, 1 },
1600                 5, 10, 12, 3, 8, 12, -5, 10,
1601                 9, 150,
1602                 75, 75,
1603                 60,  4, 100,  6,
1604                 54,  4, 80,  6,
1605                 5,
1606                 0xE77C7DF,
1607         },
1608         {
1609 #ifdef JP
1610                 "ドラコニアン",
1611 #endif
1612                 "Draconian",
1613
1614                 { 2, 1, 1, 1, 2, -1 },
1615                 -2, 5, 2, 0, 1, 10, 5, 5,
1616                 11, 220,
1617                 75, 33,
1618                 76,  1, 160,  5,
1619                 72,  1, 130,  5,
1620                 2,
1621                 0x7FFE757,
1622         },
1623         {
1624 #ifdef JP
1625                 "マインドフレア",
1626 #endif
1627                 "Mindflayer",
1628
1629                 { -3, 4, 4, 0, -2, -3 },
1630                 10, 15, 9, 2, 5, 12, -10, -5,
1631                 9, 140,
1632                 100, 25,
1633                 68,  6, 142, 15,
1634                 63,  6, 112, 10,
1635                 4,
1636                 0x2334746,
1637         },
1638         {
1639 #ifdef JP
1640                 "インプ",
1641 #endif
1642                 "Imp",
1643
1644                 { 0, -1, -1, 1, 2, -1 },
1645                 -3, 2, -1, 1, -1, 10, 5, -5,
1646                 10, 115,
1647                 13,  4,
1648                 68,  1, 150,  5,
1649                 64,  1, 120,  5,
1650                 3,
1651                 0xDB537CB,
1652         },
1653         {
1654 #ifdef JP
1655                 "ゴーレム",
1656 #endif
1657                 "Golem",
1658
1659                 { 4, -5, -5, -2, 4, -2 },
1660                 -5, -5, 6, -1, -1, 8, 20, 0,
1661                 12, 200,
1662                 1, 100,
1663                 66,  1, 200,  6,
1664                 62,  1, 180,  6,
1665                 4,
1666                 0x0800001,
1667         },
1668         {
1669 #ifdef JP
1670                 "骸骨",
1671 #endif
1672                 "Skeleton",
1673
1674                 { 0, 1, -2, 0, 1, -2 },
1675                 -5, 0, 3, -1, -1, 8, 10, 0,
1676                 10, 145,
1677                 100, 35,
1678                 72,  6, 50, 5,
1679                 66,  4, 50, 5,
1680                 2,
1681                 0x234070F,
1682         },
1683         {
1684 #ifdef JP
1685                 "ゾンビ",
1686 #endif
1687                 "Zombie",
1688
1689                 { 2, -6, -6, 1, 4, -3 },
1690                 -5, -5, 5, -1, -1, 5, 15, 0,
1691                 13, 150,
1692                 100, 30,
1693                 72, 6, 100, 25,
1694                 66, 4, 100, 20,
1695                 2,
1696                 0x0800001,
1697         },
1698         {
1699 #ifdef JP
1700                 "吸血鬼",
1701 #endif
1702                 "Vampire",
1703
1704                 { 3, 3, -1, -1, 1, 2 },
1705                 4, 8, 6, 4, 1, 8, 5, 0,
1706                 11, 200,
1707                 100, 30,
1708                 72,  6, 180, 25,
1709                 66,  4, 150, 20,
1710                 5,
1711                 0x67DC7FF,
1712         },
1713         {
1714 #ifdef JP
1715                 "幽霊",
1716 #endif
1717                 "Spectre",
1718
1719                 { -5, 4, -1, 2, 0, -3 },
1720                 10, 15, 12, 5, 5, 14, -15, -5,
1721                 7, 210,
1722                 100, 30,
1723                 72, 6, 100, 25,
1724                 66, 4, 100, 20,
1725                 5,
1726                 0x631474A,
1727         },
1728         {
1729 #ifdef JP
1730                 "妖精",
1731 #endif
1732                 "Sprite",
1733
1734                 { -4, 3, 3, 3, -2, 2 },
1735                 10, 8, 6, 4, 10, 10, -12, 0,
1736                 7, 145,
1737                 50, 25,
1738                 32,  2, 75,  2,
1739                 29,  2, 65,  2,
1740                 4,
1741                 0x623F65E,
1742         },
1743         {
1744 #ifdef JP
1745                 "獣人",  
1746 #endif
1747                 "Beastman",
1748
1749                 { 2, -2, -1, -1, 2, -2 },
1750                 -5, -2, -1, -1, -1, 5, 12, 5,
1751                 11, 140,
1752                 14, 6,
1753                 65,  6, 150, 20,
1754                 61,  6, 120, 15,
1755                 0,
1756                 0x57887CF,
1757         },
1758         {
1759 #ifdef JP
1760                 "エント",
1761 #endif
1762                 "Ent",
1763                 { 2,  0,  2, -3,  2,  0 },
1764                  -5,  2,  5,  -1, 0, 9,  15, -5,
1765                  12, 140,
1766                 120,  60,
1767                 111, 11, 255, 50,
1768                 99, 11, 250, 45,
1769                   0,
1770                 0x0010005,
1771         },
1772         {
1773 #ifdef JP
1774                 "アルコン",
1775 #endif
1776                 "Archon",
1777
1778                 {  2,  0,  4,  1,  2,  3 },
1779                 0,  12,  8,  2, 2, 11, 10, 10,
1780                 11,  235,
1781                 150, 150,
1782                 82, 5, 190, 20,
1783                 78,  6, 180, 15,
1784                 3,
1785                 0x779F777,
1786         },
1787         {
1788 #ifdef JP
1789                 "バルログ",
1790                 "Balrog",
1791 #else
1792                 "Balrog",
1793 #endif
1794
1795                 {  4,  2,  -10,  2,  3,  -5 },
1796                 -3,  12, 15,  -2,  1, 8, 20, 0,
1797                 12,  250,
1798                 255, 255,
1799                 100,10, 255, 65,
1800                 80, 10, 240, 64,
1801                 5,
1802                 0x7EDC4DB,
1803         },
1804         {
1805 #ifdef JP
1806                 "ドゥナダン",
1807 #endif
1808                 "Dunadan",
1809
1810                 {  1,  2,  2,  2,  3,  2 },
1811                 4,  5,  3,  2, 3, 13, 15, 10,
1812                 10,  180,
1813                 50, 20,
1814                 82, 5, 190, 20,
1815                 78,  6, 180, 15,
1816                 0,
1817                 0xFFFF7FF,
1818         },
1819         {
1820 #ifdef JP
1821                 "影フェアリー",
1822 #endif
1823                 "Shadow-Fairy",
1824                 {-2,  2,  2,  1, -1,  0 },
1825                   7,  8,  0,  6, 12, 15, -10, -5,
1826                   7, 120,
1827                 200, 100,
1828                  80,  8, 90, 20,
1829                  73,  8, 80, 15,
1830                   4,
1831                 0xE33C7DF,
1832         },
1833         {
1834 #ifdef JP
1835                 "クター",
1836 #endif
1837                 "Kutar",
1838
1839                 {  0,  -1,  -1,  1,  2,  3 },
1840                 -2,  5,  5,  5,  -2,  6,  0,  -5,
1841                 11,  140,
1842                 14,  6,
1843                 48,  6, 150, 25,
1844                 44,  4, 130, 20,
1845                 0,
1846                 0xC18B7AD,
1847         },
1848         {
1849 #ifdef JP
1850                 "アンドロイド",
1851 #endif
1852                 "Android",
1853
1854                 { 4, -5, -5, 0, 4, -2 },
1855                 0, -5, 0, -2, 3, 14, 20, 10,
1856                 13, 200,
1857                 1, 100,
1858                 72, 12, 240, 64,
1859                 66, 12, 220, 64,
1860                 0,
1861                 0x0800001,
1862         },
1863         {
1864 #ifdef JP
1865                 "マーフォーク",
1866 #endif
1867                 "Merfolk",
1868
1869                 { -1,  0,  2,  1,  -1,  1},
1870                         2,  3,  2,  1, 6,  11, -1,  5,
1871                         10,  130,
1872                         24, 16,
1873                         66,  6, 130, 15,
1874                         62,  6, 100, 10,
1875                         2,
1876                         0xE77E7FF,
1877         },
1878
1879 };
1880
1881 /*!
1882  * @brief 性格情報 /
1883  * Player Character
1884  */
1885 const player_seikaku seikaku_info[MAX_SEIKAKU] =
1886 {
1887         {
1888 #ifdef JP
1889                 "ふつう",
1890 #endif
1891                 "Ordinary",
1892                 {  0,  0,  0,  0,  0,  0 },
1893                 0,  0,  0,  0,  0,  0,  0,  0,
1894                 0, 1, 0
1895         },
1896
1897         {
1898 #ifdef JP
1899                 "ちからじまん",
1900 #endif
1901                 "Mighty",
1902                 {  2,  -2,  -1,  0,  1,  0 },
1903                 -5,  -5,  -3,  -1,  -2,  -2,  10,  0,
1904                 1, 1, 0
1905         },
1906
1907         {
1908 #ifdef JP
1909                 "きれもの",
1910 #endif
1911                 "Shrewd",
1912                 {  -2,  2,  0,  1,  -1,  -1 },
1913                 3,  8,  2,  0,  -2,  5,  -8,  -5,
1914                 -1, 1, 0
1915         },
1916
1917         {
1918 #ifdef JP
1919                 "しあわせもの",
1920 #endif
1921                 "Pious",
1922                 {  0,  -1,  2,  -1,  0,  1 },
1923                 -5,  2,  4,  -1,  3,  -2,  -3,  -6,
1924                 0, 1, 0
1925         },
1926
1927         {
1928 #ifdef JP
1929                 "すばしっこい",
1930 #endif
1931                 "Nimble",
1932                 {  -1,  1,  -1,  2,  -1,  -1 },
1933                 7,  2,  -1,  1,  5,  5,  0,  10,
1934                 0, 0, 0
1935         },
1936
1937         {
1938 #ifdef JP
1939                 "いのちしらず",
1940 #endif
1941                 "Fearless",
1942                 {  2,  1,  1,  -1,  -1,  0 },
1943                 -5,  5,  -2,  0,  2,  -2,  10,  10,
1944                 -1, 1, 0
1945         },
1946
1947         {
1948 #ifdef JP
1949                 "コンバット",
1950 #endif
1951                 "Combat",
1952                 {  1,  -1,  -2,  2,  0,  1 },
1953                 -2,  -3,  -3,  0,  -1,  2,  5,  5,
1954                 0, 0, 0
1955         },
1956
1957         {
1958 #ifdef JP
1959                 "なまけもの",
1960 #endif
1961                 "Lazy",
1962                 {  -2,  -2,  -2,  -2,  -2,  -2 },
1963                 -5,  -5,  -3,  -1,  -4,  -2,  -8,  -8,
1964                 -1, 1, 0
1965         },
1966
1967         {
1968 #ifdef JP
1969                 "セクシーギャル",
1970 #endif
1971                 "Sexy",
1972                 {  1,  1,  1,  1,  1,  3 },
1973                 10,  5,  3,  0,  4,  2,  10,  10,
1974                 0, 1, 1
1975         },
1976
1977         {
1978 #ifdef JP
1979                 "ラッキーマン",
1980 #endif
1981                 "Lucky",
1982                 {  -2,  -2,  -2,  -2,  -2,  2 },
1983                 10,  7,  3,  2, 10,  8,  15,  15,
1984                 0, 1, 2
1985         },
1986
1987         {
1988 #ifdef JP
1989                 "がまんづよい",
1990 #endif
1991                 "Patient",
1992                 {  -1,  -1,  1,  -2,  2,  0 },
1993                 -5,  -3,  3,  1,  0,  -3,  -6,  -6,
1994                 1, 0, 0
1995         },
1996
1997         {
1998 #ifdef JP
1999                 "いかさま",
2000 #endif
2001                 "Munchkin",
2002                 { 10,  10,  10,  10,  10,  10 },
2003                  20, 40, 30, 10, 40, 40,  80, 80,
2004                  15, 1, 0
2005         },
2006
2007         {
2008 #ifdef JP
2009                 "チャージマン",
2010 #endif
2011                 "Chargeman",
2012                 { 2,  -2,  -2,  0,  1,  -2 },
2013                 -7, 7, -5, -1, -2, -4, 15, 20,
2014                 -1, 0, 0
2015         },
2016
2017 };
2018
2019
2020 /*!
2021  * @brief 変身種族情報
2022  */
2023 const player_race mimic_info[] =
2024 {
2025         {
2026 #ifdef JP
2027                 "[標準形態]",
2028 #endif
2029                 "Default",
2030
2031                 {  0,  0,  0,  0,  0,  0 },
2032                 0,  0,  0,  0,  0,  10,  0,  0,
2033                 10,  100,
2034                 0,  0,
2035                 0,  0, 0, 0,
2036                 0,  0, 0, 0,
2037                 0,
2038                 0x000000,
2039         },
2040         {
2041 #ifdef JP
2042                 "[悪魔]",
2043 #endif
2044                 "[Demon]",
2045
2046                 {  5,  3,  2,  3,  4,  -6 },
2047                 -5,  18, 20, -2,  3,  10, 40, 20,
2048                 12,  0,
2049                 0,  0,
2050                 0,  0, 0, 0,
2051                 0,  0, 0, 0,
2052                 5,
2053                 0x000003,
2054         },
2055         {
2056 #ifdef JP
2057                 "[魔王]",
2058 #endif
2059                 "[Demon lord]",
2060
2061                 {  20,  20,  20,  20,  20,  20 },
2062                 20,  20, 25, -2,  3,  10, 70, 40,
2063                 14,  0,
2064                 0,  0,
2065                 0,  0, 0, 0,
2066                 0,  0, 0, 0,
2067                 20,
2068                 0x000003,
2069         },
2070         {
2071 #ifdef JP
2072                 "[吸血鬼]",
2073 #endif
2074                 "[Vampire]",
2075
2076                 { 4, 4, 1, 1, 2, 3 },
2077                 6, 12, 8, 6, 2, 12, 30, 20,
2078                 11,  0,
2079                 0,  0,
2080                 0,  0, 0, 0,
2081                 0,  0, 0, 0,
2082                 5,
2083                 0x000005,
2084         },
2085 };
2086
2087
2088 /*!
2089  * 魔法領域フラグ管理テーブル /
2090  * Zangband uses this array instead of the spell flags table, as there
2091  * are 5 realms of magic, each with 4 spellbooks and 8 spells per book -- TY
2092  */
2093 const u32b fake_spell_flags[4]=
2094 {
2095         0x000000ff,
2096         0x0000ff00,
2097         0x00ff0000,
2098         0xff000000
2099 };
2100
2101 #ifdef JP
2102 /*!
2103  * 領域魔法名称
2104  */
2105 const concptr realm_names[] =
2106 {
2107         "魔法なし",
2108         "生命",
2109         "仙術",
2110         "自然",
2111         "カオス",
2112         "暗黒",
2113         "トランプ",
2114         "秘術",
2115         "匠",
2116         "悪魔",
2117         "破邪",
2118         "不明",
2119         "不明",
2120         "不明",
2121         "不明",
2122         "不明",
2123         "歌",
2124         "武芸",
2125         "呪術",
2126         "不明"
2127 };
2128 #endif
2129
2130 #ifdef JP
2131 const concptr E_realm_names[]
2132 #else
2133 const concptr realm_names[]
2134 #endif
2135 = {
2136         "none",
2137         "Life",
2138         "Sorcery",
2139         "Nature",
2140         "Chaos",
2141         "Death",
2142         "Trump",
2143         "Arcane",
2144         "Craft",
2145         "Daemon",
2146         "Crusade",
2147         "unknown",
2148         "unknown",
2149         "unknown",
2150         "unknown",
2151         "unknown",
2152         "Music",
2153         "Kendo",
2154         "Hex",
2155         "unknown"
2156 };
2157
2158
2159 /*!
2160  * @brief 職業とレベル毎のプレイヤー称号テーブル / Class titles for the player.
2161  * <pre>
2162  * The player gets a new title every five levels, so each class
2163  * needs only ten titles total.
2164  * </pre>
2165  */
2166 #ifdef JP
2167 const concptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
2168 {
2169         /* Warrior */
2170         {
2171                 "新参兵",
2172                 "兵士",
2173                 "傭兵",
2174                 "古参兵",
2175                 "剣士",
2176                 "闘士",
2177                 "英雄",
2178                 "男爵",
2179                 "伯爵",
2180                 "君主",
2181         },
2182
2183         /* Mage */
2184         {
2185                                 /*"見習い",*/
2186                 "練習生",                 /*丁稚、練習生 */
2187                 "奇術師",               /*詐欺師、ペテン師 */
2188                 "幻術師",
2189                 "呪術師",
2190                 "召霊師",
2191                 "召魔師",
2192                 "魔術師",
2193                 "魔道師",
2194                 "イプシシマス",
2195                 "大魔道師",
2196         },
2197
2198         /* Priest */
2199         {
2200                 "信者",                 /*信徒 */
2201                 "侍僧",             /*教会奉仕者、見習い僧、伴僧、従者 */
2202                 "熟練僧",
2203                 "聖職者",                 /*聖職者 */
2204                 "伝道師",               /*司祭評議員、修道会会員 */
2205                 "牧師",               /*ラマ教の僧 */
2206                 "聖人",               /*大司教、総主教、総大司教 */
2207                 "祭司",                 /*祭司、司祭 */
2208                 "祭司長",               /*大祭司、祭司長 */
2209                 "教皇",
2210         },
2211
2212         /* Rogues */
2213         {
2214                 /* "ごろつき",*/                     /*ごろつき、風来坊、浮浪者 */
2215                 "すり",
2216                 "追いはぎ",                     /*追い剥ぎ、強盗、泥棒 */
2217                 "夜盗",                         /*強盗、夜盗、泥棒 */
2218                 "こそ泥",                       /*こそ泥、小泥棒 */
2219                 "ペテン師",                     /*博徒、ペテン師、詐欺師 */
2220                 "ロウシーフ",
2221                 "ハイシーフ",
2222                 "マスター", /* "マスターシーフ", */
2223                 "アサシン",                                         /* 暗殺者 */
2224                 "頭領", /*"ギルドマスター",*/
2225         },
2226
2227         /* Rangers */
2228         {
2229                 "使い走り",
2230                 "馳夫",
2231                 "斥候",                         /*斥候、見張り、偵察兵 */
2232                 "狩人",
2233                 "追跡者",
2234                 "先導者",
2235                 "探険者",                       /*開拓者、探険者 */
2236                 "野伏",
2237                 "野伏頭",
2238                 "野伏の総領",
2239         },
2240
2241         /* Paladins */
2242         {
2243                 "勇士",                 /*色男、愛人、しゃれ者、勇敢な人 */
2244                 "衛士",
2245                 "保護者",
2246                 "防衛者",
2247                 "護衛者",
2248                 "騎士",
2249                 "重騎士",
2250                 "聖騎士",
2251                 "上級聖騎士",
2252                 "聖騎士団長",
2253         },
2254
2255         /* Warrior-Mage */
2256         {
2257                 "見習い",
2258                 "徒弟",                       /*丁稚、練習生 */
2259                 "一人前",
2260                 "古参兵",
2261                 "魔術兵士",
2262                 "魔術闘士",
2263                 "魔術の英雄", /* Mage-Hero */
2264                 "魔男爵",
2265                 /* "魔公爵", */
2266                 "戦闘魔術士",
2267                 "知識の守護者", /* "ウィザードロード", */
2268         },
2269
2270         /* Chaos Warrior */
2271         {
2272                 "新参兵",
2273                 "兵士",
2274                 "傭兵",
2275                 "古参兵",
2276                 "剣士",
2277                 "闘士",
2278                 "混沌の英雄",
2279                 "混沌の男爵",
2280                 "混沌の公爵",
2281                 "混沌の王者",
2282         },
2283
2284         /* Monk */
2285         {
2286                 "入門者",
2287                 "弟子",
2288                 "直弟子",
2289                 "師範代",
2290                 "師範",
2291                 "道場主",
2292                 "名人",
2293                 "大名人",
2294                 "拳聖",
2295                 "拳神",
2296         },
2297
2298         /* Mindcrafter */
2299         {
2300                 "練習生",
2301                 "見習い",
2302                 "熟練士",
2303                 "熟達士",
2304                 "黙想士",
2305                 "心術士",
2306                 "サイキック",
2307                 "サイオニック",
2308                 "超能力者",
2309                 "精神の支配者", /* "マインドマスター", */
2310         },
2311
2312         /* High Mage; same as Mage */
2313         {
2314                                 /*"見習い",*/
2315                 "練習生",                 /*丁稚、練習生 */
2316                 "奇術師",               /*詐欺師、ペテン師 */
2317                 "幻術師",
2318                 "呪術師",
2319                 "召霊師",
2320                 "召魔師",
2321                 "魔術師",
2322                 "魔道師",
2323                 "イプシシマス",
2324                 "大魔道師",
2325         },
2326
2327         /* Tourist */
2328         {
2329                 "プー太郎",
2330                 "観光客",
2331                 "周遊旅行者",
2332                 "遍歴者",
2333                 "旅行者",
2334                 "放浪者", /* "旅人", */
2335                 "航海者",
2336                 "探検家",
2337                 "冒険家",
2338                 "スペランカー",
2339         },
2340
2341         /* Imitator */
2342         {
2343                 "これから",
2344                 "いまいち",
2345                 "まだまだ",
2346                 "ぼちぼち",
2347                 "そこそこ",
2348                 "まあまあ",
2349                 "なかなか",
2350                 "いけいけ",
2351                 "そうとう",
2352                 "えらい",
2353         },
2354
2355         /* Beastmaster */
2356         {
2357                 "イモリ使い",
2358                 "ヘビ使い",
2359                 "クモ使い",
2360                 "狼使い",
2361                 "トラ使い",
2362                 "甲虫使い",
2363                 "ヒドラ使い",
2364                 "ハウンド使い",
2365                 "ムーマク使い",
2366                 "ドラゴン使い",
2367         },
2368
2369         /* Sorcerer; same as Mage */
2370         {
2371                                 /*"見習い",*/
2372                 "練習生",                 /*丁稚、練習生 */
2373                 "奇術師",               /*詐欺師、ペテン師 */
2374                 "幻術師",
2375                 "呪術師",
2376                 "召霊師",
2377                 "召魔師",
2378                 "魔術師",
2379                 "魔道師",
2380                 "イプシシマス",
2381                 "大魔道師",
2382         },
2383
2384         /* Archer */
2385         {
2386                 "新参兵",
2387                 "兵士",
2388                 "傭兵",
2389                 "古参兵",
2390                 "剣士",
2391                 "闘士",
2392                 "英雄",
2393                 "男爵",
2394                 "伯爵",
2395                 "領主",
2396         },
2397
2398         /* Magic eater */
2399         {
2400                 "無知なる者",
2401                 "入門者",
2402                 "奇術師",
2403                 "秘術師",
2404                 "秘術師",
2405                 "熟練者",
2406                 "達人",
2407                 "達人",
2408                 "魔道師",
2409                 "全てを知る者",
2410         },
2411
2412         /* Bard */
2413         {
2414                 "見習い",    /*"Apprentice"*/
2415                 "作曲家",    /*"Songsmith"*/
2416                 "吟遊詩人", /*"Bard"*/
2417                 "コンパニオン",   /*"Companion"*/
2418                 "心の癒し手",      /*"Minstrel"*/
2419                 "竪琴師",    /*"Harper"*/
2420                 "伝承の紡ぎ手",   /*"Loreweaver"*/
2421                 "詩神の申し子",   /*"Muse"*/
2422                 "夢紡ぎ",    /*"Dreamweaver"*/
2423                 "マスター", /*"Master Harper"*/
2424         },
2425
2426         /* Red Mage; same as Warrior-Mage */
2427         {
2428                 "見習い",
2429                 "徒弟",                       /*丁稚、練習生 */
2430                 "一人前",
2431                 "古参兵",
2432                 "魔術兵士",
2433                 "魔術闘士",
2434                 "魔術の英雄", /* Mage-Hero */
2435                 "魔男爵",
2436                 /* "魔公爵", */
2437                 "戦闘魔術士",
2438                 "知識の守護者", /* "ウィザードロード", */
2439         },
2440
2441         /* Samurai */
2442         {
2443                 "入門者",
2444                 "弟子",
2445                 "直弟子",
2446                 "師範代",
2447                 "師範",
2448                 "道場主",
2449                 "名人",
2450                 "大名人",
2451                 "剣聖",
2452                 "剣神",
2453         },
2454
2455         /* ForceTrainer; same as Monk(?) */
2456         {
2457                 "入門者",
2458                 "弟子",
2459                 "直弟子",
2460                 "師範代",
2461                 "師範",
2462                 "道場主",
2463                 "名人",
2464                 "大名人",
2465                 "拳聖",
2466                 "拳神",
2467         },
2468
2469         /* Blue Mage; same as Mage */
2470         {
2471                                 /*"見習い",*/
2472                 "練習生",                 /*丁稚、練習生 */
2473                 "奇術師",               /*詐欺師、ペテン師 */
2474                 "幻術師",
2475                 "呪術師",
2476                 "召霊師",
2477                 "召魔師",
2478                 "魔術師",
2479                 "魔道師",
2480                 "イプシシマス",
2481                 "大魔道師",
2482         },
2483
2484         /* Cavalry */
2485         {
2486                 "新参兵",
2487                 "兵士",
2488                 "傭兵",
2489                 "古参兵",
2490                 "剣士",
2491                 "闘士",
2492                 "英雄",
2493                 "男爵",
2494                 "伯爵",
2495                 "領主",
2496         },
2497
2498         /* Berserker */
2499         {
2500                 "バーサーカー",
2501                 "バーサーカー",
2502                 "バーサーカー",
2503                 "怒りの公爵",
2504                 "怒りの公爵",
2505                 "怒りの公爵",
2506                 "怒りの王",
2507                 "怒りの王",
2508                 "怒りの王",
2509                 "怒りの化身",
2510         },
2511
2512         /* Weaponsmith */
2513         {
2514                 "銅を鍛えし者",
2515                 "鉄を鍛えし者",
2516                 "鋼を鍛えし者",
2517                 "銀を鍛えし者",
2518                 "竜を鍛えし者",
2519                 "霊を鍛えし者",
2520                 "魔を鍛えし者",
2521                 "魂を鍛えし者",
2522                 "神を鍛えし者",
2523                 "全を鍛えし者",
2524         },
2525
2526         /* Mirror Master */
2527         {
2528                 "鏡を見る人",
2529                 "鏡磨き",
2530                 "鏡職人",
2531                 "鏡術師",
2532                 "鏡導師",
2533                 "鏡の賢者",
2534                 "鏡の王",
2535                 "鏡の皇帝",
2536                 "鏡の化身",
2537                 "ラフノール王",
2538         },
2539         /* Ninja */
2540         {
2541                 "訓練生",
2542                 "仕手",
2543                 "熟達者",
2544                 "短刀使い",
2545                 "切り裂き",
2546                 "凄腕",
2547                 "漆黒の刃",
2548                 "闇の一撃",
2549                 "暗殺者",
2550                 "死の長き腕",
2551         },
2552
2553         /* Sniper */
2554         {
2555                 "新参兵",
2556                 "兵士",
2557                 "傭兵",
2558                 "古参兵",
2559                 "剣士",
2560                 "闘士",
2561                 "英雄",
2562                 "男爵",
2563                 "伯爵",
2564                 "領主",
2565         },
2566 };
2567
2568 #else
2569 const concptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
2570 {
2571         /* Warrior */
2572         {
2573                 "Rookie",
2574                 "Soldier",
2575                 "Mercenary",
2576                 "Veteran",
2577                 "Swordsman",
2578                 "Champion",
2579                 "Hero",
2580                 "Baron",
2581                 "Duke",
2582                 "Lord",
2583         },
2584
2585         /* Mage */
2586         {
2587                 "Apprentice",
2588                 "Trickster",
2589                 "Illusionist",
2590                 "Spellbinder",
2591                 "Evoker",
2592                 "Conjurer",
2593                 "Warlock",
2594                 "Sorcerer",
2595                 "Ipsissimus",
2596                 "Archimage",
2597         },
2598
2599         /* Priest */
2600         {
2601                 "Believer",
2602                 "Acolyte",
2603                 "Adept",
2604                 "Curate",
2605                 "Canon",
2606                 "Priest",
2607                 "High Priest",
2608                 "Cardinal",
2609                 "Inquisitor",
2610                 "Pope",
2611         },
2612
2613         /* Rogues */
2614         {
2615                 "Cutpurse",
2616                 "Robber",
2617                 "Burglar",
2618                 "Filcher",
2619                 "Sharper",
2620                 "Low Thief",
2621                 "High Thief",
2622                 "Master Thief",
2623                 "Assassin",
2624                 "Guildmaster",
2625         },
2626
2627         /* Rangers */
2628         {
2629                 "Runner",
2630                 "Strider",
2631                 "Scout",
2632                 "Courser",
2633                 "Tracker",
2634                 "Guide",
2635                 "Pathfinder",
2636                 "Low Ranger",
2637                 "High Ranger",
2638                 "Ranger Lord",
2639         },
2640
2641         /* Paladins */
2642         {
2643                 "Gallant",
2644                 "Keeper",
2645                 "Protector",
2646                 "Defender",
2647                 "Warder",
2648                 "Knight",
2649                 "Guardian",
2650                 "Low Paladin",
2651                 "High Paladin",
2652                 "Paladin Lord",
2653         },
2654
2655         /* Warrior-Mage */
2656         {
2657                 "Novice",
2658                 "Apprentice",
2659                 "Journeyman",
2660                 "Veteran",
2661                 "Enchanter",
2662                 "Champion",
2663                 "Mage-Hero",
2664                 "Baron Mage",
2665                 "Battlemage",
2666                 "Wizard Lord",
2667         },
2668
2669         /* Chaos Warrior */
2670         {
2671                 "Rookie",
2672                 "Soldier",
2673                 "Mercenary",
2674                 "Veteran",
2675                 "Swordsman",
2676                 "Champion",
2677                 "Chaos Hero",
2678                 "Chaos Baron",
2679                 "Chaos Duke",
2680                 "Chaos Lord",
2681         },
2682
2683         /* Monk */
2684         {
2685                 "Initiate",
2686                 "Brother",
2687                 "Disciple",
2688                 "Immaculate",
2689                 "Master",
2690                 "Soft Master",
2691                 "Hard Master",
2692                 "Flower Master",
2693                 "Dragon Master",
2694                 "Grand Master",
2695         },
2696
2697         /* Mindcrafter */
2698         {
2699                 "Trainee",
2700                 "Acolyte",
2701                 "Adept",
2702                 "Immaculate",
2703                 "Contemplator",
2704                 "Mentalist",
2705                 "Psychic",
2706                 "Psionicist",
2707                 "Esper",
2708                 "Mindmaster",
2709         },
2710
2711         /* High Mage; same as Mage */
2712         {
2713                 "Apprentice",
2714                 "Trickster",
2715                 "Illusionist",
2716                 "Spellbinder",
2717                 "Evoker",
2718                 "Conjurer",
2719                 "Warlock",
2720                 "Sorcerer",
2721                 "Ipsissimus",
2722                 "Archimage",
2723         },
2724
2725         /* Tourist */
2726         {
2727                 "Rambler",
2728                 "Sightseer",
2729                 "Excursionist",
2730                 "Peregrinator",
2731                 "Traveler",
2732                 "Journeyer",
2733                 "Voyager",
2734                 "Explorer",
2735                 "Adventurer",
2736                 "Spelunker",
2737         },
2738
2739         /* Imitator */
2740         {
2741                 "Yet",
2742                 "Lacks",
2743                 "Still more",
2744                 "So so",
2745                 "All right",
2746                 "Not bad",
2747                 "Considerable",
2748                 "Go go",
2749                 "Sizable",
2750                 "Great man",
2751         },
2752
2753         /* BeastMaster */
2754         {
2755                 "Newt Master",
2756                 "Snake Master",
2757                 "Spider Master",
2758                 "Wolf Master",
2759                 "Tiger Master",
2760                 "Beetle Master",
2761                 "Hydra Master",
2762                 "Hound Master",
2763                 "Mumak Master",
2764                 "Dragon Master",
2765         },
2766
2767         /* Sorcerer */
2768         {
2769                 "Apprentice",
2770                 "Trickster",
2771                 "Illusionist",
2772                 "Spellbinder",
2773                 "Evoker",
2774                 "Conjurer",
2775                 "Warlock",
2776                 "Sorcerer",
2777                 "Ipsissimus",
2778                 "Archimage",
2779         },
2780
2781         /* Archer */
2782         {
2783                 "Rookie",
2784                 "Soldier",
2785                 "Mercenary",
2786                 "Veteran",
2787                 "Bowman",
2788                 "Champion",
2789                 "Hero",
2790                 "Baron",
2791                 "Duke",
2792                 "Lord",
2793         },
2794
2795         /* Magic eater */
2796         {
2797                 "Apprentice",
2798                 "Beginner",
2799                 "Jagguler",
2800                 "Skilled",
2801                 "Conjurer",
2802                 "Magician",
2803                 "Master",
2804                 "Master",
2805                 "Wizard",
2806                 "Almighty",
2807         },
2808
2809         /* Bard */
2810         {
2811                 "Apprentice",   /*"Apprentice"*/
2812                 "Songsmith",    /*"Songsmith"*/
2813                 "Bard", /*"Bard"*/
2814                 "Companion",    /*"Companion"*/
2815                 "Minstrel",     /*"Minstrel"*/
2816                 "Harper",       /*"Harper"*/
2817                 "Loreweaver",   /*"Loreweaver"*/
2818                 "Muse", /*"Muse"*/
2819                 "Dreamweaver",  /*"Dreamweaver"*/
2820                 "Master Harper",        /*"Master Harper"*/
2821         },
2822
2823         /* Red Mage */
2824         {
2825                 "Novice",
2826                 "Apprentice",
2827                 "Journeyman",
2828                 "Veteran",
2829                 "Enchanter",
2830                 "Champion",
2831                 "Mage-Hero",
2832                 "Baron Mage",
2833                 "Battlemage",
2834                 "Wizard Lord",
2835         },
2836
2837         /* Samurai */
2838         {
2839                 "Initiate",
2840                 "Brother",
2841                 "Disciple",
2842                 "Immaculate",
2843                 "Master",
2844                 "Soft Master",
2845                 "Hard Master",
2846                 "Flower Master",
2847                 "Dragon Master",
2848                 "Grand Master",
2849         },
2850
2851         /* ForceTrainer */
2852         {
2853                 "Initiate",
2854                 "Brother",
2855                 "Disciple",
2856                 "Immaculate",
2857                 "Master",
2858                 "Soft Master",
2859                 "Hard Master",
2860                 "Flower Master",
2861                 "Dragon Master",
2862                 "Grand Master",
2863         },
2864
2865         /* Blue Mage */
2866         {
2867                 "Apprentice",
2868                 "Trickster",
2869                 "Illusionist",
2870                 "Spellbinder",
2871                 "Evoker",
2872                 "Conjurer",
2873                 "Warlock",
2874                 "Sorcerer",
2875                 "Ipsissimus",
2876                 "Archimage",
2877         },
2878
2879         /* Warrior */
2880         {
2881                 "Rookie",
2882                 "Soldier",
2883                 "Mercenary",
2884                 "Veteran",
2885                 "Swordsman",
2886                 "Champion",
2887                 "Hero",
2888                 "Baron",
2889                 "Duke",
2890                 "Lord",
2891         },
2892
2893         /* Berserker */
2894         {
2895                     "Berserker",
2896                     "Berserker",
2897                     "Berserker",
2898                     "Rage Prince",
2899                     "Rage Prince",
2900                     "Rage Prince",
2901                     "Rage King",
2902                     "Rage King",
2903                     "Rage King",
2904                     "God of Rage",
2905         },
2906
2907         /* Weaponsmith */
2908         {
2909                 "Copper smith",
2910                 "Iron smith",
2911                 "Steel smith",
2912                 "Silver smith",
2913                 "Dragon smith",
2914                 "Spirit smith",
2915                 "Magic smith",
2916                 "Soul smith",
2917                 "God smith",
2918                 "AlmightySmith",
2919         },
2920
2921         /* Mirror Master */
2922         {
2923                 "Mirrorstarer",
2924                 "Mirrorcleaner",
2925                 "Mirrormaker",
2926                 "Mirrormagician",
2927                 "Mirror Guru",
2928                 "Mirror Mage",
2929                 "Mirror King",
2930                 "Mirror Emperor",
2931                 "Mirror Avatar",
2932                 "Ruffnor King",
2933         },
2934
2935         /* Ninja */
2936         {
2937                 "Trainee",
2938                 "Myrmidon",
2939                 "Initiate",
2940                 "Knifer",
2941                 "Bladesman",
2942                 "Hashishin",
2943                 "Black Dagger",
2944                 "Shadowstrike",
2945                 "Assassinator",
2946                 "Death Lord",
2947         },
2948
2949         /* Sniper */
2950         {
2951                 "Rookie",
2952                 "Soldier",
2953                 "Mercenary",
2954                 "Veteran",
2955                 "Swordsman",
2956                 "Champion",
2957                 "Hero",
2958                 "Baron",
2959                 "Duke",
2960                 "Lord",
2961         },
2962 };
2963 #endif
2964
2965 /*!
2966  * @brief 色名称テーブル / Hack -- the "basic" color names (see "TERM_xxx")
2967  */
2968 const concptr color_names[16] =
2969 {
2970 #ifdef JP
2971         "黒",
2972         "白",
2973         "青灰色",
2974         "オレンジ",
2975         "赤",
2976         "緑",
2977         "青",
2978         "琥珀色",
2979         "灰色",
2980         "明青灰色",
2981         "紫",
2982         "黄",
2983         "明るい赤",
2984         "明るい緑",
2985         "明るい青",
2986         "明琥珀色",
2987 #else
2988         "Dark",
2989         "White",
2990         "Slate",
2991         "Orange",
2992         "Red",
2993         "Green",
2994         "Blue",
2995         "Umber",
2996         "Light Dark",
2997         "Light Slate",
2998         "Violet",
2999         "Yellow",
3000         "Light Red",
3001         "Light Green",
3002         "Light Blue",
3003         "Light Umber",
3004 #endif
3005
3006 };
3007
3008
3009 /*!
3010  * @brief 能力値テーブル / Abbreviations of healthy stats
3011  */
3012 const concptr stat_names[6] =
3013 {
3014 #ifdef JP
3015         "腕力 :", "知能 :", "賢さ :", "器用 :", "耐久 :", "魅力 :"
3016 #else
3017         "STR : ", "INT : ", "WIS : ", "DEX : ", "CON : ", "CHR : "
3018 #endif
3019
3020 };
3021
3022 /*!
3023  * @brief 能力値テーブル(能力低下時) / Abbreviations of damaged stats
3024  */
3025 const concptr stat_names_reduced[6] =
3026 {
3027 #ifdef JP
3028         "腕力x:", "知能x:", "賢さx:", "器用x:", "耐久x:", "魅力x:"
3029 #else
3030         "Str : ", "Int : ", "Wis : ", "Dex : ", "Con : ", "Chr : "
3031 #endif
3032
3033 };
3034
3035
3036 /*!
3037  * @brief サブウィンドウ名称テーブル
3038  * @details
3039  * <pre>
3040  * Certain "screens" always use the main screen, including News, Birth,
3041  * Dungeon, Tomb-stone, High-scores, Macros, Colors, Visuals, Options.
3042  *
3043  * Later, special flags may allow sub-windows to "steal" stuff from the
3044  * main window, including File dump (help), File dump (artifacts, uniques),
3045  * Character screen, Small scale map, Previous Messages, Store screen, etc.
3046  *
3047  * The "ctrl-i" (tab) command flips the "Display inven/equip" and "Display
3048  * equip/inven" flags for all windows.
3049  *
3050  * The "ctrl-g" command (or pseudo-command) should perhaps grab a snapshot
3051  * of the main screen into any interested windows.
3052  * </pre>
3053  */
3054 const concptr window_flag_desc[32] =
3055 {
3056         _("持ち物/装備一覧", "Display inven/equip"),
3057         _("装備/持ち物一覧", "Display equip/inven"),
3058         _("呪文一覧", "Display spell list"),
3059         _("キャラクタ情報", "Display character"),
3060         _("視界内のモンスター表示", "Display monsters in sight"),
3061         NULL,
3062         _("メッセージ", "Display messages"),
3063         _("ダンジョン全体図", "Display overhead view"),
3064         _("モンスターの思い出", "Display monster recall"),
3065         _("アイテムの詳細", "Display object recall"),
3066         _("自分の周囲を表示", "Display dungeon view"),
3067         _("記念撮影", "Display snap-shot"),
3068         NULL,
3069         NULL,
3070         _("ボーグ・メッセージ", "Display borg messages"),
3071         _("ボーグ・ステータス", "Display borg status"),
3072         NULL,
3073         NULL,
3074         NULL,
3075         NULL,
3076         NULL,
3077         NULL,
3078         NULL,
3079         NULL,
3080         NULL,
3081         NULL,
3082         NULL,
3083         NULL,
3084         NULL,
3085         NULL,
3086         NULL,
3087         NULL
3088 };
3089
3090
3091 /*!
3092  * @brief アイテムの価値記述テーブル /
3093  * Table of game-generated inscriptions (indexed by the defines in defines.h). -- RG
3094  */
3095 const concptr game_inscriptions[] =
3096 {
3097         NULL,            /* FEEL_NONE */
3098 #ifdef JP
3099         "壊れている",    /* FEEL_BROKEN */
3100         "恐ろしい",      /* FEEL_TERRIBLE */
3101         "無価値",        /* FEEL_WORTHLESS */
3102         "呪われている",  /* FEEL_CURSED */
3103         "上質以上",      /* FEEL_UNCURSED */
3104         "並",            /* FEEL_AVERAGE */
3105         "上質",          /* FEEL_GOOD */
3106         "高級品",        /* FEEL_EXCELLENT */
3107         "特別製",        /* FEEL_SPECIAL */
3108 #else
3109         "broken",        /* FEEL_BROKEN */
3110         "terrible",      /* FEEL_TERRIBLE */
3111         "worthless",     /* FEEL_WORTHLESS */
3112         "cursed",        /* FEEL_CURSED */
3113         "uncursed",      /* FEEL_UNCURSED */
3114         "average",       /* FEEL_AVERAGE */
3115         "good",          /* FEEL_GOOD */
3116         "excellent",     /* FEEL_EXCELLENT */
3117         "special",       /* FEEL_SPECIAL */
3118 #endif
3119
3120 };
3121
3122 /*!
3123  * @brief 修行僧の構え能力テーブル
3124  */
3125 const kamae kamae_shurui[MAX_KAMAE] =
3126 {
3127 #ifdef JP
3128         {"玄武", 25, ""},
3129         {"白虎", 30, ""},
3130         {"青竜", 35, ""},
3131         {"朱雀", 40, ""},
3132 #else
3133         {"Genbu", 25, "(Black Tortoise) "},
3134         {"Byakko", 30, "(White Tiger) "},
3135         {"Seiryuu", 35, "(Blue Dragon) "},
3136         {"Suzaku", 40, "(Red Phoenix) "},
3137 #endif
3138 };
3139
3140 /*!
3141  * @brief 剣術家の構え能力テーブル
3142  */
3143 const kamae kata_shurui[MAX_KATA] =
3144 {
3145 #ifdef JP
3146         {"居合", 25, ""},
3147         {"風塵", 30, ""},
3148         {"降鬼", 35, ""},
3149         {"無想", 40, ""},
3150 #else
3151         {"Iai", 25, ""},
3152         {"Huujin", 30, ""},
3153         {"Kouki", 35, ""},
3154         {"Musou", 40, ""},
3155 #endif
3156 };
3157
3158
3159 /*!
3160  * @brief シンボル解説テーブル /
3161  * The table of "symbol info" -- each entry is a string of the form "X:desc" where "X" is the trigger, and "desc" is the "info".
3162  */
3163 const concptr ident_info[] =
3164 {
3165 #ifdef JP
3166         " :暗闇",
3167         "!:薬, オイル",
3168         "\":アミュレット, 頸飾り",
3169         "#:壁(隠しドア)/植物/気体",
3170         "$:財宝(金か宝石)",
3171         "%:鉱脈(溶岩か石英)",
3172         "&:箱",
3173         "':開いたドア",
3174         "(:軟らかい防具",
3175         "):盾",
3176         "*:財宝を含んだ鉱脈または球形の怪物",
3177         "+:閉じたドア",
3178         ",:食べ物, おばけキノコ",
3179         "-:魔法棒, ロッド",
3180         ".:床",
3181         "/:竿状武器(アックス/パイク/等)",
3182         "0:博物館の入口",
3183         "1:雑貨屋の入口",
3184         "2:防具屋の入口",
3185         "3:武器専門店の入口",
3186         "4:寺院の入口",
3187         "5:錬金術の店の入口",
3188         "6:魔法の店の入口",
3189         "7:ブラックマーケットの入口",
3190         "8:我が家の入口",
3191         "9:書店の入口",
3192         "::岩石",
3193         ";:回避の彫像/爆発のルーン",
3194         "<:上り階段",
3195         "=:指輪",
3196         ">:下り階段",
3197         "?:巻物",
3198         "@:プレイヤー",
3199         "A:天使",
3200         "B:鳥",
3201         "C:犬",
3202         "D:古代ドラゴン/ワイアーム",
3203         "E:エレメンタル",
3204         "F:トンボ",
3205         "G:ゴースト",
3206         "H:雑種",
3207         "I:昆虫",
3208         "J:ヘビ",
3209         "K:キラー・ビートル",
3210         "L:リッチ",
3211         "M:多首の爬虫類",
3212         "N:謎の生物",
3213         "O:オーガ",
3214         "P:巨大人間型生物",
3215         "Q:クイルスルグ(脈打つ肉塊)",
3216         "R:爬虫類/両生類",
3217         "S:蜘蛛/サソリ/ダニ",
3218         "T:トロル",
3219         "U:上級デーモン",
3220         "V:バンパイア",
3221         "W:ワイト/レイス/等",
3222         "X:ゾーン/ザレン/等",
3223         "Y:イエティ",
3224         "Z:ハウンド",
3225         "[:堅いアーマー",
3226         "\\:鈍器(メイス/ムチ/等)",
3227         "]:種々の防具",
3228         "^:トラップ",
3229         "_:杖",
3230         "`:人形,彫像",
3231         "a:アリ",
3232         "b:コウモリ",
3233         "c:ムカデ",
3234         "d:ドラゴン",
3235         "e:目玉",
3236         "f:ネコ",
3237         "g:ゴーレム",
3238         "h:ホビット/エルフ/ドワーフ",
3239         "i:ベトベト",
3240         "j:ゼリー",
3241         "k:コボルド",
3242         "l:水棲生物",
3243         "m:モルド",
3244         "n:ナーガ",
3245         "o:オーク",
3246         "p:人間",
3247         "q:四足獣",
3248         "r:ネズミ",
3249         "s:スケルトン",
3250         "t:町の人",
3251         "u:下級デーモン",
3252         "v:ボルテックス",
3253         "w:イモムシ/大群",
3254         /* "x:unused", */
3255         "y:イーク",
3256         "z:ゾンビ/ミイラ",
3257         "{:飛び道具の弾(矢/弾)",
3258         "|:刀剣類(ソード/ダガー/等)",
3259         "}:飛び道具(弓/クロスボウ/スリング)",
3260         "~:水/溶岩流(種々のアイテム)",
3261 #else
3262         " :A dark grid",
3263         "!:A potion (or oil)",
3264         "\":An amulet (or necklace)",
3265         "#:A wall (or secret door) / a plant / a gas",
3266         "$:Treasure (gold or gems)",
3267         "%:A vein (magma or quartz)",
3268         "&:A chest",
3269         "':An open door",
3270         "(:Soft armor",
3271         "):A shield",
3272         "*:A vein with treasure or a ball monster",
3273         "+:A closed door",
3274         ",:Food (or mushroom patch)",
3275         "-:A wand (or rod)",
3276         ".:Floor",
3277         "/:A polearm (Axe/Pike/etc)",
3278         "0:Entrance to Museum",
3279         "1:Entrance to General Store",
3280         "2:Entrance to Armory",
3281         "3:Entrance to Weaponsmith",
3282         "4:Entrance to Temple",
3283         "5:Entrance to Alchemy shop",
3284         "6:Entrance to Magic store",
3285         "7:Entrance to Black Market",
3286         "8:Entrance to your home",
3287         "9:Entrance to the bookstore",
3288         "::Rubble",
3289         ";:A glyph of warding / an explosive rune",
3290         "<:An up staircase",
3291         "=:A ring",
3292         ">:A down staircase",
3293         "?:A scroll",
3294         "@:You",
3295         "A:Angel",
3296         "B:Bird",
3297         "C:Canine",
3298         "D:Ancient Dragon/Wyrm",
3299         "E:Elemental",
3300         "F:Dragon Fly",
3301         "G:Ghost",
3302         "H:Hybrid",
3303         "I:Insect",
3304         "J:Snake",
3305         "K:Killer Beetle",
3306         "L:Lich",
3307         "M:Multi-Headed Reptile",
3308         "N:Mystery Living",
3309         "O:Ogre",
3310         "P:Giant Humanoid",
3311         "Q:Quylthulg (Pulsing Flesh Mound)",
3312         "R:Reptile/Amphibian",
3313         "S:Spider/Scorpion/Tick",
3314         "T:Troll",
3315         "U:Major Demon",
3316         "V:Vampire",
3317         "W:Wight/Wraith/etc",
3318         "X:Xorn/Xaren/etc",
3319         "Y:Yeti",
3320         "Z:Zephyr Hound",
3321         "[:Hard armor",
3322         "\\:A hafted weapon (mace/whip/etc)",
3323         "]:Misc. armor",
3324         "^:A trap",
3325         "_:A staff",
3326         "`:A figurine or statue",
3327         "a:Ant",
3328         "b:Bat",
3329         "c:Centipede",
3330         "d:Dragon",
3331         "e:Floating Eye",
3332         "f:Feline",
3333         "g:Golem",
3334         "h:Hobbit/Elf/Dwarf",
3335         "i:Icky Thing",
3336         "j:Jelly",
3337         "k:Kobold",
3338         "l:Aquatic monster",
3339         "m:Mold",
3340         "n:Naga",
3341         "o:Orc",
3342         "p:Person/Human",
3343         "q:Quadruped",
3344         "r:Rodent",
3345         "s:Skeleton",
3346         "t:Townsperson",
3347         "u:Minor Demon",
3348         "v:Vortex",
3349         "w:Worm/Worm-Mass",
3350         /* "x:unused", */
3351         "y:Yeek",
3352         "z:Zombie/Mummy",
3353         "{:A missile (arrow/bolt/shot)",
3354         "|:An edged weapon (sword/dagger/etc)",
3355         "}:A launcher (bow/crossbow/sling)",
3356         "~:Fluid terrain (or miscellaneous item)",
3357 #endif
3358
3359         NULL
3360 };
3361
3362 /*!
3363  * @brief モンスターの打撃効力テーブル /
3364  * The table of monsters' blow effects
3365  */
3366 const mbe_info_type mbe_info[] =
3367 {
3368         {  0, 0,             }, /* None      */
3369         { 60, GF_MISSILE,    }, /* HURT      */
3370         {  5, GF_POIS,       }, /* POISON    */
3371         { 20, GF_DISENCHANT, }, /* UN_BONUS  */
3372         { 15, GF_MISSILE,    }, /* UN_POWER  */ /* ToDo: Apply the correct effects */
3373         {  5, GF_MISSILE,    }, /* EAT_GOLD  */
3374         {  5, GF_MISSILE,    }, /* EAT_ITEM  */
3375         {  5, GF_MISSILE,    }, /* EAT_FOOD  */
3376         {  5, GF_MISSILE,    }, /* EAT_LITE  */
3377         {  0, GF_ACID,       }, /* ACID      */
3378         { 10, GF_ELEC,       }, /* ELEC      */
3379         { 10, GF_FIRE,       }, /* FIRE      */
3380         { 10, GF_COLD,       }, /* COLD      */
3381         {  2, GF_MISSILE,    }, /* BLIND     */
3382         { 10, GF_CONFUSION,  }, /* CONFUSE   */
3383         { 10, GF_MISSILE,    }, /* TERRIFY   */
3384         {  2, GF_MISSILE,    }, /* PARALYZE  */
3385         {  0, GF_MISSILE,    }, /* LOSE_STR  */
3386         {  0, GF_MISSILE,    }, /* LOSE_INT  */
3387         {  0, GF_MISSILE,    }, /* LOSE_WIS  */
3388         {  0, GF_MISSILE,    }, /* LOSE_DEX  */
3389         {  0, GF_MISSILE,    }, /* LOSE_CON  */
3390         {  0, GF_MISSILE,    }, /* LOSE_CHR  */
3391         {  2, GF_MISSILE,    }, /* LOSE_ALL  */
3392         { 60, GF_ROCKET,     }, /* SHATTER   */
3393         {  5, GF_MISSILE,    }, /* EXP_10    */
3394         {  5, GF_MISSILE,    }, /* EXP_20    */
3395         {  5, GF_MISSILE,    }, /* EXP_40    */
3396         {  5, GF_MISSILE,    }, /* EXP_80    */
3397         {  5, GF_POIS,       }, /* DISEASE   */
3398         {  5, GF_TIME,       }, /* TIME      */
3399         {  5, GF_MISSILE,    }, /* EXP_VAMP  */
3400         {  5, GF_MANA,       }, /* DR_MANA   */
3401         { 60, GF_MISSILE,    }, /* SUPERHURT */
3402 };
3403
3404
3405 /*!
3406  * @brief 地形状態フラグテーブル /
3407  * The table of features' actions
3408  */
3409 const byte feature_action_flags[FF_FLAG_MAX] =
3410 {
3411         0, /* LOS */
3412         0, /* PROJECT */
3413         0, /* MOVE */
3414         0, /* PLACE */
3415         0, /* DROP */
3416         0, /* SECRET */
3417         0, /* NOTICE */
3418         0, /* REMEMBER */
3419         0, /* OPEN */
3420         0, /* CLOSE */
3421         FAF_CRASH_GLASS, /* BASH */
3422         0, /* SPIKE */
3423         FAF_DESTROY, /* DISARM */
3424         0, /* STORE */
3425         FAF_DESTROY | FAF_CRASH_GLASS, /* TUNNEL */
3426         0, /* MAY_HAVE_GOLD */
3427         0, /* HAS_GOLD */
3428         0, /* HAS_ITEM */
3429         0, /* DOOR */
3430         0, /* TRAP */
3431         0, /* STAIRS */
3432         0, /* GLYPH */
3433         0, /* LESS */
3434         0, /* MORE */
3435         0, /* RUN */
3436         0, /* FLOOR */
3437         0, /* WALL */
3438         0, /* PERMANENT */
3439         0, /* INNER */
3440         0, /* OUTER */
3441         0, /* SOLID */
3442         0, /* HIT_TRAP */
3443
3444         0, /* BRIDGE */
3445         0, /* RIVER */
3446         0, /* LAKE */
3447         0, /* BRIDGED */
3448         0, /* COVERED */
3449         0, /* GLOW */
3450         0, /* ENSECRET */
3451         0, /* WATER */
3452         0, /* LAVA */
3453         0, /* SHALLOW */
3454         0, /* DEEP */
3455         0, /* FILLED */
3456         FAF_DESTROY | FAF_CRASH_GLASS, /* HURT_ROCK */
3457         0, /* HURT_FIRE */
3458         0, /* HURT_COLD */
3459         0, /* HURT_ACID */
3460         0, /* ICE */
3461         0, /* ACID */
3462         0, /* OIL */
3463         0, /* XXX04 */
3464         0, /* CAN_CLIMB */
3465         0, /* CAN_FLY */
3466         0, /* CAN_SWIM */
3467         0, /* CAN_PASS */
3468         0, /* CAN_OOZE */
3469         0, /* CAN_DIG */
3470         0, /* HIDE_ITEM */
3471         0, /* HIDE_SNEAK */
3472         0, /* HIDE_SWIM */
3473         0, /* HIDE_DIG */
3474         0, /* KILL_HUGE */
3475         0, /* KILL_MOVE */
3476
3477         0, /* PICK_TRAP */
3478         0, /* PICK_DOOR */
3479         0, /* ALLOC */
3480         0, /* CHEST */
3481         0, /* DROP_1D2 */
3482         0, /* DROP_2D2 */
3483         0, /* DROP_GOOD */
3484         0, /* DROP_GREAT */
3485         0, /* HURT_POIS */
3486         0, /* HURT_ELEC */
3487         0, /* HURT_WATER */
3488         0, /* HURT_BWATER */
3489         0, /* USE_FEAT */
3490         0, /* GET_FEAT */
3491         0, /* GROUND */
3492         0, /* OUTSIDE */
3493         0, /* EASY_HIDE */
3494         0, /* EASY_CLIMB */
3495         0, /* MUST_CLIMB */
3496         0, /* TREE */
3497         0, /* NEED_TREE */
3498         0, /* BLOOD */
3499         0, /* DUST */
3500         0, /* SLIME */
3501         0, /* PLANT */
3502         0, /* XXX2 */
3503         0, /* INSTANT */
3504         0, /* EXPLODE */
3505         0, /* TIMED */
3506         0, /* ERUPT */
3507         0, /* STRIKE */
3508         0, /* SPREAD */
3509
3510         0, /* SPECIAL */
3511         FAF_DESTROY | FAF_NO_DROP | FAF_CRASH_GLASS, /* HURT_DISI */
3512         0, /* QUEST_ENTER */
3513         0, /* QUEST_EXIT */
3514         0, /* QUEST */
3515         0, /* SHAFT */
3516         0, /* MOUNTAIN */
3517         0, /* BLDG */
3518         0, /* MINOR_GLYPH */
3519         0, /* PATTERN */
3520         0, /* TOWN */
3521         0, /* ENTRANCE */
3522         0, /* MIRROR */
3523         0, /* UNPERM */
3524         0, /* TELEPORTABLE */
3525         0, /* CONVERT */
3526         0, /* GLASS */
3527 };
3528
3529
3530 /*!
3531  * @brief 装備耐性に準じたブレス効果の選択テーブル /
3532  * Define flags, effect type, name for dragon breath activation
3533  */
3534 const dragonbreath_type dragonbreath_info[] = {
3535         { TR_RES_ACID, GF_ACID, _("酸", "acid") },
3536         { TR_RES_ELEC, GF_ELEC, _("電撃", "lightning") },
3537         { TR_RES_FIRE, GF_FIRE, _("火炎", "fire") },
3538         { TR_RES_COLD, GF_COLD, _("冷気", "cold") },
3539         { TR_RES_POIS, GF_POIS, _("毒", "poison") },
3540         { TR_RES_LITE, GF_LITE, _("閃光", "light") },
3541         { TR_RES_DARK, GF_DARK, _("暗黒", "dark") },
3542         { TR_RES_SHARDS, GF_SHARDS, _("破片", "shard") },
3543         { TR_RES_CONF, GF_CONFUSION, _("混乱", "confusion") },
3544         { TR_RES_SOUND, GF_SOUND, _("轟音", "sound") },
3545         { TR_RES_NEXUS, GF_NEXUS, _("因果混乱", "nexus") },
3546         { TR_RES_NETHER, GF_NETHER, _("地獄", "nether") },
3547         { TR_RES_CHAOS, GF_CHAOS, _("カオス", "chaos") },
3548         { TR_RES_DISEN, GF_DISENCHANT, _("劣化", "disenchant") },
3549         { 0, 0, NULL }
3550 };
3551