OSDN Git Service

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