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 && player_bold(y, x))
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 (player_bold(y, x))
134 if (friend && hityou)
140 * Get the actual center point of ball spells (originally from TOband)
142 static void get_project_point(int sy, int sx, int *ty, int *tx, int flg)
147 path_n = project_path(path_g, MAX_RANGE, sy, sx, *ty, *tx, flg);
151 /* Use final point of projection */
152 *ty = GRID_Y(path_g[path_n - 1]);
153 *tx = GRID_X(path_g[path_n - 1]);
163 * Monster tries to 'cast a spell' (or breath, etc)
164 * at another monster.
166 * The player is only disturbed if able to be affected by the spell.
168 bool monst_spell_monst(int m_idx)
172 int thrown_spell, count = 0;
177 u32b p_mode = 0L, u_mode = 0L;
178 int s_num_6 = (easy_band ? 2 : 6);
179 int s_num_4 = (easy_band ? 1 : 4);
181 byte spell[96], num = 0;
190 monster_type *m_ptr = &m_list[m_idx];
191 monster_type *t_ptr = NULL;
193 monster_race *r_ptr = &r_info[m_ptr->r_idx];
194 monster_race *tr_ptr = NULL;
198 bool wake_up = FALSE;
201 bool blind = (p_ptr->blind ? TRUE : FALSE);
203 bool see_m = m_ptr->ml;
204 bool maneable = player_has_los_bold(m_ptr->fy, m_ptr->fx);
205 bool learnable = (see_m && maneable && !world_monster);
211 bool pet = is_pet(m_ptr);
213 bool in_no_magic_dungeon = (d_info[dungeon_type].flags1 & DF1_NO_MAGIC) && dun_level
214 && (!p_ptr->inside_quest || is_fixed_quest_idx(p_ptr->inside_quest));
216 /* Prepare flags for summoning */
217 if (pet) p_mode |= PM_FORCE_PET;
218 if (!pet) u_mode |= PM_ALLOW_UNIQUE;
220 /* Cannot cast spells when confused */
221 if (m_ptr->confused) return (FALSE);
223 /* Extract the racial spell flags */
228 /* Target is given for pet? */
229 if (pet_t_m_idx && pet)
232 t_ptr = &m_list[t_idx];
234 /* Cancel if not projectable (for now) */
235 if (!projectable(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx))
241 /* Is there counter attack target? */
242 if (!t_idx && m_ptr->target_y)
244 t_idx = cave[m_ptr->target_y][m_ptr->target_x].m_idx;
248 t_ptr = &m_list[t_idx];
250 /* Cancel if neither enemy nor a given target */
251 if (t_idx != pet_t_m_idx &&
252 !are_enemies(m_ptr, t_ptr))
257 /* Allow only summoning etc.. if not projectable */
258 else if (!projectable(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx))
260 f4 &= (RF4_INDIRECT_MASK);
261 f5 &= (RF5_INDIRECT_MASK);
262 f6 &= (RF6_INDIRECT_MASK);
267 /* Look for enemies normally */
270 bool success = FALSE;
272 if (p_ptr->inside_battle)
274 start = randint1(m_max-1) + m_max;
275 if (randint0(2)) plus = -1;
277 else start = m_max + 1;
279 /* Scan thru all monsters */
280 for (i = start; ((i < start + m_max) && (i > start - m_max)); i += plus)
282 int dummy = (i % m_max);
283 if (!dummy) continue;
286 t_ptr = &m_list[t_idx];
288 /* Skip dead monsters */
289 if (!t_ptr->r_idx) continue;
291 /* Monster must be 'an enemy' */
292 if (!are_enemies(m_ptr, t_ptr)) continue;
294 /* Monster must be projectable */
295 if (!projectable(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx)) continue;
303 if (!success) return FALSE;
307 /* OK -- we've got a target */
310 tr_ptr = &r_info[t_ptr->r_idx];
312 /* Forget old counter attack target */
315 /* Extract the monster level */
316 rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1);
318 if (in_no_magic_dungeon && !(r_ptr->flags2 & RF2_STUPID))
320 f4 &= (RF4_NOMAGIC_MASK);
321 f5 &= (RF5_NOMAGIC_MASK);
322 f6 &= (RF6_NOMAGIC_MASK);
325 if (p_ptr->inside_arena || p_ptr->inside_battle)
327 f4 &= ~(RF4_SUMMON_MASK);
328 f5 &= ~(RF5_SUMMON_MASK);
329 f6 &= ~(RF6_SUMMON_MASK);
331 if (p_ptr->inside_battle && !one_in_(3))
336 if (m_idx == p_ptr->riding)
338 f4 &= ~(RF4_RIDING_MASK);
339 f5 &= ~(RF5_RIDING_MASK);
340 f6 &= ~(RF6_RIDING_MASK);
346 f6 &= ~(RF6_DARKNESS | RF6_TRAPS);
348 if (!(p_ptr->pet_extra_flags & PF_TELEPORT))
350 f6 &= ~(RF6_BLINK | RF6_TPORT | RF6_TELE_TO | RF6_TELE_AWAY | RF6_TELE_LEVEL);
353 if (!(p_ptr->pet_extra_flags & PF_ATTACK_SPELL))
355 f4 &= ~(RF4_ATTACK_MASK);
356 f5 &= ~(RF5_ATTACK_MASK);
357 f6 &= ~(RF6_ATTACK_MASK);
360 if (!(p_ptr->pet_extra_flags & PF_SUMMON_SPELL))
362 f4 &= ~(RF4_SUMMON_MASK);
363 f5 &= ~(RF5_SUMMON_MASK);
364 f6 &= ~(RF6_SUMMON_MASK);
367 /* Prevent collateral damage */
368 if (!(p_ptr->pet_extra_flags & PF_BALL_SPELL) && (m_idx != p_ptr->riding))
370 if ((f4 & (RF4_BALL_MASK & ~(RF4_ROCKET))) ||
371 (f5 & RF5_BALL_MASK) ||
372 (f6 & RF6_BALL_MASK))
378 get_project_point(m_ptr->fy, m_ptr->fx, &real_y, &real_x, 0L);
379 dist = distance(real_y, real_x, py, px);
381 if (los(real_y, real_x, py, px))
385 f4 &= ~(RF4_BALL_MASK & ~(RF4_ROCKET));
386 f5 &= ~(RF5_BALL_MASK);
387 f6 &= ~(RF6_BALL_MASK);
391 f4 &= ~(RF4_BIG_BALL_MASK);
392 f5 &= ~(RF5_BIG_BALL_MASK);
393 f6 &= ~(RF6_BIG_BALL_MASK);
403 get_project_point(m_ptr->fy, m_ptr->fx, &real_y, &real_x, PROJECT_STOP);
404 if (los(real_y, real_x, py, px) && (distance(real_y, real_x, py, px) <= 2))
408 if (((f4 & RF4_BEAM_MASK) ||
409 (f5 & RF5_BEAM_MASK) ||
410 (f6 & RF6_BEAM_MASK)) &&
411 !direct_beam(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, m_ptr))
413 f4 &= ~(RF4_BEAM_MASK);
414 f5 &= ~(RF5_BEAM_MASK);
415 f6 &= ~(RF6_BEAM_MASK);
418 if ((f4 & RF4_BREATH_MASK) ||
419 (f5 & RF5_BREATH_MASK) ||
420 (f6 & RF6_BREATH_MASK))
422 /* Expected breath radius */
423 int rad = (r_ptr->flags2 & RF2_POWERFUL) ? 3 : 2;
425 if (!breath_direct(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, rad, FALSE, TRUE))
427 f4 &= ~(RF4_BREATH_MASK);
428 f5 &= ~(RF5_BREATH_MASK);
429 f6 &= ~(RF6_BREATH_MASK);
431 else if ((f4 & RF4_BR_DISI) &&
432 !breath_direct(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, rad, TRUE, TRUE))
434 f4 &= ~(RF4_BR_DISI);
439 /* Special moves restriction */
440 if (f6 & RF6_SPECIAL)
442 if (r_ptr->d_char == 'B')
444 if (!(p_ptr->pet_extra_flags & PF_TELEPORT)) f6 &= ~(RF6_SPECIAL);
446 else f6 &= ~(RF6_SPECIAL);
450 /* Remove some spells if necessary */
452 /* Check for a clean bolt shot */
453 if (((f4 & RF4_BOLT_MASK) ||
454 (f5 & RF5_BOLT_MASK) ||
455 (f6 & RF6_BOLT_MASK)) &&
456 !(r_ptr->flags2 & RF2_STUPID) &&
457 !clean_shot(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, pet))
459 f4 &= ~(RF4_BOLT_MASK);
460 f5 &= ~(RF5_BOLT_MASK);
461 f6 &= ~(RF6_BOLT_MASK);
464 /* Check for a possible summon */
465 if (((f4 & RF4_SUMMON_MASK) ||
466 (f5 & RF5_SUMMON_MASK) ||
467 (f6 & RF6_SUMMON_MASK)) &&
468 !(r_ptr->flags2 & RF2_STUPID) &&
469 !(summon_possible(t_ptr->fy, t_ptr->fx)))
471 /* Remove summoning spells */
472 f4 &= ~(RF4_SUMMON_MASK);
473 f5 &= ~(RF5_SUMMON_MASK);
474 f6 &= ~(RF6_SUMMON_MASK);
477 /* Hack -- allow "desperate" spells */
478 if ((r_ptr->flags2 & RF2_SMART) &&
479 (m_ptr->hp < m_ptr->maxhp / 10) &&
480 (randint0(100) < 50))
482 /* Require intelligent spells */
483 f4 &= (RF4_INT_MASK);
484 f5 &= (RF5_INT_MASK);
485 f6 &= (RF6_INT_MASK);
489 if (!f4 && !f5 && !f6) return FALSE;
491 /* Extract the "inate" spells */
492 for (k = 0; k < 32; k++)
494 if (f4 & (1L << k)) spell[num++] = k + 32 * 3;
497 /* Extract the "normal" spells */
498 for (k = 0; k < 32; k++)
500 if (f5 & (1L << k)) spell[num++] = k + 32 * 4;
503 /* Extract the "bizarre" spells */
504 for (k = 0; k < 32; k++)
506 if (f6 & (1L << k)) spell[num++] = k + 32 * 5;
510 if (!num) return (FALSE);
512 /* Stop if player is dead or gone */
513 if (!p_ptr->playing || p_ptr->is_dead) return (FALSE);
515 /* Handle "leaving" */
516 if (p_ptr->leaving) return (FALSE);
518 /* Get the monster name (or "it") */
519 monster_desc(m_name, m_ptr, 0x00);
522 /* Get the monster possessive ("his"/"her"/"its") */
523 monster_desc(m_poss, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE);
526 /* Get the target's name (or "it") */
527 monster_desc(t_name, t_ptr, 0x00);
529 /* Choose a spell to cast */
530 thrown_spell = spell[randint0(num)];
533 see_either = (see_m || see_t);
534 see_both = (see_m && see_t);
536 /* Can the player be aware of this attack? */
537 known = (m_ptr->cdis <= MAX_SIGHT) || (t_ptr->cdis <= MAX_SIGHT);
539 if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(1, 0);
541 /* Check for spell failure (inate attacks never fail) */
542 if (!spell_is_inate(thrown_spell) && (in_no_magic_dungeon || (m_ptr->stunned && one_in_(2))))
547 msg_format("%^s¤Ï¼öʸ¤ò¾§¤¨¤è¤¦¤È¤·¤¿¤¬¼ºÇÔ¤·¤¿¡£", m_name);
549 msg_format("%^s tries to cast a spell, but fails.", m_name);
555 switch (thrown_spell)
564 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¶«¤ó¤À¡£", m_name, t_name);
566 msg_format("%^s shrieks at %s.", m_name, t_name);
600 msg_format("%^s¤¬²¿¤«¤ò¼Í¤Ã¤¿¡£", m_name);
602 msg_format("%^s shoots something.", m_name);
609 msg_format("%^s¤¬%s¤Ë¥í¥±¥Ã¥È¤òȯ¼Í¤·¤¿¡£", m_name, t_name);
611 msg_format("%^s fires a rocket at %s.", m_name, t_name);
622 dam = ((m_ptr->hp / 4) > 800 ? 800 : (m_ptr->hp / 4));
623 monst_breath_monst(m_idx, y, x, GF_ROCKET,
624 dam, 2, FALSE, MS_ROCKET, learnable);
637 msg_format("%^s¤¬´ñ̯¤Ê²»¤òȯ¤·¤¿¡£", m_name);
639 msg_format("%^s makes a strange noise.", m_name);
646 msg_format("%^s¤¬%s¤ËÌð¤òÊü¤Ã¤¿¡£", m_name, t_name);
648 msg_format("%^s fires an arrow at %s.", m_name, t_name);
661 dam = damroll(r_ptr->blow[0].d_dice, r_ptr->blow[0].d_side);
662 monst_bolt_monst(m_idx, y, x, GF_ARROW, dam, MS_SHOOT, learnable);
692 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
694 msg_format("%^s breathes.", m_name);
701 msg_format("%^s¤¬%s¤Ë»À¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
703 msg_format("%^s breathes acid at %s.", m_name, t_name);
716 dam = ((m_ptr->hp / 3) > 1600 ? 1600 : (m_ptr->hp / 3));
717 monst_breath_monst(m_idx, y, x, GF_ACID,
718 dam,0, TRUE, MS_BR_ACID, learnable);
733 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
735 msg_format("%^s breathes.", m_name);
742 msg_format("%^s¤¬%s¤Ë°ðºÊ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
744 msg_format("%^s breathes lightning at %s.", m_name, t_name);
757 dam = ((m_ptr->hp / 3) > 1600 ? 1600 : (m_ptr->hp / 3));
758 monst_breath_monst(m_idx, y, x, GF_ELEC,
759 dam,0, TRUE, MS_BR_ELEC, learnable);
774 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
776 msg_format("%^s breathes.", m_name);
783 msg_format("%^s¤¬%s¤Ë²Ð±ê¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
785 msg_format("%^s breathes fire at %s.", m_name, t_name);
798 dam = ((m_ptr->hp / 3) > 1600 ? 1600 : (m_ptr->hp / 3));
799 monst_breath_monst(m_idx, y, x, GF_FIRE,
800 dam,0, TRUE, MS_BR_FIRE, learnable);
815 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
817 msg_format("%^s breathes.", m_name);
824 msg_format("%^s¤¬%s¤ËÎ䵤¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
826 msg_format("%^s breathes frost at %s.", m_name, t_name);
839 dam = ((m_ptr->hp / 3) > 1600 ? 1600 : (m_ptr->hp / 3));
840 monst_breath_monst(m_idx, y, x, GF_COLD,
841 dam,0, TRUE, MS_BR_COLD, learnable);
855 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
857 msg_format("%^s breathes.", m_name);
864 msg_format("%^s¤¬%s¤Ë¥¬¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
866 msg_format("%^s breathes gas at %s.", m_name, t_name);
879 dam = ((m_ptr->hp / 3) > 800 ? 800 : (m_ptr->hp / 3));
880 monst_breath_monst(m_idx, y, x, GF_POIS,
881 dam,0, TRUE, MS_BR_POIS, learnable);
896 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
898 msg_format("%^s breathes.", m_name);
905 msg_format("%^s¤¬%s¤ËÃϹö¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
907 msg_format("%^s breathes nether at %s.", m_name, t_name);
920 dam = ((m_ptr->hp / 6) > 550 ? 550 : (m_ptr->hp / 6));
921 monst_breath_monst(m_idx, y, x, GF_NETHER,
922 dam,0, TRUE, MS_BR_NETHER, learnable);
937 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
939 msg_format("%^s breathes.", m_name);
946 msg_format("%^s¤¬%s¤ËÁ®¸÷¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
948 msg_format("%^s breathes light at %s.", m_name, t_name);
961 dam = ((m_ptr->hp / 6) > 400 ? 400 : (m_ptr->hp / 6));
962 monst_breath_monst(m_idx, y, x, GF_LITE,
963 dam,0, TRUE, MS_BR_LITE, learnable);
978 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
980 msg_format("%^s breathes.", m_name);
987 msg_format("%^s¤¬%s¤Ë°Å¹õ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
989 msg_format("%^s breathes darkness at %s.", m_name, t_name);
1002 dam = ((m_ptr->hp / 6) > 400 ? 400 : (m_ptr->hp / 6));
1003 monst_breath_monst(m_idx, y, x, GF_DARK,
1004 dam,0, TRUE, MS_BR_DARK, learnable);
1019 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1021 msg_format("%^s breathes.", m_name);
1028 msg_format("%^s¤¬%s¤Ëº®Íð¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1030 msg_format("%^s breathes confusion at %s.", m_name, t_name);
1040 sound(SOUND_BREATH);
1043 dam = ((m_ptr->hp / 6) > 450 ? 450 : (m_ptr->hp / 6));
1044 monst_breath_monst(m_idx, y, x, GF_CONFUSION,
1045 dam,0, TRUE, MS_BR_CONF, learnable);
1057 if (m_ptr->r_idx == MON_JAIAN)
1059 msg_format("¡Ö¥Ü¥©¥¨¡Á¡Á¡Á¡Á¡Á¡Á¡×");
1061 msg_format("'Booooeeeeee'");
1066 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1068 msg_format("%^s breathes.", m_name);
1075 msg_format("%^s¤¬%s¤Ë¹ì²»¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1077 msg_format("%^s breathes sound at %s.", m_name, t_name);
1087 sound(SOUND_BREATH);
1090 dam = ((m_ptr->hp / 6) > 450 ? 450 : (m_ptr->hp / 6));
1091 monst_breath_monst(m_idx, y, x, GF_SOUND,
1092 dam,0, TRUE, MS_BR_SOUND, learnable);
1107 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1109 msg_format("%^s breathes.", m_name);
1116 msg_format("%^s¤¬%s¤Ë¥«¥ª¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1118 msg_format("%^s breathes chaos at %s.", m_name, t_name);
1128 sound(SOUND_BREATH);
1131 dam = ((m_ptr->hp / 6) > 600 ? 600 : (m_ptr->hp / 6));
1132 monst_breath_monst(m_idx, y, x, GF_CHAOS,
1133 dam,0, TRUE, MS_BR_CHAOS, learnable);
1148 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1150 msg_format("%^s breathes.", m_name);
1157 msg_format("%^s¤¬%s¤ËÎô²½¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1159 msg_format("%^s breathes disenchantment at %s.", m_name, t_name);
1169 sound(SOUND_BREATH);
1172 dam = ((m_ptr->hp / 6) > 500 ? 500 : (m_ptr->hp / 6));
1173 monst_breath_monst(m_idx, y, x, GF_DISENCHANT,
1174 dam,0, TRUE, MS_BR_DISEN, learnable);
1189 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1191 msg_format("%^s breathes.", m_name);
1198 msg_format("%^s¤¬%s¤Ë°ø²Ìº®Íð¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1200 msg_format("%^s breathes nexus at %s.", m_name, t_name);
1210 sound(SOUND_BREATH);
1213 dam = ((m_ptr->hp / 3) > 250 ? 250 : (m_ptr->hp / 3));
1214 monst_breath_monst(m_idx, y, x, GF_NEXUS,
1215 dam,0, TRUE, MS_BR_NEXUS, learnable);
1230 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1232 msg_format("%^s breathes.", m_name);
1239 msg_format("%^s¤¬%s¤Ë»þ´ÖµÕž¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1241 msg_format("%^s breathes time at %s.", m_name, t_name);
1251 sound(SOUND_BREATH);
1254 dam = ((m_ptr->hp / 3) > 150 ? 150 : (m_ptr->hp / 3));
1255 monst_breath_monst(m_idx, y, x, GF_TIME,
1256 dam,0, TRUE, MS_BR_TIME, learnable);
1271 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1273 msg_format("%^s breathes.", m_name);
1280 msg_format("%^s¤¬%s¤ËÃÙÆߤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name);
1282 msg_format("%^s breathes inertia at %s.", m_name, t_name);
1292 sound(SOUND_BREATH);
1295 dam = ((m_ptr->hp / 6) > 200 ? 200 : (m_ptr->hp / 6));
1296 monst_breath_monst(m_idx, y, x, GF_INERTIA,
1297 dam,0, TRUE, MS_BR_INERTIA, learnable);
1312 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1314 msg_format("%^s breathes.", m_name);
1321 msg_format("%^s¤¬%s¤Ë½ÅÎϤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name);
1323 msg_format("%^s breathes gravity at %s.", m_name, t_name);
1333 sound(SOUND_BREATH);
1336 dam = ((m_ptr->hp / 3) > 200 ? 200 : (m_ptr->hp / 3));
1337 monst_breath_monst(m_idx, y, x, GF_GRAVITY,
1338 dam,0, TRUE, MS_BR_GRAVITY, learnable);
1350 if (m_ptr->r_idx == MON_BOTEI)
1352 msg_format("¡Ö¥ÜÄë¥Ó¥ë¥«¥Ã¥¿¡¼¡ª¡ª¡ª¡×");
1354 msg_format("'Boty-Build cutter!!!'");
1359 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1361 msg_format("%^s breathes.", m_name);
1368 msg_format("%^s¤¬%s¤ËÇËÊҤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name);
1370 msg_format("%^s breathes shards at %s.", m_name, t_name);
1380 sound(SOUND_BREATH);
1383 dam = ((m_ptr->hp / 6) > 500 ? 500 : (m_ptr->hp / 6));
1384 monst_breath_monst(m_idx, y, x, GF_SHARDS,
1385 dam,0, TRUE, MS_BR_SHARDS, learnable);
1400 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1402 msg_format("%^s breathes.", m_name);
1409 msg_format("%^s¤¬%s¤Ë¥×¥é¥º¥Þ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1411 msg_format("%^s breathes plasma at %s.", m_name, t_name);
1421 sound(SOUND_BREATH);
1424 dam = ((m_ptr->hp / 6) > 150 ? 150 : (m_ptr->hp / 6));
1425 monst_breath_monst(m_idx, y, x, GF_PLASMA,
1426 dam,0, TRUE, MS_BR_PLASMA, learnable);
1441 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1443 msg_format("%^s breathes.", m_name);
1450 msg_format("%^s¤¬%s¤Ë¥Õ¥©¡¼¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1452 msg_format("%^s breathes force at %s.", m_name, t_name);
1462 sound(SOUND_BREATH);
1465 dam = ((m_ptr->hp / 6) > 200 ? 200 : (m_ptr->hp / 6));
1466 monst_breath_monst(m_idx, y, x, GF_FORCE,
1467 dam,0, TRUE, MS_BR_FORCE, learnable);
1481 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1483 msg_format("%^s breathes.", m_name);
1490 msg_format("%^s¤¬%s¤ËËâÎϤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name);
1492 msg_format("%^s breathes mana at %s.", m_name, t_name);
1502 sound(SOUND_BREATH);
1505 dam = ((m_ptr->hp / 3) > 250 ? 250 : (m_ptr->hp / 3));
1506 monst_breath_monst(m_idx, y, x, GF_MANA,
1507 dam,0, TRUE, MS_BR_MANA, learnable);
1522 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1524 msg_format("%^s mumbles.", m_name);
1531 msg_format("%^s¤¬%s¤ËÊü¼Íǽµå¤òÊü¤Ã¤¿¡£", m_name, t_name);
1533 msg_format("%^s casts a ball of radiation at %s.", m_name, t_name);
1544 dam = (rlev + damroll(10, 6));
1545 monst_breath_monst(m_idx, y, x, GF_NUKE,
1546 dam, 2, FALSE, MS_BALL_NUKE, learnable);
1550 /* RF4_RF4_BR_NUKE */
1561 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1563 msg_format("%^s breathes.", m_name);
1570 msg_format("%^s¤¬%s¤ËÊü¼ÍÀÇÑ´þʪ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1572 msg_format("%^s breathes toxic waste at %s.", m_name, t_name);
1582 sound(SOUND_BREATH);
1585 dam = ((m_ptr->hp / 3) > 800 ? 800 : (m_ptr->hp / 3));
1586 monst_breath_monst(m_idx, y, x, GF_NUKE,
1587 dam,0, TRUE, MS_BR_NUKE, learnable);
1601 msg_format("%^s¤¬¶²¤í¤·¤²¤Ë¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1603 msg_format("%^s mumbles frighteningly.", m_name);
1610 msg_format("%^s¤¬%s¤Ë½ã¥í¥°¥ë¥¹¤òÊü¤Ã¤¿¡£", m_name, t_name);
1612 msg_format("%^s invokes raw Logrus upon %s.", m_name, t_name);
1623 dam = (rlev * 2) + damroll(10, 10);
1624 monst_breath_monst(m_idx, y, x, GF_CHAOS,
1625 dam, 4, FALSE, MS_BALL_CHAOS, learnable);
1640 msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name);
1642 msg_format("%^s breathes.", m_name);
1649 msg_format("%^s¤¬%s¤Ëʬ²ò¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name);
1651 msg_format("%^s breathes disintegration at %s.", m_name, t_name);
1661 sound(SOUND_BREATH);
1664 dam = ((m_ptr->hp / 6) > 150 ? 150 : (m_ptr->hp / 6));
1665 monst_breath_monst(m_idx, y, x, GF_DISINTEGRATE,
1666 dam,0, TRUE, MS_BR_DISI, learnable);
1680 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1682 msg_format("%^s mumbles.", m_name);
1689 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥·¥Ã¥É¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1691 msg_format("%^s casts an acid ball at %s.", m_name, t_name);
1702 dam = (randint1(rlev * 3) + 15) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1703 monst_breath_monst(m_idx, y, x, GF_ACID, dam, 2, FALSE, MS_BALL_ACID, learnable);
1718 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1720 msg_format("%^s mumbles.", m_name);
1727 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1729 msg_format("%^s casts a lightning ball at %s.", m_name, t_name);
1740 dam = (randint1(rlev * 3 / 2) + 8) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1741 monst_breath_monst(m_idx, y, x, GF_ELEC, dam, 2, FALSE, MS_BALL_ELEC, learnable);
1753 if (m_ptr->r_idx == MON_ROLENTO)
1757 msg_format("%^s¤¬²¿¤«¤òÅꤲ¤¿¡£", m_name);
1759 msg_format("%^s¤¬%^s¤Ë¸þ¤«¤Ã¤Æ¼êÜØÃƤòÅꤲ¤¿¡£", m_name, t_name);
1762 msg_format("%^s throws something.", m_name);
1764 msg_format("%^s throws a hand grenade.", m_name);
1772 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1774 msg_format("%^s mumbles.", m_name);
1781 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1783 msg_format("%^s casts a fire ball at %s.", m_name, t_name);
1795 dam = (randint1(rlev * 7 / 2) + 10) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1796 monst_breath_monst(m_idx, y, x, GF_FIRE, dam, 2, FALSE, MS_BALL_FIRE, learnable);
1811 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1813 msg_format("%^s mumbles.", m_name);
1820 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥¤¥¹¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1822 msg_format("%^s casts a frost ball at %s.", m_name, t_name);
1833 dam = (randint1(rlev * 3 / 2) + 10) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1834 monst_breath_monst(m_idx, y, x, GF_COLD, dam, 2, FALSE, MS_BALL_COLD, learnable);
1849 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1851 msg_format("%^s mumbles.", m_name);
1858 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ°½±À¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1860 msg_format("%^s casts a stinking cloud at %s.", m_name, t_name);
1871 dam = damroll(12, 2) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
1872 monst_breath_monst(m_idx, y, x, GF_POIS, dam, 2, FALSE, MS_BALL_POIS, learnable);
1887 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1889 msg_format("%^s mumbles.", m_name);
1896 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆÃϹöµå¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
1898 msg_format("%^s casts a nether ball at %s.", m_name, t_name);
1909 dam = 50 + damroll(10, 10) + (rlev * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1));
1910 monst_breath_monst(m_idx, y, x, GF_NETHER, dam, 2, FALSE, MS_BALL_NETHER, learnable);
1925 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1927 msg_format("%^s mumbles.", m_name);
1934 msg_format("%^s¤¬%s¤ËÂФ·¤Æή¤ì¤ë¤è¤¦¤Ê¿È¿¶¤ê¤ò¤·¤¿¡£", m_name, t_name);
1936 msg_format("%^s gestures fluidly at %s.", m_name, t_name);
1940 msg_format("%^s¤Ï±²´¬¤Ë°û¤ß¹þ¤Þ¤ì¤¿¡£", t_name);
1942 msg_format("%^s is engulfed in a whirlpool.", t_name);
1953 dam = ((r_ptr->flags2 & RF2_POWERFUL) ? randint1(rlev * 3) : randint1(rlev * 2)) + 50;
1954 monst_breath_monst(m_idx, y, x, GF_WATER, dam, 4, FALSE, MS_BALL_WATER, learnable);
1969 msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
1971 msg_format("%^s mumbles powerfully.", m_name);
1978 msg_format("%^s¤¬%s¤ËÂФ·¤ÆËâÎϤÎÍò¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name);
1980 msg_format("%^s invokes a mana storm upon %s.", m_name, t_name);
1991 dam = (rlev * 4) + 50 + damroll(10, 10);
1992 monst_breath_monst(m_idx, y, x, GF_MANA, dam, 4, FALSE, MS_BALL_MANA, learnable);
2007 msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
2009 msg_format("%^s mumbles powerfully.", m_name);
2016 msg_format("%^s¤¬%s¤ËÂФ·¤Æ°Å¹õ¤ÎÍò¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name);
2018 msg_format("%^s invokes a darkness storm upon %s.", m_name, t_name);
2029 dam = (rlev * 4) + 50 + damroll(10, 10);
2030 monst_breath_monst(m_idx, y, x, GF_DARK, dam, 4, FALSE, MS_BALL_DARK, learnable);
2034 /* RF5_DRAIN_MANA */
2040 msg_format("%^s¤ÏÀº¿À¥¨¥Í¥ë¥®¡¼¤ò%s¤«¤éµÛ¤¤¤È¤Ã¤¿¡£", m_name, t_name);
2042 msg_format("%^s draws psychic energy from %s.", m_name, t_name);
2047 /* Heal the monster */
2048 if (m_ptr->hp < m_ptr->maxhp)
2050 if (!tr_ptr->flags4 && !tr_ptr->flags5 && !tr_ptr->flags6)
2055 msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2057 msg_format("%^s is unaffected!", t_name);
2065 int power = (randint1(rlev) / 2) + 1;
2068 m_ptr->hp += 6 * power;
2069 if (m_ptr->hp > m_ptr->maxhp) m_ptr->hp = m_ptr->maxhp;
2071 /* Redraw (later) if needed */
2072 if (p_ptr->health_who == m_idx) p_ptr->redraw |= (PR_HEALTH);
2073 if (p_ptr->riding == m_idx) p_ptr->redraw |= (PR_UHEALTH);
2075 /* Special message */
2079 msg_format("%^s¤Ïµ¤Ê¬¤¬Îɤµ¤½¤¦¤À¡£", m_name);
2081 msg_format("%^s appears healthier.", m_name);
2092 /* RF5_MIND_BLAST */
2097 msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤Èâˤó¤À", m_name, t_name);
2099 msg_format("%^s gazes intently at %s.", m_name, t_name);
2104 dam = damroll(7, 7);
2105 /* Attempt a saving throw */
2106 if ((tr_ptr->flags1 & RF1_UNIQUE) ||
2107 (tr_ptr->flags3 & RF3_NO_CONF) ||
2108 (tr_ptr->flagsr & RFR_RES_ALL) ||
2109 (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10))
2111 /* No obvious effect */
2114 /* Memorize a flag */
2115 if (tr_ptr->flagsr & RFR_RES_ALL) tr_ptr->r_flagsr |= (RFR_RES_ALL);
2116 if (tr_ptr->flags3 & RF3_NO_CONF) tr_ptr->r_flags3 |= (RF3_NO_CONF);
2119 msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2121 msg_format("%^s is unaffected!", t_name);
2131 msg_format("%^s¤ÏÀº¿À¹¶·â¤ò¿©¤é¤Ã¤¿¡£", t_name);
2133 msg_format("%^s is blasted by psionic energy.", t_name);
2138 t_ptr->confused += randint0(4) + 4;
2141 mon_take_hit_mon(t_idx, dam, &fear, "¤ÎÀº¿À¤ÏÊø²õ¤·¡¢ÆùÂΤÏÈ´¤±³Ì¤È¤Ê¤Ã¤¿¡£", m_idx);
2143 mon_take_hit_mon(t_idx, dam, &fear, " collapses, a mindless husk.", m_idx);
2151 /* RF5_BRAIN_SMASH */
2156 msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤Èâˤó¤À", m_name, t_name);
2158 msg_format("%^s gazes intently at %s.", m_name, t_name);
2163 dam = damroll(12, 12);
2164 /* Attempt a saving throw */
2165 if ((tr_ptr->flags1 & RF1_UNIQUE) ||
2166 (tr_ptr->flags3 & RF3_NO_CONF) ||
2167 (tr_ptr->flagsr & RFR_RES_ALL) ||
2168 (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10))
2170 /* No obvious effect */
2173 /* Memorize a flag */
2174 if (tr_ptr->flagsr & RFR_RES_ALL) tr_ptr->r_flagsr |= (RFR_RES_ALL);
2175 if (tr_ptr->flags3 & RF3_NO_CONF) tr_ptr->r_flags3 |= (RF3_NO_CONF);
2178 msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2180 msg_format("%^s is unaffected!", t_name);
2190 msg_format("%^s¤ÏÀº¿À¹¶·â¤ò¿©¤é¤Ã¤¿¡£", t_name);
2192 msg_format("%^s is blasted by psionic energy.", t_name);
2197 t_ptr->confused += randint0(4) + 4;
2198 t_ptr->slow = MIN(200, t_ptr->slow + 10);
2199 t_ptr->stunned += randint0(4) + 4;
2202 mon_take_hit_mon(t_idx, dam, &fear, "¤ÎÀº¿À¤ÏÊø²õ¤·¡¢ÆùÂΤÏÈ´¤±³Ì¤È¤Ê¤Ã¤¿¡£", m_idx);
2204 mon_take_hit_mon(t_idx, dam, &fear, " collapses, a mindless husk.", m_idx);
2219 msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¤Æ¼ö¤¤¤ò¤«¤±¤¿¡£", m_name, t_name);
2221 msg_format("%^s points at %s and curses.", m_name, t_name);
2231 dam = damroll(3, 8);
2232 if ((randint0(100 + rlev/2) < (tr_ptr->level + 35)) ||
2233 (tr_ptr->flagsr & RFR_RES_ALL))
2235 /* Memorize a flag */
2236 if (tr_ptr->flagsr & RFR_RES_ALL)
2238 tr_ptr->r_flagsr |= (RFR_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);
2263 msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¤Æ¶²¤í¤·¤²¤Ë¼ö¤¤¤ò¤«¤±¤¿¡£", m_name, t_name);
2265 msg_format("%^s points at %s and curses horribly.", m_name, t_name);
2275 dam = damroll(8, 8);
2276 if ((randint0(100 + rlev/2) < (tr_ptr->level + 35)) ||
2277 (tr_ptr->flagsr & RFR_RES_ALL))
2279 /* Memorize a flag */
2280 if (tr_ptr->flagsr & RFR_RES_ALL)
2282 tr_ptr->r_flagsr |= (RFR_RES_ALL);
2285 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
2287 if (see_both) msg_format("%^s resists!", t_name);
2293 mon_take_hit_mon(t_idx, dam, &fear, NULL, m_idx);
2307 msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¡¢¶²¤í¤·¤²¤Ë¼öʸ¤ò¾§¤¨¤¿¡ª", m_name, t_name);
2309 msg_format("%^s points at %s, incanting terribly!", m_name, t_name);
2319 dam = damroll(10, 15);
2320 if ((randint0(100 + rlev/2) < (tr_ptr->level + 35)) ||
2321 (tr_ptr->flagsr & RFR_RES_ALL))
2323 /* Memorize a flag */
2324 if (tr_ptr->flagsr & RFR_RES_ALL)
2326 tr_ptr->r_flagsr |= (RFR_RES_ALL);
2329 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
2331 if (see_both) msg_format("%^s resists!", t_name);
2337 mon_take_hit_mon(t_idx, dam, &fear, NULL, m_idx);
2351 msg_format("%^s¤¬%s¤ÎÈ빦¤òÆͤ¤¤Æ¡¢¡Ö¤ªÁ°¤Ï´û¤Ë»à¤ó¤Ç¤¤¤ë¡×¤È¶«¤ó¤À¡£", m_name, t_name);
2353 msg_format("%^s points at %s, screaming the word, 'DIE!'", m_name, t_name);
2363 dam = damroll(15, 15);
2364 if (((randint0(100 + rlev/2) < (tr_ptr->level + 35)) && (m_ptr->r_idx != MON_KENSHIROU)) ||
2365 (tr_ptr->flagsr & RFR_RES_ALL))
2367 /* Memorize a flag */
2368 if (tr_ptr->flagsr & RFR_RES_ALL)
2370 tr_ptr->r_flagsr |= (RFR_RES_ALL);
2373 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
2375 if (see_both) msg_format("%^s resists!", t_name);
2381 mon_take_hit_mon(t_idx, dam, &fear, NULL, m_idx);
2395 msg_format("%s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2397 msg_format("%^s casts an acid bolt at %s.", m_name, t_name);
2407 dam = (damroll(7, 8) + (rlev / 3)) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
2408 monst_bolt_monst(m_idx, y, x, GF_ACID,
2409 dam, MS_BOLT_ACID, learnable);
2420 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2422 msg_format("%^s casts a lightning bolt at %s.", m_name, t_name);
2432 dam = (damroll(4, 8) + (rlev / 3)) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
2433 monst_bolt_monst(m_idx, y, x, GF_ELEC,
2434 dam, MS_BOLT_ELEC, learnable);
2445 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2447 msg_format("%^s casts a fire bolt at %s.", m_name, t_name);
2457 dam = (damroll(9, 8) + (rlev / 3)) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
2458 monst_bolt_monst(m_idx, y, x, GF_FIRE,
2459 dam, MS_BOLT_FIRE, learnable);
2470 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥¤¥¹¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2472 msg_format("%^s casts a frost bolt at %s.", m_name, t_name);
2482 dam = (damroll(6, 8) + (rlev / 3)) * ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 1);
2483 monst_bolt_monst(m_idx, y, x, GF_COLD,
2484 dam, MS_BOLT_COLD, learnable);
2499 msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
2501 msg_format("%^s mumbles powerfully.", m_name);
2508 msg_format("%^s¤¬%s¤ËÂФ·¤Æ¥¹¥¿¡¼¥Ð¡¼¥¹¥È¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name);
2510 msg_format("%^s invokes a starburst upon %s.", m_name, t_name);
2521 dam = (rlev * 4) + 50 + damroll(10, 10);
2522 monst_breath_monst(m_idx, y, x, GF_LITE, dam, 4, FALSE, MS_STARBURST, learnable);
2533 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆÃϹö¤ÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2535 msg_format("%^s casts a nether bolt at %s.", m_name, t_name);
2545 dam = 30 + damroll(5, 5) + (rlev * 4) / ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 3);
2546 monst_bolt_monst(m_idx, y, x, GF_NETHER,
2547 dam, MS_BOLT_NETHER, learnable);
2558 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¦¥©¡¼¥¿¡¼¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2560 msg_format("%^s casts a water bolt at %s.", m_name, t_name);
2570 dam = damroll(10, 10) + (rlev * 3 / ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 3));
2571 monst_bolt_monst(m_idx, y, x, GF_WATER,
2572 dam, MS_BOLT_WATER, learnable);
2583 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆËâÎϤÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2585 msg_format("%^s casts a mana bolt at %s.", m_name, t_name);
2595 dam = randint1(rlev * 7 / 2) + 50;
2596 monst_bolt_monst(m_idx, y, x, GF_MANA,
2597 dam, MS_BOLT_MANA, learnable);
2608 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥×¥é¥º¥Þ¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2610 msg_format("%^s casts a plasma bolt at %s.", m_name, t_name);
2620 dam = 10 + damroll(8, 7) + (rlev * 3 / ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 3));
2621 monst_bolt_monst(m_idx, y, x, GF_PLASMA,
2622 dam, MS_BOLT_PLASMA, learnable);
2633 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¶Ë´¨¤ÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2635 msg_format("%^s casts an ice bolt at %s.", m_name, t_name);
2645 dam = damroll(6, 6) + (rlev * 3 / ((r_ptr->flags2 & RF2_POWERFUL) ? 2 : 3));
2646 monst_bolt_monst(m_idx, y, x, GF_ICE,
2647 dam, MS_BOLT_ICE, learnable);
2658 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Þ¥¸¥Ã¥¯¡¦¥ß¥µ¥¤¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name);
2660 msg_format("%^s casts a magic missile at %s.", m_name, t_name);
2670 dam = damroll(2, 6) + (rlev / 3);
2671 monst_bolt_monst(m_idx, y, x, GF_MISSILE,
2672 dam, MS_MAGIC_MISSILE, learnable);
2683 msg_format("%^s¤¬¶²¤í¤·¤²¤Ê¸¸³Ð¤òºî¤ê½Ð¤·¤¿¡£", m_name, t_name);
2685 msg_format("%^s casts a fearful illusion in front of %s.", m_name, t_name);
2695 if (tr_ptr->flags3 & RF3_NO_FEAR)
2698 if (see_t) msg_format("%^s¤Ï¶²Éݤò´¶¤¸¤Ê¤¤¡£", t_name);
2700 if (see_t) msg_format("%^s refuses to be frightened.", t_name);
2704 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2707 if (see_t) msg_format("%^s¤Ï¶²Éݤò´¶¤¸¤Ê¤¤¡£", t_name);
2709 if (see_t) msg_format("%^s refuses to be frightened.", t_name);
2715 if (!t_ptr->monfear) fear = TRUE;
2717 t_ptr->monfear += randint0(4) + 4;
2731 msg_format("%s¤Ï¼öʸ¤ò¾§¤¨¤Æ%s¤ÎÌܤò¾Æ¤ÉÕ¤«¤»¤¿¡£", m_name, t_name);
2733 msg_format("%^s casts a spell, burning %s%s eyes.", m_name, t_name,
2734 (streq(t_name, "it") ? "s" : "'s"));
2744 /* Simulate blindness with confusion */
2745 if (tr_ptr->flags3 & RF3_NO_CONF)
2748 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2750 if (see_t) msg_format("%^s is unaffected.", t_name);
2754 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2757 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2759 if (see_t) msg_format("%^s is unaffected.", t_name);
2766 if (see_t) msg_format("%^s¤ÏÌܤ¬¸«¤¨¤Ê¤¯¤Ê¤Ã¤¿¡ª ", t_name);
2768 if (see_t) msg_format("%^s is blinded!", t_name);
2772 t_ptr->confused += 12 + (byte)randint0(4);
2786 msg_format("%^s¤¬%s¤ÎÁ°¤Ë¸¸ÏÇŪ¤Ê¸¸¤ò¤Ä¤¯¤ê½Ð¤·¤¿¡£", m_name, t_name);
2788 msg_format("%^s casts a mesmerizing illusion in front of %s.", m_name, t_name);
2798 if (tr_ptr->flags3 & RF3_NO_CONF)
2801 if (see_t) msg_format("%^s¤ÏÏǤ蘆¤ì¤Ê¤«¤Ã¤¿¡£", t_name);
2803 if (see_t) msg_format("%^s disbelieves the feeble spell.", t_name);
2807 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2810 if (see_t) msg_format("%^s¤ÏÏǤ蘆¤ì¤Ê¤«¤Ã¤¿¡£", t_name);
2812 if (see_t) msg_format("%^s disbelieves the feeble spell.", t_name);
2819 if (see_t) msg_format("%^s¤Ïº®Í𤷤¿¤è¤¦¤À¡£", t_name);
2821 if (see_t) msg_format("%^s seems confused.", t_name);
2825 t_ptr->confused += 12 + (byte)randint0(4);
2839 msg_format("%s¤¬%s¤Î¶ÚÆù¤«¤éÎϤòµÛ¤¤¤È¤Ã¤¿¡£", m_name, t_name);
2841 msg_format("%^s drains power from %s%s muscles.", m_name, t_name,
2842 (streq(t_name, "it") ? "s" : "'s"));
2852 if (tr_ptr->flags1 & RF1_UNIQUE)
2855 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2857 if (see_t) msg_format("%^s is unaffected.", t_name);
2861 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2864 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2866 if (see_t) msg_format("%^s is unaffected.", t_name);
2875 if (see_t) msg_format("%s¤ÎÆ°¤¤¬ÃÙ¤¯¤Ê¤Ã¤¿¡£", t_name);
2877 if (see_t) msg_format("%^s starts moving slower.", t_name);
2881 t_ptr->slow = MIN(200, t_ptr->slow + 50);
2895 msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤È¸«¤Ä¤á¤¿¡£", m_name, t_name);
2897 msg_format("%^s stares intently at %s.", m_name, t_name);
2907 if ((tr_ptr->flags1 & RF1_UNIQUE) ||
2908 (tr_ptr->flags3 & RF3_NO_STUN))
2911 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2913 if (see_t) msg_format("%^s is unaffected.", t_name);
2917 else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)
2920 if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
2922 if (see_t) msg_format("%^s is unaffected.", t_name);
2929 if (see_t) msg_format("%^s¤ÏËãá㤷¤¿¡ª", t_name);
2931 if (see_t) msg_format("%^s is paralyzed!", t_name);
2935 t_ptr->stunned += randint1(4) + 4;
2950 msg_format("%^s¤¬¼«Ê¬¤ÎÂΤËÇ°¤òÁ÷¤Ã¤¿¡£", m_name);
2952 msg_format("%^s concentrates on %s body.", m_name, m_poss);
2962 /* Allow quick speed increases to base+10 */
2966 if (see_m) msg_format("%^s¤ÎÆ°¤¤¬Â®¤¯¤Ê¤Ã¤¿¡£", m_name);
2968 if (see_m) msg_format("%^s starts moving faster.", m_name);
2972 m_ptr->fast = MIN(200, m_ptr->fast + 100);
2973 if (p_ptr->riding == m_idx) p_ptr->update |= PU_BONUS;
2983 msg_format("%^s¤¬%s¤Ë<ÇËÌǤμê>¤òÊü¤Ã¤¿¡ª", m_name, t_name);
2985 msg_format("%^s invokes the Hand of Doom upon %s!", m_name, t_name);
2995 if ((tr_ptr->flags1 & RF1_UNIQUE) || (tr_ptr->flagsr & RFR_RES_ALL))
2997 /* Memorize a flag */
2998 if (tr_ptr->flagsr & RFR_RES_ALL)
3000 tr_ptr->r_flagsr |= (RFR_RES_ALL);
3003 if (see_both) msg_format("¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡ª", t_name);
3005 if (see_both) msg_format("^%s is unaffected!", t_name);
3011 if ((r_ptr->level + randint1(20)) >
3012 (tr_ptr->level + 10 + randint1(20)))
3014 t_ptr->hp = t_ptr->hp -
3015 (((s32b)((40 + randint1(20)) * t_ptr->hp)) / 100);
3017 if (t_ptr->hp < 1) t_ptr->hp = 1;
3022 if (see_both) msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
3024 if (see_both) msg_format("%^s resists!", t_name);
3041 msg_format("%^s¤Ï¼«Ê¬¤Î½ý¤ËÇ°¤ò½¸Ã椷¤¿¡£", m_name);
3043 msg_format("%^s concentrates on %s wounds.", m_name, m_poss);
3054 m_ptr->hp += (rlev * 6);
3057 if (m_ptr->hp >= m_ptr->maxhp)
3060 m_ptr->hp = m_ptr->maxhp;
3067 msg_format("%^s¤Ï´°Á´¤Ë¼£¤Ã¤¿¡ª", m_name);
3069 msg_format("%^s looks completely healed!", m_name);
3080 /* Partially healed */
3086 msg_format("%^s¤ÏÂÎÎϤò²óÉü¤·¤¿¤è¤¦¤À¡£", m_name);
3088 msg_format("%^s looks healthier.", m_name);
3098 /* Redraw (later) if needed */
3099 if (p_ptr->health_who == m_idx) p_ptr->redraw |= (PR_HEALTH);
3100 if (p_ptr->riding == m_idx) p_ptr->redraw |= (PR_UHEALTH);
3110 if (see_m) msg_format("%^s¤Ïͦµ¤¤ò¼è¤êÌᤷ¤¿¡£", m_name);
3112 if (see_m) msg_format("%^s recovers %s courage.", m_name, m_poss);
3127 msg_format("%s¤Ï̵½ý¤Îµå¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name);
3129 msg_format("%^s casts a Globe of Invulnerability.", m_name);
3139 if (!m_ptr->invulner) m_ptr->invulner = randint1(4) + 4;
3141 if (p_ptr->health_who == m_idx) p_ptr->redraw |= (PR_HEALTH);
3142 if (p_ptr->riding == m_idx) p_ptr->redraw |= (PR_UHEALTH);
3150 msg_format("%^s¤¬½Ö»þ¤Ë¾Ã¤¨¤¿¡£", m_name);
3152 msg_format("%^s blinks away.", m_name);
3157 teleport_away(m_idx, 10, FALSE);
3166 msg_format("%^s¤¬¥Æ¥ì¥Ý¡¼¥È¤·¤¿¡£", m_name);
3168 msg_format("%^s teleports away.", m_name);
3172 teleport_away(m_idx, MAX_SIGHT * 2 + 5, FALSE);
3174 if (los(py, px, m_ptr->fy, m_ptr->fx) && !world_monster && see_m)
3176 for (i = INVEN_RARM; i < INVEN_TOTAL; i++)
3178 u32b flgs[TR_FLAG_SIZE];
3179 object_type *o_ptr = &inventory[i];
3181 if (cursed_p(o_ptr)) continue;
3183 object_flags(o_ptr, flgs);
3185 if((have_flag(flgs, TR_TELEPORT)) || (p_ptr->muta1 & MUT1_VTELEPORT) || (p_ptr->pclass == CLASS_IMITATOR))
3188 cptr msg = "¤Ä¤¤¤Æ¤¤¤¤Þ¤¹¤«¡©";
3190 cptr msg = "Do you follow it? ";
3193 if(get_check_strict(msg, CHECK_OKAY_CANCEL))
3197 teleport_player(200);
3199 msg_print("¼ºÇÔ¡ª");
3201 msg_print("Failed!");
3204 else teleport_player_to(m_ptr->fy, m_ptr->fx, TRUE);
3205 p_ptr->energy_need = ENERGY_NEED();
3217 if(m_ptr->r_idx = MON_DIO) who == 1;
3218 else if(m_ptr->r_idx = MON_WONG) who == 3;
3220 if(!process_the_world(randint1(2)+2, who, los(py, px, m_ptr->fy, m_ptr->fx))) return (FALSE);
3226 switch (m_ptr->r_idx)
3229 /* Moved to process_monster(), like multiplication */
3233 if (r_ptr->d_char == 'B')
3240 msg_format("%^s¤ÏÆÍÁ³µÞ¾å¾º¤·¤Æ»ë³¦¤«¤é¾Ã¤¨¤¿!", m_name);
3242 msg_format("%^s suddenly go out of your sight!", m_name);
3245 teleport_away(m_idx, 10, FALSE);
3246 p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
3250 /* Not implemented */
3256 /* Something is wrong */
3265 /* Not implemented */
3275 msg_format("%^s¤Ï%s¤ò¥Æ¥ì¥Ý¡¼¥È¤µ¤»¤¿¡£", m_name, t_name);
3277 msg_format("%^s teleports %s away.", m_name, t_name);
3288 bool resists_tele = FALSE;
3290 if (tr_ptr->flagsr & RFR_RES_TELE)
3292 if ((tr_ptr->flags1 & RF1_UNIQUE) || (tr_ptr->flagsr & RFR_RES_ALL))
3296 tr_ptr->r_flagsr |= RFR_RES_TELE;
3298 msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name);
3300 msg_format("%^s is unaffected!", t_name);
3305 resists_tele = TRUE;
3307 else if (tr_ptr->level > randint1(100))
3311 tr_ptr->r_flagsr |= RFR_RES_TELE;
3313 msg_format("%^s¤ÏÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name);
3315 msg_format("%^s resists!", t_name);
3320 resists_tele = TRUE;
3326 if (t_idx == p_ptr->riding) teleport_player(MAX_SIGHT * 2 + 5);
3327 else teleport_away(t_idx, MAX_SIGHT * 2 + 5, FALSE);
3334 /* RF6_TELE_LEVEL */
3336 /* Not implemented */
3346 msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¸÷¤Î·õ¤òÊü¤Ã¤¿¡£", m_name, t_name);
3348 msg_format("%^s throw a Psycho-spear at %s.", m_name, t_name);
3358 dam = (r_ptr->flags2 & RF2_POWERFUL) ? (randint1(rlev * 2) + 180) : (randint1(rlev * 3 / 2) + 120);
3359 monst_beam_monst(m_idx, y, x, GF_PSY_SPEAR,
3360 dam, MS_PSY_SPEAR, learnable);
3370 msg_format("%^s¤¬°Å°Ç¤ÎÃæ¤Ç¼ê¤ò¿¶¤Ã¤¿¡£", m_name);
3372 msg_format("%^s gestures in shadow.", m_name);
3379 msg_format("%^s¤Ï°Å°Ç¤ËÊñ¤Þ¤ì¤¿¡£", t_name);
3381 msg_format("%^s is surrounded by darkness.", t_name);
3392 (void)project(m_idx, 3, y, x, 0, GF_DARK_WEAK, PROJECT_GRID | PROJECT_KILL | PROJECT_MONSTER, MS_DARKNESS);
3406 msg_format("%^s¤¬¼öʸ¤ò¾§¤¨¤Æ¼Ù°¤ËÈù¾Ð¤ó¤À¡£", m_name);
3408 msg_format("%^s casts a spell and cackles evilly.", m_name);
3414 msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
3416 msg_format("%^s mumbles.", m_name);
3421 trap_creation(y, x);
3427 /* Not implemented */
3430 /* RF6_RAISE_DEAD */
3438 if (blind) msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
3440 if (blind) msg_format("%^s mumbles.", m_name);
3444 else msg_format("%^s¤¬»à¼ÔÉü³è¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name);
3446 else msg_format("%^s casts a spell to revive corpses.", m_name);
3454 animate_dead(m_idx, m_ptr->fy, m_ptr->fx);
3457 /* RF6_SUMMON_KIN */
3465 if (m_ptr->r_idx == MON_ROLENTO)
3468 msg_format("%^s¤Ï¼êÜØÃƤò¤Ð¤é¤Þ¤¤¤¿¡£",
3471 msg_format("%^s throws some hand grenades.",
3475 else if (m_ptr->r_idx == MON_SERPENT || m_ptr->r_idx == MON_ZOMBI_SERPENT)
3478 msg_format("%^s¤¬¥À¥ó¥¸¥ç¥ó¤Î¼ç¤ò¾¤´¤·¤¿¡£", m_name);
3480 msg_format("%^s magically summons guardians of dungeons.", m_name);
3486 msg_format("%s¤¬ËâË¡¤Ç%s¤ò¾¤´¤·¤¿¡£", m_name,
3487 ((r_ptr->flags1 & RF1_UNIQUE) ? "¼ê²¼" : "Ãç´Ö"));
3489 msg_format("%^s magically summons %s %s.", m_name, m_poss,
3490 ((r_ptr->flags1 & RF1_UNIQUE) ? "minions" : "kin"));
3501 if(m_ptr->r_idx == MON_ROLENTO)
3503 int num = 1 + randint1(3);
3504 for (k = 0; k < num; k++)
3506 count += summon_named_creature(m_idx, y, x, MON_SHURYUUDAN, p_mode);
3509 else if(m_ptr->r_idx == MON_THORONDOR ||
3510 m_ptr->r_idx == MON_GWAIHIR ||
3511 m_ptr->r_idx == MON_MENELDOR)
3513 int num = 4 + randint1(3);
3514 for (k = 0; k < num; k++)
3516 count += summon_specific(m_idx, y, x, rlev, SUMMON_EAGLES, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | p_mode));
3519 else if(m_ptr->r_idx == MON_LOUSY)
3521 int num = 2 + randint1(3);
3522 for (k = 0; k < num; k++)
3524 count += summon_specific(m_idx, y, x, rlev, SUMMON_LOUSE, (PM_ALLOW_GROUP | p_mode));
3527 else if(m_ptr->r_idx == MON_BULLGATES)
3529 int num = 2 + randint1(3);
3530 for (k = 0; k < num; k++)
3532 count += summon_named_creature(m_idx, y, x, 921, p_mode);
3535 else if (m_ptr->r_idx == MON_CALDARM)
3537 int num = randint1(3);
3538 for (k = 0; k < num; k++)
3540 count += summon_named_creature(m_idx, y, x, 930, p_mode);
3543 else if (m_ptr->r_idx == MON_SERPENT || m_ptr->r_idx == MON_ZOMBI_SERPENT)
3545 int num = 2 + randint1(3);
3546 for (k = 0; k < num; k++)
3548 count += summon_specific(m_idx, y, x, rlev, SUMMON_GUARDIANS, (PM_ALLOW_GROUP | p_mode | PM_ALLOW_UNIQUE));
3553 summon_kin_type = r_ptr->d_char;
3555 for (k = 0; k < 4; k++)
3557 count += summon_specific(m_idx, y, x, rlev, SUMMON_KIN, (PM_ALLOW_GROUP | p_mode));
3561 if (known && !see_t && count)
3577 msg_format("%^s¤¬¥µ¥¤¥Ð¡¼¥Ç¡¼¥â¥ó¤ò¾¤´¤·¤¿¡ª", m_name);
3579 msg_format("%^s magically summons Cyberdemons!", m_name);
3589 if (is_friendly(m_ptr))
3591 count += summon_specific(m_idx, y, x, rlev, SUMMON_CYBER, (PM_ALLOW_GROUP | p_mode));
3595 count += summon_cyber(m_idx, y, x);
3598 if (known && !see_t && count)
3614 msg_format("%^s¤¬ËâË¡¤ÇÃç´Ö¤ò¾¤´¤·¤¿¡ª", m_name);
3616 msg_format("%^s magically summons help!", m_name);
3626 count += summon_specific(m_idx, y, x, rlev, 0, (p_mode | u_mode));
3628 if (known && !see_t && count)
3635 /* RF6_S_MONSTERS */
3644 msg_format("%^s¤¬ËâË¡¤Ç¥â¥ó¥¹¥¿¡¼¤ò¾¤´¤·¤¿¡ª", m_name);
3646 msg_format("%^s magically summons monsters!", m_name);
3656 for (k = 0; k < s_num_6; k++)
3658 count += summon_specific(m_idx, y, x, rlev, 0, (PM_ALLOW_GROUP | p_mode | u_mode));
3661 if (known && !see_t && count)
3677 msg_format("%^s¤¬ËâË¡¤Ç¥¢¥ê¤ò¾¤´¤·¤¿¡£", m_name);
3679 msg_format("%^s magically summons ants.", m_name);
3689 for (k = 0; k < s_num_6; k++)
3691 count += summon_specific(m_idx, y, x, rlev, SUMMON_ANT, (PM_ALLOW_GROUP | p_mode));
3694 if (known && !see_t && count)
3710 msg_format("%^s¤¬ËâË¡¤Ç¥¯¥â¤ò¾¤´¤·¤¿¡£", m_name);
3712 msg_format("%^s magically summons spiders.", m_name);
3722 for (k = 0; k < s_num_6; k++)
3724 count += summon_specific(m_idx, y, x, rlev, SUMMON_SPIDER, (PM_ALLOW_GROUP | p_mode));
3727 if (known && !see_t && count)
3743 msg_format("%^s¤¬ËâË¡¤Ç¥Ï¥¦¥ó¥É¤ò¾¤´¤·¤¿¡£", m_name);
3745 msg_format("%^s magically summons hounds.", m_name);
3755 for (k = 0; k < s_num_4; k++)
3757 count += summon_specific(m_idx, y, x, rlev, SUMMON_HOUND, (PM_ALLOW_GROUP | p_mode));
3760 if (known && !see_t && count)
3776 msg_format("%^s¤¬ËâË¡¤Ç¥Ò¥É¥é¤ò¾¤´¤·¤¿¡£", m_name);
3778 msg_format("%^s magically summons hydras.", m_name);
3788 for (k = 0; k < s_num_4; k++)
3790 count += summon_specific(m_idx, y, x, rlev, SUMMON_HYDRA, (PM_ALLOW_GROUP | p_mode));
3793 if (known && !see_t && count)
3809 msg_format("%^s¤¬ËâË¡¤ÇÅ·»È¤ò¾¤´¤·¤¿¡ª", m_name);
3811 msg_format("%^s magically summons an angel!", m_name);
3824 if ((r_ptr->flags1 & RF1_UNIQUE) && !easy_band)
3826 num += r_ptr->level/40;
3829 for (k = 0; k < num; k++)
3831 count += summon_specific(m_idx, y, x, rlev, SUMMON_ANGEL, (PM_ALLOW_GROUP | p_mode));
3835 if (known && !see_t && count)
3851 msg_format("%^s¤¬ËâË¡¤Çº®Æ٤εÜÄ¤é¥Ç¡¼¥â¥ó¤ò¾¤´¤·¤¿¡ª", m_name);
3853 msg_format("%^s magically summons a demon from the Courts of Chaos!", m_name);
3863 for (k = 0; k < 1; k++)
3865 count += summon_specific(m_idx, y, x, rlev, SUMMON_DEMON, (PM_ALLOW_GROUP | p_mode));
3868 if (known && !see_t && count)
3884 msg_format("%s¤¬ËâË¡¤Ç¥¢¥ó¥Ç¥Ã¥É¤ò¾¤´¤·¤¿¡£", m_name);
3886 msg_format("%^s magically summons undead.", m_name);
3896 for (k = 0; k < 1; k++)
3898 count += summon_specific(m_idx, y, x, rlev, SUMMON_UNDEAD, (PM_ALLOW_GROUP | p_mode));
3901 if (known && !see_t && count)
3917 msg_format("%^s¤¬ËâË¡¤Ç¥É¥é¥´¥ó¤ò¾¤´¤·¤¿¡ª", m_name);
3919 msg_format("%^s magically summons a dragon!", m_name);
3929 for (k = 0; k < 1; k++)
3931 count += summon_specific(m_idx, y, x, rlev, SUMMON_DRAGON, (PM_ALLOW_GROUP | p_mode));
3934 if (known && !see_t && count)
3941 /* RF6_S_HI_UNDEAD */
3950 msg_format("%s¤¬ËâË¡¤Ç¥¢¥ó¥Ç¥Ã¥É¤ò¾¤´¤·¤¿¡£", m_name);
3952 msg_format("%^s magically summons undead.", m_name);
3962 for (k = 0; k < s_num_6; k++)
3964 count += summon_specific(m_idx, y, x, rlev, SUMMON_HI_UNDEAD, (PM_ALLOW_GROUP | p_mode | u_mode));
3967 if (known && !see_t && count)
3974 /* RF6_S_HI_DRAGON */
3983 msg_format("%^s¤¬ËâË¡¤Ç¸ÅÂå¥É¥é¥´¥ó¤ò¾¤´¤·¤¿¡ª", m_name);
3985 msg_format("%^s magically summons ancient dragons!", m_name);
3995 for (k = 0; k < s_num_4; k++)
3997 count += summon_specific(m_idx, y, x, rlev, SUMMON_HI_DRAGON, (PM_ALLOW_GROUP | p_mode | u_mode));
4000 if (known && !see_t && count)
4007 /* RF6_S_AMBERITES */
4016 msg_format("%^s¤¬¥¢¥ó¥Ð¡¼¤Î²¦Â²¤ò¾¤´¤·¤¿¡ª", m_name);
4018 msg_format("%^s magically summons Lords of Amber!", m_name);
4028 for (k = 0; k < s_num_4; k++)
4030 count += summon_specific(m_idx, y, x, rlev, SUMMON_AMBERITES, (PM_ALLOW_GROUP | p_mode | PM_ALLOW_UNIQUE));
4033 if (known && !see_t && count)
4049 msg_format("%^s¤¬ËâË¡¤ÇÆÃÊ̤ʶ¯Å¨¤ò¾¤´¤·¤¿¡ª", m_name);
4051 msg_format("%^s magically summons special opponents!", m_name);
4061 for (k = 0; k < s_num_4; k++)
4063 count += summon_specific(m_idx, y, x, rlev, SUMMON_UNIQUE, (PM_ALLOW_GROUP | p_mode | PM_ALLOW_UNIQUE));
4066 if (known && !see_t && count)
4082 msg_format("%^s¤Ï¶²Éݤ·¤Æƨ¤²½Ð¤·¤¿¡ª", t_name);
4084 msg_format("%^s flees in terror!", t_name);
4089 if (see_m && maneable && !world_monster && !p_ptr->blind && (p_ptr->pclass == CLASS_IMITATOR))
4091 if (thrown_spell != 167) /* Not RF6_SPECIAL */
4093 if (p_ptr->mane_num == MAX_MANE)
4096 for (i = 0; i < p_ptr->mane_num - 1; i++)
4098 p_ptr->mane_spell[i] = p_ptr->mane_spell[i+1];
4099 p_ptr->mane_dam[i] = p_ptr->mane_dam[i+1];
4102 p_ptr->mane_spell[p_ptr->mane_num] = thrown_spell - 96;
4103 p_ptr->mane_dam[p_ptr->mane_num] = dam;
4107 p_ptr->redraw |= (PR_MANE);
4111 /* Remember what the monster did, if we saw it */
4115 if (thrown_spell < 32*4)
4117 r_ptr->r_flags4 |= (1L << (thrown_spell - 32*3));
4118 if (r_ptr->r_cast_spell < MAX_UCHAR) r_ptr->r_cast_spell++;
4122 else if (thrown_spell < 32*5)
4124 r_ptr->r_flags5 |= (1L << (thrown_spell - 32*4));
4125 if (r_ptr->r_cast_spell < MAX_UCHAR) r_ptr->r_cast_spell++;
4129 else if (thrown_spell < 32*6)
4131 r_ptr->r_flags6 |= (1L << (thrown_spell - 32*5));
4132 if (r_ptr->r_cast_spell < MAX_UCHAR) r_ptr->r_cast_spell++;
4136 /* Always take note of monsters that kill you */
4137 if (p_ptr->is_dead && (r_ptr->r_deaths < MAX_SHORT) && !p_ptr->inside_arena)
4142 /* A spell was cast */