OSDN Git Service

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