OSDN Git Service

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