OSDN Git Service

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