OSDN Git Service

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