OSDN Git Service

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