OSDN Git Service

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