4 * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
6 * This software may be copied and distributed for educational, research,
7 * and not for profit purposes provided that this copyright and statement
8 * are included in all such copies. Other copyrights may also apply.
11 /* Purpose: Monster spells (attack monster) */
17 * Monster casts a breath (or ball) attack at another monster.
18 * Pass over any monsters that may be in the way
19 * Affect grids, objects, monsters, and the player
21 static void monst_breath_monst(int m_idx, int y, int x, int typ, int dam_hp, int rad, bool breath, int monspell, bool learnable)
23 int flg = PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_MONSTER;
25 monster_type *m_ptr = &m_list[m_idx];
26 monster_race *r_ptr = &r_info[m_ptr->r_idx];
28 /* Determine the radius of the blast */
29 if (rad < 1 && breath) rad = (r_ptr->flags2 & RF2_POWERFUL) ? 3 : 2;
31 /* Handle breath attacks */
32 if (breath) rad = 0 - rad;
34 if (typ == GF_ROCKET) flg |= PROJECT_STOP;
36 (void)project(m_idx, rad, y, x, dam_hp, typ, flg, (learnable ? monspell : -1));
41 * Monster casts a bolt at another monster
42 * Stop if we hit a monster
43 * Affect monsters and the player
45 static void monst_bolt_monst(int m_idx, int y, int x, int typ, int dam_hp, int monspell, bool learnable)
47 int flg = PROJECT_STOP | PROJECT_KILL | PROJECT_MONSTER | PROJECT_REFLECTABLE;
49 (void)project(m_idx, 0, y, x, dam_hp, typ, flg, (learnable ? monspell : -1));
52 static void monst_beam_monst(int m_idx, int y, int x, int typ, int dam_hp, int monspell, bool learnable)
54 int flg = PROJECT_BEAM | PROJECT_KILL | PROJECT_THRU | PROJECT_MONSTER;
56 (void)project(m_idx, 0, y, x, dam_hp, typ, flg, (learnable ? monspell : -1));
60 * Determine if a beam spell will hit the target.
62 static bool direct_beam(int y1, int x1, int y2, int x2, monster_type *m_ptr)
70 bool friend = is_pet(m_ptr);
72 /* Check the projection path */
73 grid_n = project_path(grid_g, MAX_RANGE, y1, x1, y2, x2, PROJECT_THRU);
75 /* No grid is ever projectable from itself */
76 if (!grid_n) return (FALSE);
78 for (i = 0; i < grid_n; i++)
80 y = GRID_Y(grid_g[i]);
81 x = GRID_X(grid_g[i]);
83 if (y == y2 && x == x2)
85 else if (friend && cave[y][x].m_idx > 0 &&
86 !are_enemies(m_ptr, &m_list[cave[y][x].m_idx]))
88 /* Friends don't shoot friends */
92 if (friend && y == py && x == px)
100 static bool breath_direct(int y1, int x1, int y2, int x2, int rad, bool disint_ball, bool friend)
102 /* Must be the same as projectable() */
110 byte gx[1024], gy[1024];
117 /* Check the projection path */
118 grid_n = project_path(grid_g, MAX_RANGE, y1, x1, y2, x2, disint_ball ? PROJECT_DISI : 0);
119 breath_shape(grid_g, grid_n, &grids, gx, gy, gm, &gm_rad, rad, y1, x1, y2, x2, disint_ball, FALSE);
121 for (i = 0; i < grids; i++)
123 /* Extract the location */
127 if (y == y2 && x == x2)
129 if (y == py && x == px)
134 if (friend && hityou)
140 * Monster tries to 'cast a spell' (or breath, etc)
141 * at another monster.
143 * The player is only disturbed if able to be affected by the spell.
145 bool monst_spell_monst(int m_idx)
149 int thrown_spell, count = 0;
154 u32b p_mode = 0L, u_mode = 0L;
155 int s_num_6 = (easy_band ? 2 : 6);
156 int s_num_4 = (easy_band ? 1 : 4);
158 byte spell[96], num = 0;
165 monster_type *m_ptr = &m_list[m_idx];
166 monster_type *t_ptr = NULL;
168 monster_race *r_ptr = &r_info[m_ptr->r_idx];
169 monster_race *tr_ptr = NULL;
173 bool wake_up = FALSE;
176 bool blind = (p_ptr->blind ? TRUE : FALSE);
178 bool see_m = m_ptr->ml;
179 bool maneable = player_has_los_bold(m_ptr->fy, m_ptr->fx);
180 bool learnable = (see_m && maneable && !world_monster);
186 bool pet = is_pet(m_ptr);
188 /* Prepare flags for summoning */
189 if (pet) p_mode |= PM_FORCE_PET;
190 if (!pet) u_mode |= PM_ALLOW_UNIQUE;
192 /* Cannot cast spells when confused */
193 if (m_ptr->confused) return (FALSE);
195 /* Extract the racial spell flags */
200 /* Target is given for pet? */
201 if (pet_t_m_idx && pet)
204 t_ptr = &m_list[t_idx];
206 /* Cancel if not projectable (for now) */
207 if (!projectable(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx))
213 /* Is there counter attack target? */
214 if (!t_idx && m_ptr->target_y)
216 t_idx = cave[m_ptr->target_y][m_ptr->target_x].m_idx;
220 t_ptr = &m_list[t_idx];
222 /* Cancel if neither enemy nor a given target */
223 if (t_idx != pet_t_m_idx &&
224 !are_enemies(m_ptr, t_ptr))
229 /* Allow only summoning etc.. if not projectable */
230 else if (!projectable(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx))
232 f4 &= (RF4_INDIRECT_MASK);
233 f5 &= (RF5_INDIRECT_MASK);
234 f6 &= (RF6_INDIRECT_MASK);
239 /* Look for enemies normally */
242 bool success = FALSE;
244 if (p_ptr->inside_battle)
246 start = randint1(m_max-1) + m_max;
247 if (randint0(2)) plus = -1;
249 else start = m_max + 1;
251 /* Scan thru all monsters */
252 for (i = start; ((i < start + m_max) && (i > start - m_max)); i += plus)
254 int dummy = (i % m_max);
255 if (!dummy) continue;
258 t_ptr = &m_list[t_idx];
260 /* Skip dead monsters */
261 if (!t_ptr->r_idx) continue;
263 /* Monster must be 'an enemy' */
264 if (!are_enemies(m_ptr, t_ptr)) continue;
266 /* Monster must be projectable */
267 if (!projectable(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx)) continue;
275 if (!success) return FALSE;
279 /* OK -- we've got a target */
282 tr_ptr = &r_info[t_ptr->r_idx];
284 /* Forget old counter attack target */
287 /* Extract the monster level */
288 rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1);
293 f6 &= ~(RF6_DARKNESS | RF6_TRAPS);
296 if (dun_level && (!p_ptr->inside_quest || (p_ptr->inside_quest < MIN_RANDOM_QUEST)) && (d_info[dungeon_type].flags1 & DF1_NO_MAGIC))
298 f4 &= (RF4_NOMAGIC_MASK);
299 f5 &= (RF5_NOMAGIC_MASK);
300 f6 &= (RF6_NOMAGIC_MASK);
303 if (p_ptr->inside_arena || p_ptr->inside_battle)
305 f4 &= ~(RF4_SUMMON_MASK);
306 f5 &= ~(RF5_SUMMON_MASK);
307 f6 &= ~(RF6_SUMMON_MASK);
309 if (p_ptr->inside_battle && !one_in_(3))
314 if (!(p_ptr->pet_extra_flags & PF_TELEPORT) && pet)
316 f6 &= ~((RF6_BLINK | RF6_TPORT | RF6_TELE_AWAY));
319 if (m_idx == p_ptr->riding)
321 f4 &= ~(RF4_RIDING_MASK);
322 f5 &= ~(RF5_RIDING_MASK);
323 f6 &= ~(RF6_RIDING_MASK);
326 if (!(p_ptr->pet_extra_flags & PF_ATTACK_SPELL) && pet)
328 f4 &= ~(RF4_ATTACK_MASK);
329 f5 &= ~(RF5_ATTACK_MASK);
330 f6 &= ~(RF6_ATTACK_MASK);
333 if (!(p_ptr->pet_extra_flags & PF_SUMMON_SPELL) && pet)
335 f4 &= ~(RF4_SUMMON_MASK);
336 f5 &= ~(RF5_SUMMON_MASK);
337 f6 &= ~(RF6_SUMMON_MASK);
340 /* Prevent collateral damage */
341 if (!(p_ptr->pet_extra_flags & PF_BALL_SPELL) && pet && (m_idx != p_ptr->riding))
343 int dist = distance(py, px, y, x);
345 /* Expected breath radius */
346 int rad = (r_ptr->flags2 & RF2_POWERFUL) ? 3 : 2;
350 f4 &= ~(RF4_BALL_MASK);
351 f5 &= ~(RF5_BALL_MASK);
352 f6 &= ~(RF6_BALL_MASK);
356 f4 &= ~(RF4_BIG_BALL_MASK);
357 f5 &= ~(RF5_BIG_BALL_MASK);
358 f6 &= ~(RF6_BIG_BALL_MASK);
361 if (((f4 & RF4_BEAM_MASK) ||
362 (f5 & RF5_BEAM_MASK) ||
363 (f6 & RF6_BEAM_MASK)) &&
364 !direct_beam(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, m_ptr))
366 f4 &= ~(RF4_BEAM_MASK);
367 f5 &= ~(RF5_BEAM_MASK);
368 f6 &= ~(RF6_BEAM_MASK);
371 if (((f4 & RF4_BREATH_MASK) ||
372 (f5 & RF5_BREATH_MASK) ||
373 (f6 & RF6_BREATH_MASK)) &&
374 !breath_direct(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, rad, FALSE, TRUE))
376 f4 &= ~(RF4_BREATH_MASK);
377 f5 &= ~(RF5_BREATH_MASK);
378 f6 &= ~(RF6_BREATH_MASK);
380 else if ((f4 & RF4_BR_DISI) &&
381 !breath_direct(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, rad, TRUE, TRUE))
383 f4 &= ~(RF4_BR_DISI);
387 /* Remove some spells if necessary */
389 /* Check for a clean bolt shot */
390 if (((f4 & RF4_BOLT_MASK) ||
391 (f5 & RF5_BOLT_MASK) ||
392 (f6 & RF6_BOLT_MASK)) &&
393 !(r_ptr->flags2 & RF2_STUPID) &&
394 !clean_shot(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, pet))
396 f4 &= ~(RF4_BOLT_MASK);
397 f5 &= ~(RF5_BOLT_MASK);
398 f6 &= ~(RF6_BOLT_MASK);
401 /* Check for a possible summon */
402 if (((f4 & RF4_SUMMON_MASK) ||
403 (f5 & RF5_SUMMON_MASK) ||
404 (f6 & RF6_SUMMON_MASK)) &&
405 !(r_ptr->flags2 & RF2_STUPID) &&
406 !(summon_possible(t_ptr->fy, t_ptr->fx)))
408 /* Remove summoning spells */
409 f4 &= ~(RF4_SUMMON_MASK);
410 f5 &= ~(RF5_SUMMON_MASK);
411 f6 &= ~(RF6_SUMMON_MASK);
414 /* Hack -- allow "desperate" spells */
415 if ((r_ptr->flags2 & RF2_SMART) &&
416 (m_ptr->hp < m_ptr->maxhp / 10) &&
417 (randint0(100) < 50))
419 /* Require intelligent spells */
420 f4 &= (RF4_INT_MASK);
421 f5 &= (RF5_INT_MASK);
422 f6 &= (RF6_INT_MASK);
427 if (!f4 && !f5 && !f6) return FALSE;
429 /* Extract the "inate" spells */
430 for (k = 0; k < 32; k++)
432 if (f4 & (1L << k)) spell[num++] = k + 32 * 3;
435 /* Extract the "normal" spells */
436 for (k = 0; k < 32; k++)
438 if (f5 & (1L << k)) spell[num++] = k + 32 * 4;
441 /* Extract the "bizarre" spells */
442 for (k = 0; k < 32; k++)
444 if (f6 & (1L << k)) spell[num++] = k + 32 * 5;
448 if (!num) return (FALSE);
450 /* Stop if player is dead or gone */
451 if (!p_ptr->playing || p_ptr->is_dead) return (FALSE);
453 /* Handle "leaving" */
454 if (p_ptr->leaving) return (FALSE);
456 /* Get the monster name (or "it") */
457 monster_desc(m_name, m_ptr, 0x00);
459 /* Get the monster possessive ("his"/"her"/"its") */
460 monster_desc(m_poss, m_ptr, 0x22);
462 /* Get the target's name (or "it") */
463 monster_desc(t_name, t_ptr, 0x00);
465 /* Hack -- Get the "died from" name */
466 monster_desc(ddesc, m_ptr, 0x88);
468 /* Choose a spell to cast */
469 thrown_spell = spell[randint0(num)];
472 see_either = (see_m || see_t);
473 see_both = (see_m && see_t);
475 /* Can the player be aware of this attack? */
476 known = (m_ptr->cdis <= MAX_SIGHT) || (t_ptr->cdis <= MAX_SIGHT);
478 if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(1, 0);
480 /* Check for spell failure (inate attacks never fail) */
481 if ((thrown_spell >= 128) && m_ptr->stunned && one_in_(2))
485 if (thrown_spell != (160+7)) /* Not RF6_SPECIAL */
488 msg_format("%^s¤Ï¼öʸ¤ò¾§¤¨¤è¤¦¤È¤·¤¿¤¬¼ºÇÔ¤·¤¿¡£", m_name);
490 msg_format("%^s tries to cast a spell, but fails.", m_name);
497 switch (thrown_spell)
506 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¶«¤ó¤À¡£", m_name, t_name);
508 msg_format("%^s shrieks at %s.", m_name, t_name);
542 msg_format("%^s¤¬²¿¤«¤ò¼Í¤Ã¤¿¡£", m_name);
544 msg_format("%^s shoots something.", m_name);
551 msg_format("%^s¤¬%s¤Ë¥í¥±¥Ã¥È¤òȯ¼Í¤·¤¿¡£", m_name, t_name);
553 msg_format("%^s fires a rocket at %s.", m_name, t_name);
564 dam = ((m_ptr->hp / 4) > 800 ? 800 : (m_ptr->hp / 4));
565 monst_breath_monst(m_idx, y, x, GF_ROCKET,
566 dam, 2, FALSE, MS_ROCKET, learnable);
579 msg_format("%^s¤¬´ñ̯¤Ê²»¤òȯ¤·¤¿¡£", m_name);
581 msg_format("%^s makes a strange noise.", m_name);
588 msg_format("%^s¤¬%s¤ËÌð¤òÊü¤Ã¤¿¡£", m_name, t_name);
590 msg_format("%^s fires an arrow at %s.", m_name, t_name);
603 dam = damroll(r_ptr->blow[0].d_dice, r_ptr->blow[0].d_side);
604 monst_bolt_monst(m_idx, y, x, GF_ARROW, dam, MS_SHOOT, learnable);
634 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
636 msg_format("%^s breathes.", m_name);
643 msg_format("%^s¤¬%s¤Ë»À¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
645 msg_format("%^s breathes acid at %s.", m_name, t_name);
658 dam = ((m_ptr->hp / 3) > 1600 ? 1600 : (m_ptr->hp / 3));
659 monst_breath_monst(m_idx, y, x, GF_ACID,
660 dam,0, TRUE, MS_BR_ACID, learnable);
675 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
677 msg_format("%^s breathes.", m_name);
684 msg_format("%^s¤¬%s¤Ë°ðºÊ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
686 msg_format("%^s breathes lightning at %s.", m_name, t_name);
699 dam = ((m_ptr->hp / 3) > 1600 ? 1600 : (m_ptr->hp / 3));
700 monst_breath_monst(m_idx, y, x, GF_ELEC,
701 dam,0, TRUE, MS_BR_ELEC, learnable);
716 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
718 msg_format("%^s breathes.", m_name);
725 msg_format("%^s¤¬%s¤Ë²Ð±ê¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
727 msg_format("%^s breathes fire at %s.", m_name, t_name);
740 dam = ((m_ptr->hp / 3) > 1600 ? 1600 : (m_ptr->hp / 3));
741 monst_breath_monst(m_idx, y, x, GF_FIRE,
742 dam,0, TRUE, MS_BR_FIRE, learnable);
757 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
759 msg_format("%^s breathes.", m_name);
766 msg_format("%^s¤¬%s¤ËÎ䵤¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
768 msg_format("%^s breathes frost at %s.", m_name, t_name);
781 dam = ((m_ptr->hp / 3) > 1600 ? 1600 : (m_ptr->hp / 3));
782 monst_breath_monst(m_idx, y, x, GF_COLD,
783 dam,0, TRUE, MS_BR_COLD, learnable);
797 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
799 msg_format("%^s breathes.", m_name);
806 msg_format("%^s¤¬%s¤Ë¥¬¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
808 msg_format("%^s breathes gas at %s.", m_name, t_name);
821 dam = ((m_ptr->hp / 3) > 800 ? 800 : (m_ptr->hp / 3));
822 monst_breath_monst(m_idx, y, x, GF_POIS,
823 dam,0, TRUE, MS_BR_POIS, learnable);
838 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
840 msg_format("%^s breathes.", m_name);
847 msg_format("%^s¤¬%s¤ËÃϹö¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
849 msg_format("%^s breathes nether at %s.", m_name, t_name);
862 dam = ((m_ptr->hp / 6) > 550 ? 550 : (m_ptr->hp / 6));
863 monst_breath_monst(m_idx, y, x, GF_NETHER,
864 dam,0, TRUE, MS_BR_NETHER, learnable);
879 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
881 msg_format("%^s breathes.", m_name);
888 msg_format("%^s¤¬%s¤ËÁ®¸÷¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
890 msg_format("%^s breathes light at %s.", m_name, t_name);
903 dam = ((m_ptr->hp / 6) > 400 ? 400 : (m_ptr->hp / 6));
904 monst_breath_monst(m_idx, y, x, GF_LITE,
905 dam,0, TRUE, MS_BR_LITE, learnable);
920 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
922 msg_format("%^s breathes.", m_name);
929 msg_format("%^s¤¬%s¤Ë°Å¹õ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
931 msg_format("%^s breathes darkness at %s.", m_name, t_name);
944 dam = ((m_ptr->hp / 6) > 400 ? 400 : (m_ptr->hp / 6));
945 monst_breath_monst(m_idx, y, x, GF_DARK,
946 dam,0, TRUE, MS_BR_DARK, learnable);
961 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
963 msg_format("%^s breathes.", m_name);
970 msg_format("%^s¤¬%s¤Ëº®Íð¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
972 msg_format("%^s breathes confusion at %s.", m_name, t_name);
985 dam = ((m_ptr->hp / 6) > 450 ? 450 : (m_ptr->hp / 6));
986 monst_breath_monst(m_idx, y, x, GF_CONFUSION,
987 dam,0, TRUE, MS_BR_CONF, learnable);
999 if (m_ptr->r_idx == MON_JAIAN)
1001 msg_format("¡Ö¥Ü¥©¥¨¡Á¡Á¡Á¡Á¡Á¡Á¡×");
1003 msg_format("'Booooeeeeee'");
1008 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1010 msg_format("%^s breathes.", m_name);
1017 msg_format("%^s¤¬%s¤Ë¹ì²»¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1019 msg_format("%^s breathes sound at %s.", m_name, t_name);
1029 sound(SOUND_BREATH);
1032 dam = ((m_ptr->hp / 6) > 450 ? 450 : (m_ptr->hp / 6));
1033 monst_breath_monst(m_idx, y, x, GF_SOUND,
1034 dam,0, TRUE, MS_BR_SOUND, learnable);
1049 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1051 msg_format("%^s breathes.", m_name);
1058 msg_format("%^s¤¬%s¤Ë¥«¥ª¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1060 msg_format("%^s breathes chaos at %s.", m_name, t_name);
1070 sound(SOUND_BREATH);
1073 dam = ((m_ptr->hp / 6) > 600 ? 600 : (m_ptr->hp / 6));
1074 monst_breath_monst(m_idx, y, x, GF_CHAOS,
1075 dam,0, TRUE, MS_BR_CHAOS, learnable);
1090 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1092 msg_format("%^s breathes.", m_name);
1099 msg_format("%^s¤¬%s¤ËÎô²½¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1101 msg_format("%^s breathes disenchantment at %s.", m_name, t_name);
1111 sound(SOUND_BREATH);
1114 dam = ((m_ptr->hp / 6) > 500 ? 500 : (m_ptr->hp / 6));
1115 monst_breath_monst(m_idx, y, x, GF_DISENCHANT,
1116 dam,0, TRUE, MS_BR_DISEN, learnable);
1131 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1133 msg_format("%^s breathes.", m_name);
1140 msg_format("%^s¤¬%s¤Ë°ø²Ìº®Íð¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1142 msg_format("%^s breathes nexus at %s.", m_name, t_name);
1152 sound(SOUND_BREATH);
1155 dam = ((m_ptr->hp / 3) > 250 ? 250 : (m_ptr->hp / 3));
1156 monst_breath_monst(m_idx, y, x, GF_NEXUS,
1157 dam,0, TRUE, MS_BR_NEXUS, learnable);
1172 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1174 msg_format("%^s breathes.", m_name);
1181 msg_format("%^s¤¬%s¤Ë»þ´ÖµÕž¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1183 msg_format("%^s breathes time at %s.", m_name, t_name);
1193 sound(SOUND_BREATH);
1196 dam = ((m_ptr->hp / 3) > 150 ? 150 : (m_ptr->hp / 3));
1197 monst_breath_monst(m_idx, y, x, GF_TIME,
1198 dam,0, TRUE, MS_BR_TIME, learnable);
1213 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1215 msg_format("%^s breathes.", m_name);
1222 msg_format("%^s¤¬%s¤ËÃÙÆߤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name);
1224 msg_format("%^s breathes inertia at %s.", m_name, t_name);
1234 sound(SOUND_BREATH);
1237 dam = ((m_ptr->hp / 6) > 200 ? 200 : (m_ptr->hp / 6));
1238 monst_breath_monst(m_idx, y, x, GF_INERTIA,
1239 dam,0, TRUE, MS_BR_INERTIA, learnable);
1254 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1256 msg_format("%^s breathes.", m_name);
1263 msg_format("%^s¤¬%s¤Ë½ÅÎϤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name);
1265 msg_format("%^s breathes gravity at %s.", m_name, t_name);
1275 sound(SOUND_BREATH);
1278 dam = ((m_ptr->hp / 3) > 200 ? 200 : (m_ptr->hp / 3));
1279 monst_breath_monst(m_idx, y, x, GF_GRAVITY,
1280 dam,0, TRUE, MS_BR_GRAVITY, learnable);
1292 if (m_ptr->r_idx == MON_BOTEI)
1294 msg_format("¡Ö¥ÜÄë¥Ó¥ë¥«¥Ã¥¿¡¼¡ª¡ª¡ª¡×");
1296 msg_format("'Boty-Build cutter!!!'");
1301 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1303 msg_format("%^s breathes.", m_name);
1310 msg_format("%^s¤¬%s¤ËÇËÊҤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name);
1312 msg_format("%^s breathes shards at %s.", m_name, t_name);
1322 sound(SOUND_BREATH);
1325 dam = ((m_ptr->hp / 6) > 500 ? 500 : (m_ptr->hp / 6));
1326 monst_breath_monst(m_idx, y, x, GF_SHARDS,
1327 dam,0, TRUE, MS_BR_SHARDS, learnable);
1342 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1344 msg_format("%^s breathes.", m_name);
1351 msg_format("%^s¤¬%s¤Ë¥×¥é¥º¥Þ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1353 msg_format("%^s breathes plasma at %s.", m_name, t_name);
1363 sound(SOUND_BREATH);
1366 dam = ((m_ptr->hp / 6) > 150 ? 150 : (m_ptr->hp / 6));
1367 monst_breath_monst(m_idx, y, x, GF_PLASMA,
1368 dam,0, TRUE, MS_BR_PLASMA, learnable);
1383 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1385 msg_format("%^s breathes.", m_name);
1392 msg_format("%^s¤¬%s¤Ë¥Õ¥©¡¼¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1394 msg_format("%^s breathes force at %s.", m_name, t_name);
1404 sound(SOUND_BREATH);
1407 dam = ((m_ptr->hp / 6) > 200 ? 200 : (m_ptr->hp / 6));
1408 monst_breath_monst(m_idx, y, x, GF_FORCE,
1409 dam,0, TRUE, MS_BR_FORCE, learnable);
1423 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1425 msg_format("%^s breathes.", m_name);
1432 msg_format("%^s¤¬%s¤ËËâÎϤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name);
1434 msg_format("%^s breathes mana at %s.", m_name, t_name);
1444 sound(SOUND_BREATH);
1447 dam = ((m_ptr->hp / 3) > 250 ? 250 : (m_ptr->hp / 3));
1448 monst_breath_monst(m_idx, y, x, GF_MANA,
1449 dam,0, TRUE, MS_BR_MANA, learnable);
1464 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1466 msg_format("%^s mumbles.", m_name);
1473 msg_format("%^s¤¬%s¤ËÊü¼Íǽµå¤òÊü¤Ã¤¿¡£", m_name, t_name);
1475 msg_format("%^s casts a ball of radiation at %s.", m_name, t_name);
1486 dam = (rlev + damroll(10, 6));
1487 monst_breath_monst(m_idx, y, x, GF_NUKE,
1488 dam, 2, FALSE, MS_BALL_NUKE, learnable);
1492 /* RF4_RF4_BR_NUKE */
1503 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1505 msg_format("%^s breathes.", m_name);
1512 msg_format("%^s¤¬%s¤ËÊü¼ÍÀÇÑ´þʪ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1514 msg_format("%^s breathes toxic waste at %s.", m_name, t_name);
1524 sound(SOUND_BREATH);
1527 dam = ((m_ptr->hp / 3) > 800 ? 800 : (m_ptr->hp / 3));
1528 monst_breath_monst(m_idx, y, x, GF_NUKE,
1529 dam,0, TRUE, MS_BR_NUKE, learnable);
1543 msg_format("%^s¤¬¶²¤í¤·¤²¤Ë¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1545 msg_format("%^s mumbles frighteningly.", m_name);
1552 msg_format("%^s¤¬%s¤Ë½ã¥í¥°¥ë¥¹¤òÊü¤Ã¤¿¡£", m_name, t_name);
1554 msg_format("%^s invokes raw Logrus upon %s.", m_name, t_name);
1565 dam = (rlev * 2) + damroll(10, 10);
1566 monst_breath_monst(m_idx, y, x, GF_CHAOS,
1567 dam, 4, FALSE, MS_BALL_CHAOS, learnable);
1582 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1584 msg_format("%^s breathes.", m_name);
1591 msg_format("%^s¤¬%s¤Ëʬ²ò¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1593 msg_format("%^s breathes disintegration at %s.", m_name, t_name);
1603 sound(SOUND_BREATH);
1606 dam = ((m_ptr->hp / 6) > 150 ? 150 : (m_ptr->hp / 6));
1607 monst_breath_monst(m_idx, y, x, GF_DISINTEGRATE,
1608 dam,0, TRUE, MS_BR_DISI, learnable);
1622 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1624 msg_format("%^s mumbles.", m_name);
1631 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥·¥Ã¥É¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1633 msg_format("%^s casts an acid ball at %s.", m_name, t_name);
1644 dam = (randint1(rlev * 3) + 15) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1645 monst_breath_monst(m_idx, y, x, GF_ACID, dam, 2, FALSE, MS_BALL_ACID, learnable);
1660 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1662 msg_format("%^s mumbles.", m_name);
1669 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1671 msg_format("%^s casts a lightning ball at %s.", m_name, t_name);
1682 dam = (randint1(rlev * 3 / 2) + 8) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1683 monst_breath_monst(m_idx, y, x, GF_ELEC, dam, 2, FALSE, MS_BALL_ELEC, learnable);
1695 if (m_ptr->r_idx == MON_ROLENTO)
1699 msg_format("%^s¤¬²¿¤«¤òÅꤲ¤¿¡£", m_name);
1701 msg_format("%^s¤¬%^s¤Ë¸þ¤«¤Ã¤Æ¼êÜØÃƤòÅꤲ¤¿¡£", m_name, t_name);
1704 msg_format("%^s throws something.", m_name);
1706 msg_format("%^s throws a hand grenade.", m_name);
1714 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1716 msg_format("%^s mumbles.", m_name);
1723 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1725 msg_format("%^s casts a fire ball at %s.", m_name, t_name);
1737 dam = (randint1(rlev * 7 / 2) + 10) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1738 monst_breath_monst(m_idx, y, x, GF_FIRE, dam, 2, FALSE, MS_BALL_FIRE, learnable);
1753 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1755 msg_format("%^s mumbles.", m_name);
1762 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥¤¥¹¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1764 msg_format("%^s casts a frost ball at %s.", m_name, t_name);
1775 dam = (randint1(rlev * 3 / 2) + 10) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1776 monst_breath_monst(m_idx, y, x, GF_COLD, dam, 2, FALSE, MS_BALL_COLD, learnable);
1791 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1793 msg_format("%^s mumbles.", m_name);
1800 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ°½±À¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1802 msg_format("%^s casts a stinking cloud at %s.", m_name, t_name);
1813 dam = damroll(12, 2) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1814 monst_breath_monst(m_idx, y, x, GF_POIS, dam, 2, FALSE, MS_BALL_POIS, learnable);
1829 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1831 msg_format("%^s mumbles.", m_name);
1838 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆÃϹöµå¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1840 msg_format("%^s casts a nether ball at %s.", m_name, t_name);
1851 dam = 50 + damroll(10, 10) + (rlev * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1));
1852 monst_breath_monst(m_idx, y, x, GF_NETHER, dam, 2, FALSE, MS_BALL_NETHER, learnable);
1867 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1869 msg_format("%^s mumbles.", m_name);
1876 msg_format("%^s¤¬%s¤ËÂФ·¤Æή¤ì¤ë¤è¤¦¤Ê¿È¿¶¤ê¤ò¤·¤¿¡£", m_name, t_name);
1878 msg_format("%^s gestures fluidly at %s.", m_name, t_name);
1882 msg_format("%^s¤Ï±²´¬¤Ë°û¤ß¹þ¤Þ¤ì¤¿¡£", t_name);
1884 msg_format("%^s is engulfed in a whirlpool.", t_name);
1895 dam = ((r_ptr->flags2 & RF2_POWERFUL) ? randint1(rlev * 3) : randint1(rlev * 2)) + 50;
1896 monst_breath_monst(m_idx, y, x, GF_WATER, dam, 4, FALSE, MS_BALL_WATER, learnable);
1911 msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1913 msg_format("%^s mumbles powerfully.", m_name);
1920 msg_format("%^s¤¬%s¤ËÂФ·¤ÆËâÎϤÎÍò¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name);
1922 msg_format("%^s invokes a mana storm upon %s.", m_name, t_name);
1933 dam = (rlev * 4) + 50 + damroll(10, 10);
1934 monst_breath_monst(m_idx, y, x, GF_MANA, dam, 4, FALSE, MS_BALL_MANA, learnable);
1949 msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1951 msg_format("%^s mumbles powerfully.", m_name);
1958 msg_format("%^s¤¬%s¤ËÂФ·¤Æ°Å¹õ¤ÎÍò¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name);
1960 msg_format("%^s invokes a darkness storm upon %s.", m_name, t_name);
1971 dam = (rlev * 4) + 50 + damroll(10, 10);
1972 monst_breath_monst(m_idx, y, x, GF_DARK, dam, 4, FALSE, MS_BALL_DARK, learnable);
1976 /* RF5_DRAIN_MANA */
1982 msg_format("%^s¤ÏÀº¿À¥¨¥Í¥ë¥®¡¼¤ò%s¤«¤éµÛ¤¤¤È¤Ã¤¿¡£", m_name, t_name);
1984 msg_format("%^s draws psychic energy from %s.", m_name, t_name);
1989 /* Heal the monster */
1990 if (m_ptr->hp < m_ptr->maxhp)
1992 if (!tr_ptr->flags4 && !tr_ptr->flags5 && !tr_ptr->flags6)
1997 msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
1999 msg_format("%^s is unaffected!", t_name);
2007 int power = (randint1(rlev) / 2) + 1;
2010 m_ptr->hp += 6 * power;
2011 if (m_ptr->hp > m_ptr->maxhp) m_ptr->hp = m_ptr->maxhp;
2013 /* Redraw (later) if needed */
2014 if (p_ptr->health_who == m_idx) p_ptr->redraw |= (PR_HEALTH);
2015 if (p_ptr->riding == m_idx) p_ptr->redraw |= (PR_UHEALTH);
2017 /* Special message */
2021 msg_format("%^s¤Ïµ¤Ê¬¤¬Îɤµ¤½¤¦¤À¡£", m_name);
2023 msg_format("%^s appears healthier.", m_name);
2034 /* RF5_MIND_BLAST */
2039 msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤Èâˤó¤À", m_name, t_name);
2041 msg_format("%^s gazes intently at %s.", m_name, t_name);
2046 dam = damroll(7, 7);
2047 /* Attempt a saving throw */
2048 if ((tr_ptr->flags1 & RF1_UNIQUE) ||
2049 (tr_ptr->flags3 & RF3_NO_CONF) ||
2050 (tr_ptr->flags3 & RF3_RES_ALL) ||
2051 (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10))
2053 /* No obvious effect */
2056 /* Memorize a flag */
2057 if (tr_ptr->flags3 & (RF3_RES_ALL))
2059 tr_ptr->r_flags3 |= (RF3_RES_ALL);
2061 else if (tr_ptr->flags3 & (RF3_NO_CONF))
2063 tr_ptr->r_flags3 |= (RF3_NO_CONF);
2067 msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2069 msg_format("%^s is unaffected!", t_name);
2079 msg_format("%^s¤ÏÀº¿À¹¶·â¤ò¿©¤é¤Ã¤¿¡£", t_name);
2081 msg_format("%^s is blasted by psionic energy.", t_name);
2086 t_ptr->confused += randint0(4) + 4;
2089 mon_take_hit_mon(t_idx, dam, &fear, "¤ÎÀº¿À¤ÏÊø²õ¤·¡¢ÆùÂΤÏÈ´¤±¶õ¤È¤Ê¤Ã¤¿¡£", m_idx);
2091 mon_take_hit_mon(t_idx, dam, &fear, " collapses, a mindless husk.", m_idx);
2100 /* RF5_BRAIN_SMASH */
2105 msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤Èâˤó¤À", m_name, t_name);
2107 msg_format("%^s gazes intently at %s.", m_name, t_name);
2112 dam = damroll(12, 12);
2113 /* Attempt a saving throw */
2114 if ((tr_ptr->flags1 & RF1_UNIQUE) ||
2115 (tr_ptr->flags3 & RF3_NO_CONF) ||
2116 (tr_ptr->flags3 & RF3_RES_ALL) ||
2117 (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10))
2119 /* No obvious effect */
2122 /* Memorize a flag */
2123 if (tr_ptr->flags3 & (RF3_RES_ALL))
2125 tr_ptr->r_flags3 |= (RF3_RES_ALL);
2127 else if (tr_ptr->flags3 & (RF3_NO_CONF))
2129 tr_ptr->r_flags3 |= (RF3_NO_CONF);
2133 msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2135 msg_format("%^s is unaffected!", t_name);
2145 msg_format("%^s¤ÏÀº¿À¹¶·â¤ò¿©¤é¤Ã¤¿¡£", t_name);
2147 msg_format("%^s is blasted by psionic energy.", t_name);
2152 t_ptr->confused += randint0(4) + 4;
2153 t_ptr->slow = MIN(200, t_ptr->slow + 10);
2154 t_ptr->stunned += randint0(4) + 4;
2157 mon_take_hit_mon(t_idx, dam, &fear, "¤ÎÀº¿À¤ÏÊø²õ¤·¡¢ÆùÂΤÏÈ´¤±¶õ¤È¤Ê¤Ã¤¿¡£", m_idx);
2159 mon_take_hit_mon(t_idx, dam, &fear, " collapses, a mindless husk.", m_idx);
2175 msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¤Æ¼ö¤¤¤ò¤«¤±¤¿¡£", m_name, t_name);
2177 msg_format("%^s points at %s and curses.", m_name, t_name);
2187 dam = damroll(3, 8);
2188 if ((randint0(100 + rlev/2) < (tr_ptr->level + 35)) ||
2189 (tr_ptr->flags3 & RF3_RES_ALL))
2191 /* Memorize a flag */
2192 if (tr_ptr->flags3 & (RF3_RES_ALL))
2194 tr_ptr->r_flags3 |= (RF3_RES_ALL);
2197 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
2199 if (see_both) msg_format("%^s resists!", t_name);
2205 mon_take_hit_mon(t_idx, dam, &fear, NULL, m_idx);
2219 msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¤Æ¶²¤í¤·¤²¤Ë¼ö¤¤¤ò¤«¤±¤¿¡£", m_name, t_name);
2221 msg_format("%^s points at %s and curses horribly.", m_name, t_name);
2231 dam = damroll(8, 8);
2232 if ((randint0(100 + rlev/2) < (tr_ptr->level + 35)) ||
2233 (tr_ptr->flags3 & RF3_RES_ALL))
2235 /* Memorize a flag */
2236 if (tr_ptr->flags3 & (RF3_RES_ALL))
2238 tr_ptr->r_flags3 |= (RF3_RES_ALL);
2241 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
2243 if (see_both) msg_format("%^s resists!", t_name);
2249 mon_take_hit_mon(t_idx, dam, &fear, NULL, m_idx);
2264 msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¡¢¶²¤í¤·¤²¤Ë¼öʸ¤ò¾§¤¨¤¿¡ª", m_name, t_name);
2266 msg_format("%^s points at %s, incanting terribly!", m_name, t_name);
2276 dam = damroll(10, 15);
2277 if ((randint0(100 + rlev/2) < (tr_ptr->level + 35)) ||
2278 (tr_ptr->flags3 & RF3_RES_ALL))
2280 /* Memorize a flag */
2281 if (tr_ptr->flags3 & (RF3_RES_ALL))
2283 tr_ptr->r_flags3 |= (RF3_RES_ALL);
2286 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
2288 if (see_both) msg_format("%^s resists!", t_name);
2294 mon_take_hit_mon(t_idx, dam, &fear, NULL, m_idx);
2308 msg_format("%^s¤¬%s¤ÎÈ빦¤òÆͤ¤¤Æ¡¢¡Ö¤ªÁ°¤Ï´û¤Ë»à¤ó¤Ç¤¤¤ë¡×¤È¶«¤ó¤À¡£", m_name, t_name);
2310 msg_format("%^s points at %s, screaming the word, 'DIE!'", m_name, t_name);
2320 dam = damroll(15, 15);
2321 if (((randint0(100 + rlev/2) < (tr_ptr->level + 35)) && (m_ptr->r_idx != MON_KENSHIROU)) ||
2322 (tr_ptr->flags3 & RF3_RES_ALL))
2324 /* Memorize a flag */
2325 if (tr_ptr->flags3 & (RF3_RES_ALL))
2327 tr_ptr->r_flags3 |= (RF3_RES_ALL);
2330 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
2332 if (see_both) msg_format("%^s resists!", t_name);
2338 mon_take_hit_mon(t_idx, dam, &fear, NULL, m_idx);
2352 msg_format("%s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2354 msg_format("%^s casts an acid bolt at %s.", m_name, t_name);
2364 dam = (damroll(7, 8) + (rlev / 3)) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
2365 monst_bolt_monst(m_idx, y, x, GF_ACID,
2366 dam, MS_BOLT_ACID, learnable);
2377 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2379 msg_format("%^s casts a lightning bolt at %s.", m_name, t_name);
2389 dam = (damroll(4, 8) + (rlev / 3)) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
2390 monst_bolt_monst(m_idx, y, x, GF_ELEC,
2391 dam, MS_BOLT_ELEC, learnable);
2402 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2404 msg_format("%^s casts a fire bolt at %s.", m_name, t_name);
2414 dam = (damroll(9, 8) + (rlev / 3)) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
2415 monst_bolt_monst(m_idx, y, x, GF_FIRE,
2416 dam, MS_BOLT_FIRE, learnable);
2427 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥¤¥¹¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2429 msg_format("%^s casts a frost bolt at %s.", m_name, t_name);
2439 dam = (damroll(6, 8) + (rlev / 3)) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
2440 monst_bolt_monst(m_idx, y, x, GF_COLD,
2441 dam, MS_BOLT_COLD, learnable);
2456 msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
2458 msg_format("%^s mumbles powerfully.", m_name);
2465 msg_format("%^s¤¬%s¤ËÂФ·¤Æ¥¹¥¿¡¼¥Ð¡¼¥¹¥È¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name);
2467 msg_format("%^s invokes a starburst upon %s.", m_name, t_name);
2478 dam = (rlev * 4) + 50 + damroll(10, 10);
2479 monst_breath_monst(m_idx, y, x, GF_LITE, dam, 4, FALSE, MS_STARBURST, learnable);
2490 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆÃϹö¤ÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2492 msg_format("%^s casts a nether bolt at %s.", m_name, t_name);
2502 dam = 30 + damroll(5, 5) + (rlev * 4) / ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 3);
2503 monst_bolt_monst(m_idx, y, x, GF_NETHER,
2504 dam, MS_BOLT_NETHER, learnable);
2515 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¦¥©¡¼¥¿¡¼¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2517 msg_format("%^s casts a water bolt at %s.", m_name, t_name);
2527 dam = damroll(10, 10) + (rlev * 3 / ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 3));
2528 monst_bolt_monst(m_idx, y, x, GF_WATER,
2529 dam, MS_BOLT_WATER, learnable);
2540 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆËâÎϤÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2542 msg_format("%^s casts a mana bolt at %s.", m_name, t_name);
2552 dam = randint1(rlev * 7 / 2) + 50;
2553 monst_bolt_monst(m_idx, y, x, GF_MANA,
2554 dam, MS_BOLT_MANA, learnable);
2565 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥×¥é¥º¥Þ¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2567 msg_format("%^s casts a plasma bolt at %s.", m_name, t_name);
2577 dam = 10 + damroll(8, 7) + (rlev * 3 / ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 3));
2578 monst_bolt_monst(m_idx, y, x, GF_PLASMA,
2579 dam, MS_BOLT_PLASMA, learnable);
2590 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¶Ë´¨¤ÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2592 msg_format("%^s casts an ice bolt at %s.", m_name, t_name);
2602 dam = damroll(6, 6) + (rlev * 3 / ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 3));
2603 monst_bolt_monst(m_idx, y, x, GF_ICE,
2604 dam, MS_BOLT_ICE, learnable);
2615 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Þ¥¸¥Ã¥¯¡¦¥ß¥µ¥¤¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2617 msg_format("%^s casts a magic missile at %s.", m_name, t_name);
2627 dam = damroll(2, 6) + (rlev / 3);
2628 monst_bolt_monst(m_idx, y, x, GF_MISSILE,
2629 dam, MS_MAGIC_MISSILE, learnable);
2640 msg_format("%^s¤¬¶²¤í¤·¤²¤Ê¸¸³Ð¤òºî¤ê½Ð¤·¤¿¡£", m_name, t_name);
2642 msg_format("%^s casts a fearful illusion in front of %s.", m_name, t_name);
2652 if (tr_ptr->flags3 & RF3_NO_FEAR)
2655 if (see_t) msg_format("%^s¤Ï¶²Éݤò´¶¤¸¤Ê¤¤¡£", t_name);
2657 if (see_t) msg_format("%^s refuses to be frightened.", t_name);
2661 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2664 if (see_t) msg_format("%^s¤Ï¶²Éݤò´¶¤¸¤Ê¤¤¡£", t_name);
2666 if (see_t) msg_format("%^s refuses to be frightened.", t_name);
2672 if (!t_ptr->monfear) fear = TRUE;
2674 t_ptr->monfear += randint0(4) + 4;
2688 msg_format("%s¤Ï¼öʸ¤ò¾§¤¨¤Æ%s¤ÎÌܤò¾Æ¤ÉÕ¤«¤»¤¿¡£", m_name, t_name);
2690 msg_format("%^s casts a spell, burning %s%s eyes.", m_name, t_name,
2691 (streq(t_name, "it") ? "s" : "'s"));
2701 /* Simulate blindness with confusion */
2702 if (tr_ptr->flags3 & RF3_NO_CONF)
2705 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2707 if (see_t) msg_format("%^s is unaffected.", t_name);
2711 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2714 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2716 if (see_t) msg_format("%^s is unaffected.", t_name);
2723 if (see_t) msg_format("%^s¤ÏÌܤ¬¸«¤¨¤Ê¤¯¤Ê¤Ã¤¿¡ª ", t_name);
2725 if (see_t) msg_format("%^s is blinded!", t_name);
2729 t_ptr->confused += 12 + (byte)randint0(4);
2743 msg_format("%^s¤¬%s¤ÎÁ°¤Ë¸¸ÏÇŪ¤Ê¸¸¤ò¤Ä¤¯¤ê½Ð¤·¤¿¡£", m_name, t_name);
2745 msg_format("%^s casts a mesmerizing illusion in front of %s.", m_name, t_name);
2755 if (tr_ptr->flags3 & RF3_NO_CONF)
2758 if (see_t) msg_format("%^s¤ÏÏǤ蘆¤ì¤Ê¤«¤Ã¤¿¡£", t_name);
2760 if (see_t) msg_format("%^s disbelieves the feeble spell.", t_name);
2764 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2767 if (see_t) msg_format("%^s¤ÏÏǤ蘆¤ì¤Ê¤«¤Ã¤¿¡£", t_name);
2769 if (see_t) msg_format("%^s disbelieves the feeble spell.", t_name);
2776 if (see_t) msg_format("%^s¤Ïº®Í𤷤¿¤è¤¦¤À¡£", t_name);
2778 if (see_t) msg_format("%^s seems confused.", t_name);
2782 t_ptr->confused += 12 + (byte)randint0(4);
2796 msg_format("%s¤¬%s¤Î¶ÚÆù¤«¤éÎϤòµÛ¤¤¤È¤Ã¤¿¡£", m_name, t_name);
2798 msg_format("%^s drains power from %s%s muscles.", m_name, t_name,
2799 (streq(t_name, "it") ? "s" : "'s"));
2809 if (tr_ptr->flags1 & RF1_UNIQUE)
2812 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2814 if (see_t) msg_format("%^s is unaffected.", t_name);
2818 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2821 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2823 if (see_t) msg_format("%^s is unaffected.", t_name);
2832 if (see_t) msg_format("%s¤ÎÆ°¤¤¬ÃÙ¤¯¤Ê¤Ã¤¿¡£", t_name);
2834 if (see_t) msg_format("%^s starts moving slower.", t_name);
2838 t_ptr->slow = MIN(200, t_ptr->slow + 50);
2852 msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤È¸«¤Ä¤á¤¿¡£", m_name, t_name);
2854 msg_format("%^s stares intently at %s.", m_name, t_name);
2864 if ((tr_ptr->flags1 & RF1_UNIQUE) ||
2865 (tr_ptr->flags3 & RF3_NO_STUN))
2868 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2870 if (see_t) msg_format("%^s is unaffected.", t_name);
2874 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2877 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2879 if (see_t) msg_format("%^s is unaffected.", t_name);
2886 if (see_t) msg_format("%^s¤ÏËãá㤷¤¿¡ª", t_name);
2888 if (see_t) msg_format("%^s is paralyzed!", t_name);
2892 t_ptr->stunned += randint1(4) + 4;
2907 msg_format("%^s¤¬¼«Ê¬¤ÎÂΤËÇ°¤òÁ÷¤Ã¤¿¡£", m_name, m_poss);
2909 msg_format("%^s concentrates on %s body.", m_name, m_poss);
2919 /* Allow quick speed increases to base+10 */
2923 if (see_m) msg_format("%^s¤ÎÆ°¤¤¬Â®¤¯¤Ê¤Ã¤¿¡£", m_name);
2925 if (see_m) msg_format("%^s starts moving faster.", m_name);
2929 m_ptr->fast = MIN(200, m_ptr->fast + 100);
2930 if (p_ptr->riding == m_idx) p_ptr->update |= PU_BONUS;
2940 msg_format("%^s¤¬%s¤Ë<ÇËÌǤμê>¤òÊü¤Ã¤¿¡ª", m_name, t_name);
2942 msg_format("%^s invokes the Hand of Doom upon %s!", m_name, t_name);
2952 if ((tr_ptr->flags1 & RF1_UNIQUE) || (tr_ptr->flags3 & RF3_RES_ALL))
2954 /* Memorize a flag */
2955 if (tr_ptr->flags3 & (RF3_RES_ALL))
2957 tr_ptr->r_flags3 |= (RF3_RES_ALL);
2960 if (see_both) msg_format("¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡ª", t_name);
2962 if (see_both) msg_format("^%s is unaffected!", t_name);
2968 if ((r_ptr->level + randint1(20)) >
2969 (tr_ptr->level + 10 + randint1(20)))
2971 t_ptr->hp = t_ptr->hp -
2972 (((s32b)((40 + randint1(20)) * t_ptr->hp)) / 100);
2974 if (t_ptr->hp < 1) t_ptr->hp = 1;
2979 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
2981 if (see_both) msg_format("%^s resists!", t_name);
2998 msg_format("%^s¤Ï¼«Ê¬¤Î½ý¤ËÇ°¤ò½¸Ã椷¤¿¡£", m_name);
3000 msg_format("%^s concentrates on %s wounds.", m_name, m_poss);
3011 m_ptr->hp += (rlev * 6);
3014 if (m_ptr->hp >= m_ptr->maxhp)
3017 m_ptr->hp = m_ptr->maxhp;
3024 msg_format("%^s¤Ï´°Á´¤Ë¼£¤Ã¤¿¡ª", m_name);
3026 msg_format("%^s looks completely healed!", m_name);
3037 /* Partially healed */
3043 msg_format("%^s¤ÏÂÎÎϤò²óÉü¤·¤¿¤è¤¦¤À¡£", m_name);
3045 msg_format("%^s looks healthier.", m_name);
3055 /* Redraw (later) if needed */
3056 if (p_ptr->health_who == m_idx) p_ptr->redraw |= (PR_HEALTH);
3057 if (p_ptr->riding == m_idx) p_ptr->redraw |= (PR_UHEALTH);
3067 if (see_m) msg_format("%^s¤Ïͦµ¤¤ò¼è¤êÌᤷ¤¿¡£", m_name);
3069 if (see_m) msg_format("%^s recovers %s courage.", m_name, m_poss);
3084 msg_format("%s¤Ï̵½ý¤Îµå¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name);
3086 msg_format("%^s casts a Globe of Invulnerability.", m_name);
3096 if (!m_ptr->invulner) m_ptr->invulner = randint1(4) + 4;
3098 if (p_ptr->health_who == m_idx) p_ptr->redraw |= (PR_HEALTH);
3099 if (p_ptr->riding == m_idx) p_ptr->redraw |= (PR_UHEALTH);
3107 msg_format("%^s¤¬½Ö»þ¤Ë¾Ã¤¨¤¿¡£", m_name);
3109 msg_format("%^s blinks away.", m_name);
3114 teleport_away(m_idx, 10, FALSE);
3123 msg_format("%^s¤¬¥Æ¥ì¥Ý¡¼¥È¤·¤¿¡£", m_name);
3125 msg_format("%^s teleports away.", m_name);
3129 teleport_away(m_idx, MAX_SIGHT * 2 + 5, FALSE);
3131 if (los(py, px, m_ptr->fy, m_ptr->fx) && !world_monster && see_m)
3133 for (i = INVEN_RARM; i < INVEN_TOTAL; i++)
3135 u32b flgs[TR_FLAG_SIZE];
3136 object_type *o_ptr = &inventory[i];
3138 if (cursed_p(o_ptr)) continue;
3140 object_flags(o_ptr, flgs);
3142 if((have_flag(flgs, TR_TELEPORT)) || (p_ptr->muta1 & MUT1_VTELEPORT) || (p_ptr->pclass == CLASS_IMITATOR))
3145 cptr msg = "¤Ä¤¤¤Æ¤¤¤¤Þ¤¹¤«¡©";
3147 cptr msg = "Do you follow it? ";
3150 if(get_check_strict(msg, CHECK_OKAY_CANCEL))
3154 teleport_player(200);
3156 msg_print("¼ºÇÔ¡ª");
3158 msg_print("Failed!");
3161 else teleport_player_to(m_ptr->fy, m_ptr->fx, TRUE);
3162 p_ptr->energy_need = ENERGY_NEED();
3174 if(m_ptr->r_idx = MON_DIO) who == 1;
3175 else if(m_ptr->r_idx = MON_WONG) who == 3;
3177 if(!process_the_world(randint1(2)+2, who, los(py, px, m_ptr->fy, m_ptr->fx))) return (FALSE);
3183 if (p_ptr->inside_arena || p_ptr->inside_battle) return FALSE;
3185 switch(m_ptr->r_idx)
3188 for (k = 0; k < 6; k++)
3190 summon_specific(m_idx, m_ptr->fy, m_ptr->fx, rlev, SUMMON_BIZARRE1, PM_ALLOW_GROUP);
3195 if (r_ptr->d_char == 'B')
3202 msg_format("%^s¤ÏÆÍÁ³µÞ¾å¾º¤·¤Æ»ë³¦¤«¤é¾Ã¤¨¤¿!", m_name);
3204 msg_format("%^s suddenly go out of your sight!", m_name);
3207 teleport_away(m_idx, 10, FALSE);
3208 p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
3212 /* Not implemented */
3218 /* Something is wrong */
3227 /* Not implemented */
3237 msg_format("%^s¤Ï%s¤ò¥Æ¥ì¥Ý¡¼¥È¤µ¤»¤¿¡£", m_name, t_name);
3239 msg_format("%^s teleports %s away.", m_name, t_name);
3250 bool resists_tele = FALSE;
3252 if (tr_ptr->flags3 & RF3_RES_TELE)
3254 if ((tr_ptr->flags1 & RF1_UNIQUE) || (tr_ptr->flags3 & (RF3_RES_ALL)))
3258 tr_ptr->r_flags3 |= RF3_RES_TELE;
3260 msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
3262 msg_format("%^s is unaffected!", t_name);
3267 resists_tele = TRUE;
3269 else if (tr_ptr->level > randint1(100))
3273 tr_ptr->r_flags3 |= RF3_RES_TELE;
3275 msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
3277 msg_format("%^s resists!", t_name);
3282 resists_tele = TRUE;
3288 if (t_idx == p_ptr->riding) teleport_player(MAX_SIGHT * 2 + 5);
3289 else teleport_away(t_idx, MAX_SIGHT * 2 + 5, FALSE);
3294 /* RF6_TELE_LEVEL */
3296 /* Not implemented */
3306 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¸÷¤Î·õ¤òÊü¤Ã¤¿¡£", m_name, t_name);
3308 msg_format("%^s throw a Psycho-spear at %s.", m_name, t_name);
3318 dam = (r_ptr->flags2 & RF2_POWERFUL) ? (randint1(rlev * 2) + 180) : (randint1(rlev * 3 / 2) + 120);
3319 monst_beam_monst(m_idx, y, x, GF_PSY_SPEAR,
3320 dam, MS_PSY_SPEAR, learnable);
3330 msg_format("%^s¤¬°Å°Ç¤ÎÃæ¤Ç¼ê¤ò¿¶¤Ã¤¿¡£", m_name);
3332 msg_format("%^s gestures in shadow.", m_name);
3339 msg_format("%^s¤Ï°Å°Ç¤ËÊñ¤Þ¤ì¤¿¡£", t_name);
3341 msg_format("%^s is surrounded by darkness.", t_name);
3352 (void)project(m_idx, 3, y, x, 0, GF_DARK_WEAK, PROJECT_GRID | PROJECT_KILL | PROJECT_MONSTER, MS_DARKNESS);
3366 msg_format("%^s¤¬¼öʸ¤ò¾§¤¨¤Æ¼Ù°¤ËÈù¾Ð¤ó¤À¡£", m_name);
3368 msg_format("%^s casts a spell and cackles evilly.", m_name);
3374 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
3376 msg_format("%^s mumbles.", m_name);
3381 trap_creation(y, x);
3387 /* Not implemented */
3390 /* RF6_RAISE_DEAD */
3398 if (blind) msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
3400 if (blind) msg_format("%^s mumbles.", m_name);
3404 else msg_format("%^s¤¬»à¼ÔÉü³è¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name);
3406 else msg_format("%^s casts a spell to revive corpses.", m_name);
3414 animate_dead(m_idx, m_ptr->fy, m_ptr->fx);
3417 /* RF6_SUMMON_KIN */
3425 if (m_ptr->r_idx == MON_ROLENTO)
3428 msg_format("%^s¤Ï¼êÜØÃƤò¤Ð¤é¤Þ¤¤¤¿¡£",
3431 msg_format("%^s throws some hand grenades.",
3435 else if (m_ptr->r_idx == MON_SERPENT || m_ptr->r_idx == MON_ZOMBI_SERPENT)
3438 msg_format("%^s¤¬¥À¥ó¥¸¥ç¥ó¤Î¼ç¤ò¾¤´¤·¤¿¡£", m_name);
3440 msg_format("%^s magically summons guardians of dungeons.", m_name);
3446 msg_format("%s¤¬ËâË¡¤Ç%s¤ò¾¤´¤·¤¿¡£", m_name,
3447 ((r_ptr->flags1 & RF1_UNIQUE) ? "¼ê²¼" : "Ãç´Ö"));
3449 msg_format("%^s magically summons %s %s.", m_name, m_poss,
3450 ((r_ptr->flags1 & RF1_UNIQUE) ? "minions" : "kin"));
3461 if(m_ptr->r_idx == MON_ROLENTO)
3463 int num = 1 + randint1(3);
3464 for (k = 0; k < num; k++)
3466 count += summon_named_creature(m_idx, y, x, MON_SHURYUUDAN, p_mode);
3469 else if(m_ptr->r_idx == MON_THORONDOR ||
3470 m_ptr->r_idx == MON_GWAIHIR ||
3471 m_ptr->r_idx == MON_MENELDOR)
3473 int num = 4 + randint1(3);
3474 for (k = 0; k < num; k++)
3476 count += summon_specific(m_idx, y, x, rlev, SUMMON_EAGLES, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | p_mode));
3479 else if(m_ptr->r_idx == MON_LOUSY)
3481 int num = 2 + randint1(3);
3482 for (k = 0; k < num; k++)
3484 count += summon_specific(m_idx, y, x, rlev, SUMMON_LOUSE, (PM_ALLOW_GROUP | p_mode));
3487 else if(m_ptr->r_idx == MON_BULLGATES)
3489 int num = 2 + randint1(3);
3490 for (k = 0; k < num; k++)
3492 count += summon_named_creature(m_idx, y, x, 921, p_mode);
3495 else if (m_ptr->r_idx == MON_CALDARM)
3497 int num = randint1(3);
3498 for (k = 0; k < num; k++)
3500 count += summon_named_creature(m_idx, y, x, 930, p_mode);
3503 else if (m_ptr->r_idx == MON_SERPENT || m_ptr->r_idx == MON_ZOMBI_SERPENT)
3505 int num = 2 + randint1(3);
3506 for (k = 0; k < num; k++)
3508 count += summon_specific(m_idx, y, x, rlev, SUMMON_GUARDIANS, (PM_ALLOW_GROUP | p_mode | PM_ALLOW_UNIQUE));
3513 summon_kin_type = r_ptr->d_char;
3515 for (k = 0; k < 4; k++)
3517 count += summon_specific(m_idx, y, x, rlev, SUMMON_KIN, (PM_ALLOW_GROUP | p_mode));
3521 if (known && !see_t && count)
3537 msg_format("%^s¤¬¥µ¥¤¥Ð¡¼¥Ç¡¼¥â¥ó¤ò¾¤´¤·¤¿¡ª", m_name);
3539 msg_format("%^s magically summons Cyberdemons!", m_name);
3549 if (is_friendly(m_ptr))
3551 count += summon_specific(m_idx, y, x, rlev, SUMMON_CYBER, (PM_ALLOW_GROUP | p_mode));
3555 count += summon_cyber(m_idx, y, x);
3558 if (known && !see_t && count)
3574 msg_format("%^s¤¬ËâË¡¤ÇÃç´Ö¤ò¾¤´¤·¤¿¡ª", m_name);
3576 msg_format("%^s magically summons help!", m_name);
3586 count += summon_specific(m_idx, y, x, rlev, 0, (p_mode | u_mode));
3588 if (known && !see_t && count)
3595 /* RF6_S_MONSTERS */
3604 msg_format("%^s¤¬ËâË¡¤Ç¥â¥ó¥¹¥¿¡¼¤ò¾¤´¤·¤¿¡ª", m_name);
3606 msg_format("%^s magically summons monsters!", m_name);
3616 for (k = 0; k < s_num_6; k++)
3618 count += summon_specific(m_idx, y, x, rlev, 0, (PM_ALLOW_GROUP | p_mode | u_mode));
3621 if (known && !see_t && count)
3637 msg_format("%^s¤¬ËâË¡¤Ç¥¢¥ê¤ò¾¤´¤·¤¿¡£", m_name);
3639 msg_format("%^s magically summons ants.", m_name);
3649 for (k = 0; k < s_num_6; k++)
3651 count += summon_specific(m_idx, y, x, rlev, SUMMON_ANT, (PM_ALLOW_GROUP | p_mode));
3654 if (known && !see_t && count)
3670 msg_format("%^s¤¬ËâË¡¤Ç¥¯¥â¤ò¾¤´¤·¤¿¡£", m_name);
3672 msg_format("%^s magically summons spiders.", m_name);
3682 for (k = 0; k < s_num_6; k++)
3684 count += summon_specific(m_idx, y, x, rlev, SUMMON_SPIDER, (PM_ALLOW_GROUP | p_mode));
3687 if (known && !see_t && count)
3703 msg_format("%^s¤¬ËâË¡¤Ç¥Ï¥¦¥ó¥É¤ò¾¤´¤·¤¿¡£", m_name);
3705 msg_format("%^s magically summons hounds.", m_name);
3715 for (k = 0; k < s_num_4; k++)
3717 count += summon_specific(m_idx, y, x, rlev, SUMMON_HOUND, (PM_ALLOW_GROUP | p_mode));
3720 if (known && !see_t && count)
3736 msg_format("%^s¤¬ËâË¡¤Ç¥Ò¥É¥é¤ò¾¤´¤·¤¿¡£", m_name);
3738 msg_format("%^s magically summons hydras.", m_name);
3748 for (k = 0; k < s_num_4; k++)
3750 count += summon_specific(m_idx, y, x, rlev, SUMMON_HYDRA, (PM_ALLOW_GROUP | p_mode));
3753 if (known && !see_t && count)
3769 msg_format("%^s¤¬ËâË¡¤ÇÅ·»È¤ò¾¤´¤·¤¿¡ª", m_name);
3771 msg_format("%^s magically summons an angel!", m_name);
3784 if ((r_ptr->flags1 & RF1_UNIQUE) && !easy_band)
3786 num += r_ptr->level/40;
3789 for (k = 0; k < num; k++)
3791 count += summon_specific(m_idx, y, x, rlev, SUMMON_ANGEL, (PM_ALLOW_GROUP | p_mode));
3795 if (known && !see_t && count)
3811 msg_format("%^s¤¬ËâË¡¤Çº®Æ٤εÜÄ¤é¥Ç¡¼¥â¥ó¤ò¾¤´¤·¤¿¡ª", m_name);
3813 msg_format("%^s magically summons a demon from the Courts of Chaos!", m_name);
3823 for (k = 0; k < 1; k++)
3825 count += summon_specific(m_idx, y, x, rlev, SUMMON_DEMON, (PM_ALLOW_GROUP | p_mode));
3828 if (known && !see_t && count)
3844 msg_format("%s¤¬ËâË¡¤Ç¥¢¥ó¥Ç¥Ã¥É¤ò¾¤´¤·¤¿¡£", m_name);
3846 msg_format("%^s magically summons undead.", m_name);
3856 for (k = 0; k < 1; k++)
3858 count += summon_specific(m_idx, y, x, rlev, SUMMON_UNDEAD, (PM_ALLOW_GROUP | p_mode));
3861 if (known && !see_t && count)
3877 msg_format("%^s¤¬ËâË¡¤Ç¥É¥é¥´¥ó¤ò¾¤´¤·¤¿¡ª", m_name);
3879 msg_format("%^s magically summons a dragon!", m_name);
3889 for (k = 0; k < 1; k++)
3891 count += summon_specific(m_idx, y, x, rlev, SUMMON_DRAGON, (PM_ALLOW_GROUP | p_mode));
3894 if (known && !see_t && count)
3901 /* RF6_S_HI_UNDEAD */
3910 msg_format("%s¤¬ËâË¡¤Ç¥¢¥ó¥Ç¥Ã¥É¤ò¾¤´¤·¤¿¡£", m_name);
3912 msg_format("%^s magically summons undead.", m_name);
3922 for (k = 0; k < s_num_6; k++)
3924 count += summon_specific(m_idx, y, x, rlev, SUMMON_HI_UNDEAD, (PM_ALLOW_GROUP | p_mode | u_mode));
3927 if (known && !see_t && count)
3934 /* RF6_S_HI_DRAGON */
3943 msg_format("%^s¤¬ËâË¡¤Ç¸ÅÂå¥É¥é¥´¥ó¤ò¾¤´¤·¤¿¡ª", m_name);
3945 msg_format("%^s magically summons ancient dragons!", m_name);
3955 for (k = 0; k < s_num_4; k++)
3957 count += summon_specific(m_idx, y, x, rlev, SUMMON_HI_DRAGON, (PM_ALLOW_GROUP | p_mode | u_mode));
3960 if (known && !see_t && count)
3967 /* RF6_S_AMBERITES */
3976 msg_format("%^s¤¬¥¢¥ó¥Ð¡¼¤Î²¦Â²¤ò¾¤´¤·¤¿¡ª", m_name);
3978 msg_format("%^s magically summons Lords of Amber!", m_name);
3988 for (k = 0; k < s_num_4; k++)
3990 count += summon_specific(m_idx, y, x, rlev, SUMMON_AMBERITES, (PM_ALLOW_GROUP | p_mode | PM_ALLOW_UNIQUE));
3993 if (known && !see_t && count)
4009 msg_format("%^s¤¬ËâË¡¤ÇÆÃÊ̤ʶ¯Å¨¤ò¾¤´¤·¤¿¡ª", m_name);
4011 msg_format("%^s magically summons special opponents!", m_name);
4021 for (k = 0; k < s_num_4; k++)
4023 count += summon_specific(m_idx, y, x, rlev, SUMMON_UNIQUE, (PM_ALLOW_GROUP | p_mode | PM_ALLOW_UNIQUE));
4026 if (known && !see_t && count)
4042 msg_format("%^s¤Ï¶²Éݤ·¤Æƨ¤²½Ð¤·¤¿¡ª", t_name);
4044 msg_format("%^s flees in terror!", t_name);
4049 if (see_m && maneable && !world_monster && !p_ptr->blind && (p_ptr->pclass == CLASS_IMITATOR))
4051 if (thrown_spell != 167)
4053 if (p_ptr->mane_num == MAX_MANE)
4056 for (i = 0; i < p_ptr->mane_num - 1; i++)
4058 p_ptr->mane_spell[i] = p_ptr->mane_spell[i+1];
4059 p_ptr->mane_dam[i] = p_ptr->mane_dam[i+1];
4062 p_ptr->mane_spell[p_ptr->mane_num] = thrown_spell - 96;
4063 p_ptr->mane_dam[p_ptr->mane_num] = dam;
4067 p_ptr->redraw |= (PR_MANE);
4071 /* Remember what the monster did, if we saw it */
4075 if (thrown_spell < 32*4)
4077 r_ptr->r_flags4 |= (1L << (thrown_spell - 32*3));
4078 if (r_ptr->r_cast_spell < MAX_UCHAR) r_ptr->r_cast_spell++;
4082 else if (thrown_spell < 32*5)
4084 r_ptr->r_flags5 |= (1L << (thrown_spell - 32*4));
4085 if (r_ptr->r_cast_spell < MAX_UCHAR) r_ptr->r_cast_spell++;
4089 else if (thrown_spell < 32*6)
4091 r_ptr->r_flags6 |= (1L << (thrown_spell - 32*5));
4092 if (r_ptr->r_cast_spell < MAX_UCHAR) r_ptr->r_cast_spell++;
4096 /* Always take note of monsters that kill you */
4097 if (p_ptr->is_dead && (r_ptr->r_deaths < MAX_SHORT) && !p_ptr->inside_arena)
4102 /* A spell was cast */