OSDN Git Service

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