OSDN Git Service

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