OSDN Git Service

[Refactor] #37353 floor.c を作成して floor_type 型整理。
[hengband/hengband.git] / src / patron.c
1 
2 #include "angband.h"
3 #include "util.h"
4
5 #include "patron.h"
6 #include "cmd-pet.h"
7 #include "object-curse.h"
8 #include "object-flavor.h"
9 #include "monsterrace-hook.h"
10 #include "objectkind-hook.h"
11 #include "mutation.h"
12 #include "artifact.h"
13 #include "player-status.h"
14 #include "player-effects.h"
15
16 #include "spells.h"
17 #include "spells-summon.h"
18 #include "spells-object.h"
19 #include "spells-status.h"
20 #include "floor.h"
21
22 #ifdef JP
23 /*!
24  * @brief カオスパトロン名テーブル
25  */
26 const concptr chaos_patrons[MAX_PATRON] =
27 {
28         "スローター",
29         "マベロード",
30         "チャードロス",
31         "ハイオンハーン",
32         "キシオムバーグ",
33
34         "ピアレー",
35         "バラン",
36         "アリオッチ",
37         "イーカー",
38         "ナージャン",
39
40         "バロ",
41         "コーン",
42         "スラーネッシュ",
43         "ナーグル",
44         "ティーンチ",
45
46         "カイン"
47 };
48 #else
49 const concptr chaos_patrons[MAX_PATRON] =
50 {
51         "Slortar",
52         "Mabelode",
53         "Chardros",
54         "Hionhurn",
55         "Xiombarg",
56
57         "Pyaray",
58         "Balaan",
59         "Arioch",
60         "Eequor",
61         "Narjhan",
62
63         "Balo",
64         "Khorne",
65         "Slaanesh",
66         "Nurgle",
67         "Tzeentch",
68
69         "Khaine"
70 };
71 #endif
72
73
74 /*!
75  * @brief カオスパトロンの報酬能力値テーブル
76  */
77 const int chaos_stats[MAX_PATRON] =
78 {
79         A_CON,  /* Slortar */
80         A_CON,  /* Mabelode */
81         A_STR,  /* Chardros */
82         A_STR,  /* Hionhurn */
83         A_STR,  /* Xiombarg */
84
85         A_INT,  /* Pyaray */
86         A_STR,  /* Balaan */
87         A_INT,  /* Arioch */
88         A_CON,  /* Eequor */
89         A_CHR,  /* Narjhan */
90
91         -1,     /* Balo */
92         A_STR,  /* Khorne */
93         A_CHR,  /* Slaanesh */
94         A_CON,  /* Nurgle */
95         A_INT,  /* Tzeentch */
96
97         A_STR,  /* Khaine */
98 };
99
100 /*!
101  * @brief カオスパトロンの報酬テーブル
102  */
103 const int chaos_rewards[MAX_PATRON][20] =
104 {
105         /* Slortar the Old: */
106         {
107                 REW_WRATH, REW_CURSE_WP, REW_CURSE_AR, REW_RUIN_ABL, REW_LOSE_ABL,
108                 REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_WND, REW_POLY_SLF,
109                 REW_POLY_SLF, REW_POLY_SLF, REW_GAIN_ABL, REW_GAIN_ABL, REW_GAIN_EXP,
110                 REW_GOOD_OBJ, REW_CHAOS_WP, REW_GREA_OBJ, REW_AUGM_ABL, REW_AUGM_ABL
111         },
112
113         /* Mabelode the Faceless: */
114         {
115                 REW_WRATH, REW_CURSE_WP, REW_CURSE_AR, REW_H_SUMMON, REW_SUMMON_M,
116                 REW_SUMMON_M, REW_IGNORE, REW_IGNORE, REW_POLY_WND, REW_POLY_WND,
117                 REW_POLY_SLF, REW_HEAL_FUL, REW_HEAL_FUL, REW_GAIN_ABL, REW_SER_UNDE,
118                 REW_CHAOS_WP, REW_GOOD_OBJ, REW_GOOD_OBJ, REW_GOOD_OBS, REW_GOOD_OBS
119         },
120
121         /* Chardros the Reaper: */
122         {
123                 REW_WRATH, REW_WRATH, REW_HURT_LOT, REW_PISS_OFF, REW_H_SUMMON,
124                 REW_SUMMON_M, REW_IGNORE, REW_IGNORE, REW_DESTRUCT, REW_SER_UNDE,
125                 REW_GENOCIDE, REW_MASS_GEN, REW_MASS_GEN, REW_DISPEL_C, REW_GOOD_OBJ,
126                 REW_CHAOS_WP, REW_GOOD_OBS, REW_GOOD_OBS, REW_AUGM_ABL, REW_AUGM_ABL
127         },
128
129         /* Hionhurn the Executioner: */
130         {
131                 REW_WRATH, REW_WRATH, REW_CURSE_WP, REW_CURSE_AR, REW_RUIN_ABL,
132                 REW_IGNORE, REW_IGNORE, REW_SER_UNDE, REW_DESTRUCT, REW_GENOCIDE,
133                 REW_MASS_GEN, REW_MASS_GEN, REW_HEAL_FUL, REW_GAIN_ABL, REW_GAIN_ABL,
134                 REW_CHAOS_WP, REW_GOOD_OBS, REW_GOOD_OBS, REW_AUGM_ABL, REW_AUGM_ABL
135         },
136
137         /* Xiombarg the Sword-Queen: */
138         {
139                 REW_TY_CURSE, REW_TY_CURSE, REW_PISS_OFF, REW_RUIN_ABL, REW_LOSE_ABL,
140                 REW_IGNORE, REW_POLY_SLF, REW_POLY_SLF, REW_POLY_WND, REW_POLY_WND,
141                 REW_GENOCIDE, REW_DISPEL_C, REW_GOOD_OBJ, REW_GOOD_OBJ, REW_SER_MONS,
142                 REW_GAIN_ABL, REW_CHAOS_WP, REW_GAIN_EXP, REW_AUGM_ABL, REW_GOOD_OBS
143         },
144
145
146         /* Pyaray the Tentacled Whisperer of Impossible Secretes: */
147         {
148                 REW_WRATH, REW_TY_CURSE, REW_PISS_OFF, REW_H_SUMMON, REW_H_SUMMON,
149                 REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_WND, REW_POLY_SLF,
150                 REW_POLY_SLF, REW_SER_DEMO, REW_HEAL_FUL, REW_GAIN_ABL, REW_GAIN_ABL,
151                 REW_CHAOS_WP, REW_DO_HAVOC, REW_GOOD_OBJ, REW_GREA_OBJ, REW_GREA_OBS
152         },
153
154         /* Balaan the Grim: */
155         {
156                 REW_TY_CURSE, REW_HURT_LOT, REW_CURSE_WP, REW_CURSE_AR, REW_RUIN_ABL,
157                 REW_SUMMON_M, REW_LOSE_EXP, REW_POLY_SLF, REW_POLY_SLF, REW_POLY_WND,
158                 REW_SER_UNDE, REW_HEAL_FUL, REW_HEAL_FUL, REW_GAIN_EXP, REW_GAIN_EXP,
159                 REW_CHAOS_WP, REW_GOOD_OBJ, REW_GOOD_OBS, REW_GREA_OBS, REW_AUGM_ABL
160         },
161
162         /* Arioch, Duke of Hell: */
163         {
164                 REW_WRATH, REW_PISS_OFF, REW_RUIN_ABL, REW_LOSE_EXP, REW_H_SUMMON,
165                 REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_SLF,
166                 REW_POLY_SLF, REW_MASS_GEN, REW_SER_DEMO, REW_HEAL_FUL, REW_CHAOS_WP,
167                 REW_CHAOS_WP, REW_GOOD_OBJ, REW_GAIN_EXP, REW_GREA_OBJ, REW_AUGM_ABL
168         },
169
170         /* Eequor, Blue Lady of Dismay: */
171         {
172                 REW_WRATH, REW_TY_CURSE, REW_PISS_OFF, REW_CURSE_WP, REW_RUIN_ABL,
173                 REW_IGNORE, REW_IGNORE, REW_POLY_SLF, REW_POLY_SLF, REW_POLY_WND,
174                 REW_GOOD_OBJ, REW_GOOD_OBJ, REW_SER_MONS, REW_HEAL_FUL, REW_GAIN_EXP,
175                 REW_GAIN_ABL, REW_CHAOS_WP, REW_GOOD_OBS, REW_GREA_OBJ, REW_AUGM_ABL
176         },
177
178         /* Narjhan, Lord of Beggars: */
179         {
180                 REW_WRATH, REW_CURSE_AR, REW_CURSE_WP, REW_CURSE_WP, REW_CURSE_AR,
181                 REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_SLF, REW_POLY_SLF,
182                 REW_POLY_WND, REW_HEAL_FUL, REW_HEAL_FUL, REW_GAIN_EXP, REW_AUGM_ABL,
183                 REW_GOOD_OBJ, REW_GOOD_OBJ, REW_CHAOS_WP, REW_GREA_OBJ, REW_GREA_OBS
184         },
185
186         /* Balo the Jester: */
187         {
188                 REW_WRATH, REW_SER_DEMO, REW_CURSE_WP, REW_CURSE_AR, REW_LOSE_EXP,
189                 REW_GAIN_ABL, REW_LOSE_ABL, REW_POLY_WND, REW_POLY_SLF, REW_IGNORE,
190                 REW_DESTRUCT, REW_MASS_GEN, REW_CHAOS_WP, REW_GREA_OBJ, REW_HURT_LOT,
191                 REW_AUGM_ABL, REW_RUIN_ABL, REW_H_SUMMON, REW_GREA_OBS, REW_AUGM_ABL
192         },
193
194         /* Khorne the Bloodgod: */
195         {
196                 REW_WRATH, REW_HURT_LOT, REW_HURT_LOT, REW_H_SUMMON, REW_H_SUMMON,
197                 REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_SER_MONS, REW_SER_DEMO,
198                 REW_POLY_SLF, REW_POLY_WND, REW_HEAL_FUL, REW_GOOD_OBJ, REW_GOOD_OBJ,
199                 REW_CHAOS_WP, REW_GOOD_OBS, REW_GOOD_OBS, REW_GREA_OBJ, REW_GREA_OBS
200         },
201
202         /* Slaanesh: */
203         {
204                 REW_WRATH, REW_PISS_OFF, REW_PISS_OFF, REW_RUIN_ABL, REW_LOSE_ABL,
205                 REW_LOSE_EXP, REW_IGNORE, REW_IGNORE, REW_POLY_WND, REW_SER_DEMO,
206                 REW_POLY_SLF, REW_HEAL_FUL, REW_HEAL_FUL, REW_GOOD_OBJ, REW_GAIN_EXP,
207                 REW_GAIN_EXP, REW_CHAOS_WP, REW_GAIN_ABL, REW_GREA_OBJ, REW_AUGM_ABL
208         },
209
210         /* Nurgle: */
211         {
212                 REW_WRATH, REW_PISS_OFF, REW_HURT_LOT, REW_RUIN_ABL, REW_LOSE_ABL,
213                 REW_LOSE_EXP, REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_SLF,
214                 REW_POLY_SLF, REW_POLY_WND, REW_HEAL_FUL, REW_GOOD_OBJ, REW_GAIN_ABL,
215                 REW_GAIN_ABL, REW_SER_UNDE, REW_CHAOS_WP, REW_GREA_OBJ, REW_AUGM_ABL
216         },
217
218         /* Tzeentch: */
219         {
220                 REW_WRATH, REW_CURSE_WP, REW_CURSE_AR, REW_RUIN_ABL, REW_LOSE_ABL,
221                 REW_LOSE_EXP, REW_IGNORE, REW_POLY_SLF, REW_POLY_SLF, REW_POLY_SLF,
222                 REW_POLY_SLF, REW_POLY_WND, REW_HEAL_FUL, REW_CHAOS_WP, REW_GREA_OBJ,
223                 REW_GAIN_ABL, REW_GAIN_ABL, REW_GAIN_EXP, REW_GAIN_EXP, REW_AUGM_ABL
224         },
225
226         /* Khaine: */
227         {
228                 REW_WRATH, REW_HURT_LOT, REW_PISS_OFF, REW_LOSE_ABL, REW_LOSE_EXP,
229                 REW_IGNORE,   REW_IGNORE,   REW_DISPEL_C, REW_DO_HAVOC, REW_DO_HAVOC,
230                 REW_POLY_SLF, REW_POLY_SLF, REW_GAIN_EXP, REW_GAIN_ABL, REW_GAIN_ABL,
231                 REW_SER_MONS, REW_GOOD_OBJ, REW_CHAOS_WP, REW_GREA_OBJ, REW_GOOD_OBS
232         }
233 };
234
235
236 void gain_level_reward(int chosen_reward)
237 {
238         char        wrath_reason[32] = "";
239         int         nasty_chance = 6;
240         OBJECT_TYPE_VALUE dummy = 0;
241         int         type, effect;
242         concptr        reward = NULL;
243         GAME_TEXT o_name[MAX_NLEN];
244
245         int count = 0;
246
247         if (!chosen_reward)
248         {
249                 if (multi_rew) return;
250                 else multi_rew = TRUE;
251         }
252
253
254         if (p_ptr->lev == 13) nasty_chance = 2;
255         else if (!(p_ptr->lev % 13)) nasty_chance = 3;
256         else if (!(p_ptr->lev % 14)) nasty_chance = 12;
257
258         if (one_in_(nasty_chance))
259                 type = randint1(20); /* Allow the 'nasty' effects */
260         else
261                 type = randint1(15) + 5; /* Or disallow them */
262
263         if (type < 1) type = 1;
264         if (type > 20) type = 20;
265         type--;
266
267
268         sprintf(wrath_reason, _("%sの怒り", "the Wrath of %s"), chaos_patrons[p_ptr->chaos_patron]);
269
270         effect = chaos_rewards[p_ptr->chaos_patron][type];
271
272         if (one_in_(6) && !chosen_reward)
273         {
274                 msg_format(_("%^sは褒美としてあなたを突然変異させた。", "%^s rewards you with a mutation!"), chaos_patrons[p_ptr->chaos_patron]);
275                 (void)gain_mutation(p_ptr, 0);
276                 reward = _("変異した。", "mutation");
277         }
278         else
279         {
280                 switch (chosen_reward ? chosen_reward : effect)
281                 {
282
283                 case REW_POLY_SLF:
284
285                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
286                         msg_print(_("「汝、新たなる姿を必要とせり!」", "'Thou needst a new form, mortal!'"));
287
288                         do_poly_self();
289                         reward = _("変異した。", "polymorphing");
290                         break;
291
292                 case REW_GAIN_EXP:
293
294                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
295                         msg_print(_("「汝は良く行いたり!続けよ!」", "'Well done, mortal! Lead on!'"));
296
297                         if (p_ptr->prace == RACE_ANDROID)
298                         {
299                                 msg_print(_("しかし何も起こらなかった。", "But, nothing happen."));
300                         }
301                         else if (p_ptr->exp < PY_MAX_EXP)
302                         {
303                                 s32b ee = (p_ptr->exp / 2) + 10;
304                                 if (ee > 100000L) ee = 100000L;
305                                 msg_print(_("更に経験を積んだような気がする。", "You feel more experienced."));
306
307                                 gain_exp(ee);
308                                 reward = _("経験値を得た", "experience");
309                         }
310                         break;
311
312                 case REW_LOSE_EXP:
313
314                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
315                         msg_print(_("「下僕よ、汝それに値せず。」", "'Thou didst not deserve that, slave.'"));
316
317                         if (p_ptr->prace == RACE_ANDROID)
318                         {
319                                 msg_print(_("しかし何も起こらなかった。", "But, nothing happen."));
320                         }
321                         else
322                         {
323                                 lose_exp(p_ptr->exp / 6);
324                                 reward = _("経験値を失った。", "losing experience");
325                         }
326                         break;
327
328                 case REW_GOOD_OBJ:
329                         msg_format(_("%sの声がささやいた:", "The voice of %s whispers:"), chaos_patrons[p_ptr->chaos_patron]);
330                         msg_print(_("「我が与えし物を賢明に使うべし。」", "'Use my gift wisely.'"));
331
332                         acquirement(p_ptr->y, p_ptr->x, 1, FALSE, FALSE, FALSE);
333                         reward = _("上質なアイテムを手に入れた。", "a good item");
334                         break;
335
336                 case REW_GREA_OBJ:
337
338                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
339                         msg_print(_("「我が与えし物を賢明に使うべし。」", "'Use my gift wisely.'"));
340
341                         acquirement(p_ptr->y, p_ptr->x, 1, TRUE, FALSE, FALSE);
342                         reward = _("高級品のアイテムを手に入れた。", "an excellent item");
343                         break;
344
345                 case REW_CHAOS_WP:
346                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
347                         msg_print(_("「汝の行いは貴き剣に値せり。」", "'Thy deed hath earned thee a worthy blade.'"));
348                         acquire_chaos_weapon(p_ptr);
349                         reward = _("(混沌)の武器を手に入れた。", "chaos weapon");
350                         break;
351
352                 case REW_GOOD_OBS:
353
354                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
355                         msg_print(_("「汝の行いは貴き報いに値せり。」", "'Thy deed hath earned thee a worthy reward.'"));
356
357                         acquirement(p_ptr->y, p_ptr->x, randint1(2) + 1, FALSE, FALSE, FALSE);
358                         reward = _("上質なアイテムを手に入れた。", "good items");
359                         break;
360
361                 case REW_GREA_OBS:
362
363                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
364                         msg_print(_("「下僕よ、汝の献身への我が惜しみ無き報いを見るがよい。」", "'Behold, mortal, how generously I reward thy loyalty.'"));
365
366                         acquirement(p_ptr->y, p_ptr->x, randint1(2) + 1, TRUE, FALSE, FALSE);
367                         reward = _("高級品のアイテムを手に入れた。", "excellent items");
368                         break;
369
370                 case REW_TY_CURSE:
371                         msg_format(_("%sの声が轟き渡った:", "The voice of %s thunders:"), chaos_patrons[p_ptr->chaos_patron]);
372                         msg_print(_("「下僕よ、汝傲慢なり。」", "'Thou art growing arrogant, mortal.'"));
373
374                         (void)activate_ty_curse(FALSE, &count);
375                         reward = _("禍々しい呪いをかけられた。", "cursing");
376                         break;
377
378                 case REW_SUMMON_M:
379
380                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
381                         msg_print(_("「我が下僕たちよ、かの傲慢なる者を倒すべし!」", "'My pets, destroy the arrogant mortal!'"));
382
383                         for (dummy = 0; dummy < randint1(5) + 1; dummy++)
384                         {
385                                 (void)summon_specific(0, p_ptr->y, p_ptr->x, current_floor_ptr->dun_level, 0, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | PM_NO_PET), '\0');
386                         }
387                         reward = _("モンスターを召喚された。", "summoning hostile monsters");
388                         break;
389
390
391                 case REW_H_SUMMON:
392
393                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
394                         msg_print(_("「汝、より強き敵を必要とせり!」", "'Thou needst worthier opponents!'"));
395
396                         activate_hi_summon(p_ptr->y, p_ptr->x, FALSE);
397                         reward = _("モンスターを召喚された。", "summoning many hostile monsters");
398                         break;
399
400
401                 case REW_DO_HAVOC:
402                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
403                         msg_print(_("「死と破壊こそ我が喜びなり!」", "'Death and destruction! This pleaseth me!'"));
404
405                         call_chaos();
406                         reward = _("カオスの力が渦巻いた。", "calling chaos");
407                         break;
408
409
410                 case REW_GAIN_ABL:
411                         msg_format(_("%sの声が鳴り響いた:", "The voice of %s rings out:"), chaos_patrons[p_ptr->chaos_patron]);
412                         msg_print(_("「留まるのだ、下僕よ。余が汝の肉体を鍛えん。」", "'Stay, mortal, and let me mold thee.'"));
413
414                         if (one_in_(3) && !(chaos_stats[p_ptr->chaos_patron] < 0))
415                                 do_inc_stat(chaos_stats[p_ptr->chaos_patron]);
416                         else
417                                 do_inc_stat(randint0(6));
418                         reward = _("能力値が上がった。", "increasing a stat");
419                         break;
420
421
422                 case REW_LOSE_ABL:
423                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
424                         msg_print(_("「下僕よ、余は汝に飽みたり。」", "'I grow tired of thee, mortal.'"));
425
426                         if (one_in_(3) && !(chaos_stats[p_ptr->chaos_patron] < 0))
427                                 do_dec_stat(chaos_stats[p_ptr->chaos_patron]);
428                         else
429                                 (void)do_dec_stat(randint0(6));
430                         reward = _("能力値が下がった。", "decreasing a stat");
431                         break;
432
433
434                 case REW_RUIN_ABL:
435
436                         msg_format(_("%sの声が轟き渡った:", "The voice of %s thunders:"), chaos_patrons[p_ptr->chaos_patron]);
437                         msg_print(_("「汝、謙虚たることを学ぶべし!」", "'Thou needst a lesson in humility, mortal!'"));
438                         msg_print(_("あなたは以前より弱くなった!", "You feel less powerful!"));
439
440                         for (dummy = 0; dummy < A_MAX; dummy++)
441                         {
442                                 (void)dec_stat(dummy, 10 + randint1(15), TRUE);
443                         }
444                         reward = _("全能力値が下がった。", "decreasing all stats");
445                         break;
446
447                 case REW_POLY_WND:
448
449                         msg_format(_("%sの力が触れるのを感じた。", "You feel the power of %s touch you."),
450                                 chaos_patrons[p_ptr->chaos_patron]);
451                         do_poly_wounds();
452                         reward = _("傷が変化した。", "polymorphing wounds");
453                         break;
454
455                 case REW_AUGM_ABL:
456
457                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
458
459                         msg_print(_("「我がささやかなる賜物を受けとるがよい!」", "'Receive this modest gift from me!'"));
460
461                         for (dummy = 0; dummy < A_MAX; dummy++)
462                         {
463                                 (void)do_inc_stat(dummy);
464                         }
465                         reward = _("全能力値が上がった。", "increasing all stats");
466                         break;
467
468                 case REW_HURT_LOT:
469
470                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
471                         msg_print(_("「苦しむがよい、無能な愚か者よ!」", "'Suffer, pathetic fool!'"));
472
473                         fire_ball(GF_DISINTEGRATE, 0, p_ptr->lev * 4, 4);
474                         take_hit(DAMAGE_NOESCAPE, p_ptr->lev * 4, wrath_reason, -1);
475                         reward = _("分解の球が発生した。", "generating disintegration ball");
476                         break;
477
478                 case REW_HEAL_FUL:
479
480                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
481                         (void)restore_level();
482                         (void)restore_all_status();
483                         (void)true_healing(5000);
484                         reward = _("体力が回復した。", "healing");
485                         break;
486
487                 case REW_CURSE_WP:
488
489                         if (!has_melee_weapon(INVEN_RARM) && !has_melee_weapon(INVEN_LARM)) break;
490                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
491                         msg_print(_("「汝、武器に頼ることなかれ。」", "'Thou reliest too much on thy weapon.'"));
492
493                         dummy = INVEN_RARM;
494                         if (has_melee_weapon(INVEN_LARM))
495                         {
496                                 dummy = INVEN_LARM;
497                                 if (has_melee_weapon(INVEN_RARM) && one_in_(2)) dummy = INVEN_RARM;
498                         }
499                         object_desc(o_name, &inventory[dummy], OD_NAME_ONLY);
500                         (void)curse_weapon(FALSE, dummy);
501                         reward = format(_("%sが破壊された。", "destroying %s"), o_name);
502                         break;
503
504                 case REW_CURSE_AR:
505
506                         if (!inventory[INVEN_BODY].k_idx) break;
507                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
508                         msg_print(_("「汝、防具に頼ることなかれ。」", "'Thou reliest too much on thine equipment.'"));
509
510                         object_desc(o_name, &inventory[INVEN_BODY], OD_NAME_ONLY);
511                         (void)curse_armor();
512                         reward = format(_("%sが破壊された。", "destroying %s"), o_name);
513                         break;
514
515                 case REW_PISS_OFF:
516
517                         msg_format(_("%sの声がささやいた:", "The voice of %s whispers:"), chaos_patrons[p_ptr->chaos_patron]);
518                         msg_print(_("「我を怒りしめた罪を償うべし。」", "'Now thou shalt pay for annoying me.'"));
519
520                         switch (randint1(4))
521                         {
522                         case 1:
523                                 (void)activate_ty_curse(FALSE, &count);
524                                 reward = _("禍々しい呪いをかけられた。", "cursing");
525                                 break;
526                         case 2:
527                                 activate_hi_summon(p_ptr->y, p_ptr->x, FALSE);
528                                 reward = _("モンスターを召喚された。", "summoning hostile monsters");
529                                 break;
530                         case 3:
531                                 if (one_in_(2))
532                                 {
533                                         if (!has_melee_weapon(INVEN_RARM) && !has_melee_weapon(INVEN_LARM)) break;
534                                         dummy = INVEN_RARM;
535                                         if (has_melee_weapon(INVEN_LARM))
536                                         {
537                                                 dummy = INVEN_LARM;
538                                                 if (has_melee_weapon(INVEN_RARM) && one_in_(2)) dummy = INVEN_RARM;
539                                         }
540                                         object_desc(o_name, &inventory[dummy], OD_NAME_ONLY);
541                                         (void)curse_weapon(FALSE, dummy);
542                                         reward = format(_("%sが破壊された。", "destroying %s"), o_name);
543                                 }
544                                 else
545                                 {
546                                         if (!inventory[INVEN_BODY].k_idx) break;
547                                         object_desc(o_name, &inventory[INVEN_BODY], OD_NAME_ONLY);
548                                         (void)curse_armor();
549                                         reward = format(_("%sが破壊された。", "destroying %s"), o_name);
550                                 }
551                                 break;
552                         default:
553                                 for (dummy = 0; dummy < A_MAX; dummy++)
554                                 {
555                                         (void)dec_stat(dummy, 10 + randint1(15), TRUE);
556                                 }
557                                 reward = _("全能力値が下がった。", "decreasing all stats");
558                                 break;
559                         }
560                         break;
561
562                 case REW_WRATH:
563
564                         msg_format(_("%sの声が轟き渡った:", "The voice of %s thunders:"), chaos_patrons[p_ptr->chaos_patron]);
565                         msg_print(_("「死ぬがよい、下僕よ!」", "'Die, mortal!'"));
566
567                         take_hit(DAMAGE_LOSELIFE, p_ptr->lev * 4, wrath_reason, -1);
568                         for (dummy = 0; dummy < A_MAX; dummy++)
569                         {
570                                 (void)dec_stat(dummy, 10 + randint1(15), FALSE);
571                         }
572                         activate_hi_summon(p_ptr->y, p_ptr->x, FALSE);
573                         (void)activate_ty_curse(FALSE, &count);
574                         if (one_in_(2))
575                         {
576                                 dummy = 0;
577
578                                 if (has_melee_weapon(INVEN_RARM))
579                                 {
580                                         dummy = INVEN_RARM;
581                                         if (has_melee_weapon(INVEN_LARM) && one_in_(2)) dummy = INVEN_LARM;
582                                 }
583                                 else if (has_melee_weapon(INVEN_LARM)) dummy = INVEN_LARM;
584
585                                 if (dummy) (void)curse_weapon(FALSE, dummy);
586                         }
587                         if (one_in_(2)) (void)curse_armor();
588                         break;
589
590                 case REW_DESTRUCT:
591
592                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
593                         msg_print(_("「死と破壊こそ我が喜びなり!」", "'Death and destruction! This pleaseth me!'"));
594
595                         (void)destroy_area(p_ptr->y, p_ptr->x, 25, FALSE);
596                         reward = _("ダンジョンが*破壊*された。", "*destruct*ing dungeon");
597                         break;
598
599                 case REW_GENOCIDE:
600
601                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
602                         msg_print(_("「我、汝の敵を抹殺せん!」", "'Let me relieve thee of thine oppressors!'"));
603                         (void)symbol_genocide(0, FALSE);
604                         reward = _("モンスターが抹殺された。", "genociding monsters");
605                         break;
606
607                 case REW_MASS_GEN:
608
609                         msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
610                         msg_print(_("「我、汝の敵を抹殺せん!」", "'Let me relieve thee of thine oppressors!'"));
611
612                         (void)mass_genocide(0, FALSE);
613                         reward = _("モンスターが抹殺された。", "genociding nearby monsters");
614                         break;
615
616                 case REW_DISPEL_C:
617
618                         msg_format(_("%sの力が敵を攻撃するのを感じた!", "You can feel the power of %s assault your enemies!"), chaos_patrons[p_ptr->chaos_patron]);
619                         (void)dispel_monsters(p_ptr->lev * 4);
620                         break;
621
622                 case REW_IGNORE:
623
624                         msg_format(_("%sはあなたを無視した。", "%s ignores you."), chaos_patrons[p_ptr->chaos_patron]);
625                         break;
626
627                 case REW_SER_DEMO:
628
629                         msg_format(_("%sは褒美として悪魔の使いをよこした!", "%s rewards you with a demonic servant!"), chaos_patrons[p_ptr->chaos_patron]);
630
631                         if (!summon_specific(-1, p_ptr->y, p_ptr->x, current_floor_ptr->dun_level, SUMMON_DEMON, PM_FORCE_PET, '\0'))
632                                 msg_print(_("何も現れなかった...", "Nobody ever turns up..."));
633                         else
634                                 reward = _("悪魔がペットになった。", "a demonic servant");
635
636                         break;
637
638                 case REW_SER_MONS:
639                         msg_format(_("%sは褒美として使いをよこした!", "%s rewards you with a servant!"), chaos_patrons[p_ptr->chaos_patron]);
640
641                         if (!summon_specific(-1, p_ptr->y, p_ptr->x, current_floor_ptr->dun_level, 0, PM_FORCE_PET, '\0'))
642                                 msg_print(_("何も現れなかった...", "Nobody ever turns up..."));
643                         else
644                                 reward = _("モンスターがペットになった。", "a servant");
645
646                         break;
647
648                 case REW_SER_UNDE:
649                         msg_format(_("%sは褒美としてアンデッドの使いをよこした。", "%s rewards you with an undead servant!"), chaos_patrons[p_ptr->chaos_patron]);
650
651                         if (!summon_specific(-1, p_ptr->y, p_ptr->x, current_floor_ptr->dun_level, SUMMON_UNDEAD, PM_FORCE_PET, '\0'))
652                                 msg_print(_("何も現れなかった...", "Nobody ever turns up..."));
653                         else
654                                 reward = _("アンデッドがペットになった。", "an undead servant");
655
656                         break;
657
658                 default:
659                         msg_format(_("%sの声がどもった:", "The voice of %s stammers:"), chaos_patrons[p_ptr->chaos_patron]);
660                         msg_format(_("「あー、あー、答えは %d/%d。質問は何?」", "'Uh... uh... the answer's %d/%d, what's the question?'"), type, effect);
661
662                 }
663         }
664         if (reward)
665         {
666                 do_cmd_write_nikki(NIKKI_BUNSHOU, 0, format(_("パトロンの報酬で%s", "The patron rewards you with %s."), reward));
667         }
668 }
669
670 void admire_from_patron(player_type *creature_ptr)
671 {
672         if ((creature_ptr->pclass == CLASS_CHAOS_WARRIOR) || (creature_ptr->muta2 & MUT2_CHAOS_GIFT))
673         {
674                 msg_format(_("%sからの声が響いた。", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]);
675                 msg_print(_("『よくやった、定命の者よ!』", "'Thou art donst well, mortal!'"));
676         }
677 }