OSDN Git Service

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