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: describe monsters (using monster memory) */
17 * Pronoun arrays, by gender.
19 static cptr wd_he[3] =
21 { "¤½¤ì", "Èà", "Èà½÷" };
23 { "it", "he", "she" };
26 static cptr wd_his[3] =
28 { "¤½¤ì¤Î", "Èà¤Î", "Èà½÷¤Î" };
30 { "its", "his", "her" };
36 * Pluralizer. Args(count, singular, plural)
38 #define plural(c,s,p) \
39 (((c) == 1) ? (s) : (p))
47 * Determine if the "armor" is known
48 * The higher the level, the fewer kills needed.
50 static bool know_armour(int r_idx)
52 monster_race *r_ptr = &r_info[r_idx];
54 s32b level = r_ptr->level;
56 s32b kills = r_ptr->r_tkills;
58 if (cheat_know) return (TRUE);
61 if (kills > 304 / (4 + level)) return (TRUE);
63 /* Skip non-uniques */
64 if (!(r_ptr->flags1 & RF1_UNIQUE)) return (FALSE);
67 if (kills > 304 / (38 + (5 * level) / 4)) return (TRUE);
75 * Determine if the "damage" of the given attack is known
76 * the higher the level of the monster, the fewer the attacks you need,
77 * the more damage an attack does, the more attacks you need
79 static bool know_damage(int r_idx, int i)
81 monster_race *r_ptr = &r_info[r_idx];
83 s32b level = r_ptr->level;
85 s32b a = r_ptr->r_blows[i];
87 s32b d1 = r_ptr->blow[i].d_dice;
88 s32b d2 = r_ptr->blow[i].d_side;
92 if (d >= ((4+level)*MAX_UCHAR)/80) d = ((4+level)*MAX_UCHAR-1)/80;
95 if ((4 + level) * a > 80 * d) return (TRUE);
97 /* Skip non-uniques */
98 if (!(r_ptr->flags1 & RF1_UNIQUE)) return (FALSE);
100 /* Unique monsters */
101 if ((4 + level) * (2 * a) > 80 * d) return (TRUE);
109 * Prepare hook for c_roff(). It will be changed for spoiler generation in wizard1.c.
111 void (*hook_c_roff)(byte attr, cptr str) = c_roff;
113 static void hooked_roff(cptr str)
116 hook_c_roff(TERM_WHITE, str);
121 * Hack -- display monster information using "hooked_roff()"
123 * This function should only be called with the cursor placed at the
124 * left edge of the screen, on a cleared line, in which the recall is
125 * to take place. One extra blank line is left after the recall.
127 static void roff_aux(int r_idx, int mode)
129 monster_race *r_ptr = &r_info[r_idx];
144 int speed = (ironman_nightmare) ? r_ptr->speed + 5 : r_ptr->speed;
158 byte drop_gold, drop_item;
164 bool know_everything = FALSE;
166 /* Obtain a copy of the "known" number of drops */
167 drop_gold = r_ptr->r_drop_gold;
168 drop_item = r_ptr->r_drop_item;
170 /* Obtain a copy of the "known" flags */
171 flags1 = (r_ptr->flags1 & r_ptr->r_flags1);
172 flags2 = (r_ptr->flags2 & r_ptr->r_flags2);
173 flags3 = (r_ptr->flags3 & r_ptr->r_flags3);
174 flags4 = (r_ptr->flags4 & r_ptr->r_flags4);
175 flags5 = (r_ptr->flags5 & r_ptr->r_flags5);
176 flags6 = (r_ptr->flags6 & r_ptr->r_flags6);
177 flags7 = (r_ptr->flags7 & r_ptr->flags7);
178 flagsr = (r_ptr->flagsr & r_ptr->r_flagsr);
180 /* cheat_know or research_mon() */
181 if (cheat_know || (mode & 0x01))
182 know_everything = TRUE;
184 /* Cheat -- Know everything */
187 /* Hack -- maximal drops */
188 drop_gold = drop_item =
189 (((r_ptr->flags1 & RF1_DROP_4D2) ? 8 : 0) +
190 ((r_ptr->flags1 & RF1_DROP_3D2) ? 6 : 0) +
191 ((r_ptr->flags1 & RF1_DROP_2D2) ? 4 : 0) +
192 ((r_ptr->flags1 & RF1_DROP_1D2) ? 2 : 0) +
193 ((r_ptr->flags1 & RF1_DROP_90) ? 1 : 0) +
194 ((r_ptr->flags1 & RF1_DROP_60) ? 1 : 0));
196 /* Hack -- but only "valid" drops */
197 if (r_ptr->flags1 & RF1_ONLY_GOLD) drop_item = 0;
198 if (r_ptr->flags1 & RF1_ONLY_ITEM) drop_gold = 0;
200 /* Hack -- know all the flags */
201 flags1 = r_ptr->flags1;
202 flags2 = r_ptr->flags2;
203 flags3 = r_ptr->flags3;
204 flags4 = r_ptr->flags4;
205 flags5 = r_ptr->flags5;
206 flags6 = r_ptr->flags6;
207 flagsr = r_ptr->flagsr;
211 /* Extract a gender (if applicable) */
212 if (r_ptr->flags1 & RF1_FEMALE) msex = 2;
213 else if (r_ptr->flags1 & RF1_MALE) msex = 1;
215 /* Assume some "obvious" flags */
216 if (r_ptr->flags1 & RF1_UNIQUE) flags1 |= (RF1_UNIQUE);
217 if (r_ptr->flags1 & RF1_QUESTOR) flags1 |= (RF1_QUESTOR);
218 if (r_ptr->flags1 & RF1_MALE) flags1 |= (RF1_MALE);
219 if (r_ptr->flags1 & RF1_FEMALE) flags1 |= (RF1_FEMALE);
221 /* Assume some "creation" flags */
222 if (r_ptr->flags1 & RF1_FRIENDS) flags1 |= (RF1_FRIENDS);
223 if (r_ptr->flags1 & RF1_ESCORT) flags1 |= (RF1_ESCORT);
224 if (r_ptr->flags1 & RF1_ESCORTS) flags1 |= (RF1_ESCORTS);
226 /* Killing a monster reveals some properties */
227 if (r_ptr->r_tkills || know_everything)
229 /* Know "race" flags */
230 if (r_ptr->flags3 & RF3_ORC) flags3 |= (RF3_ORC);
231 if (r_ptr->flags3 & RF3_TROLL) flags3 |= (RF3_TROLL);
232 if (r_ptr->flags3 & RF3_GIANT) flags3 |= (RF3_GIANT);
233 if (r_ptr->flags3 & RF3_DRAGON) flags3 |= (RF3_DRAGON);
234 if (r_ptr->flags3 & RF3_DEMON) flags3 |= (RF3_DEMON);
235 if (r_ptr->flags3 & RF3_UNDEAD) flags3 |= (RF3_UNDEAD);
236 if (r_ptr->flags3 & RF3_EVIL) flags3 |= (RF3_EVIL);
237 if (r_ptr->flags3 & RF3_GOOD) flags3 |= (RF3_GOOD);
238 if (r_ptr->flags3 & RF3_ANIMAL) flags3 |= (RF3_ANIMAL);
239 if (r_ptr->flags3 & RF3_AMBERITE) flags3 |= (RF3_AMBERITE);
240 if (r_ptr->flags2 & RF2_HUMAN) flags2 |= (RF2_HUMAN);
242 /* Know 'quantum' flag */
243 if (r_ptr->flags2 & RF2_QUANTUM) flags2 |= (RF2_QUANTUM);
245 /* Know "forced" flags */
246 if (r_ptr->flags1 & RF1_FORCE_DEPTH) flags1 |= (RF1_FORCE_DEPTH);
247 if (r_ptr->flags1 & RF1_FORCE_MAXHP) flags1 |= (RF1_FORCE_MAXHP);
250 /* For output_monster_spoiler() */
257 /* Treat uniques differently */
258 if (flags1 & RF1_UNIQUE)
260 /* Hack -- Determine if the unique is "dead" */
261 bool dead = (r_ptr->max_num == 0) ? TRUE : FALSE;
263 /* We've been killed... */
266 /* Killed ancestors */
268 hooked_roff(format("%^s¤Ï¤¢¤Ê¤¿¤ÎÀèÁĤò %d ¿ÍÁò¤Ã¤Æ¤¤¤ë",
269 wd_he[msex], r_ptr->r_deaths));
271 hooked_roff(format("%^s has slain %d of your ancestors",
272 wd_he[msex], r_ptr->r_deaths));
276 /* But we've also killed it */
280 hooked_roff(format("¤¬¡¢¤¹¤Ç¤ËµØƤ¤Á¤Ï²Ì¤¿¤·¤Æ¤¤¤ë¡ª"));
282 hooked_roff(format(", but you have avenged %s! ",
283 plural(r_ptr->r_deaths, "him", "them")));
288 /* Unavenged (ever) */
292 hooked_roff(format("¤Î¤Ë¡¢¤Þ¤ÀµØƤ¤Á¤ò²Ì¤¿¤·¤Æ¤¤¤Ê¤¤¡£"));
294 hooked_roff(format(", who %s unavenged. ",
295 plural(r_ptr->r_deaths, "remains", "remain")));
300 /* Start a new line */
304 /* Dead unique who never hurt us */
308 hooked_roff("¤¢¤Ê¤¿¤Ï¤³¤ÎµØŨ¤ò¤¹¤Ç¤ËÁò¤êµî¤Ã¤Æ¤¤¤ë¡£");
310 hooked_roff("You have slain this foe. ");
313 /* Start a new line */
318 /* Not unique, but killed us */
319 else if (r_ptr->r_deaths)
323 hooked_roff(format("¤³¤Î¥â¥ó¥¹¥¿¡¼¤Ï¤¢¤Ê¤¿¤ÎÀèÁĤò %d ¿ÍÁò¤Ã¤Æ¤¤¤ë",
326 hooked_roff(format("%d of your ancestors %s been killed by this creature, ",
327 r_ptr->r_deaths, plural(r_ptr->r_deaths, "has", "have")));
331 /* Some kills this life */
335 hooked_roff(format("¤¬¡¢¤¢¤Ê¤¿¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤÏÅݤ·¤Æ¤¤¤ë¡£", r_ptr->r_pkills));
337 hooked_roff(format("and you have exterminated at least %d of the creatures. ", r_ptr->r_pkills));
342 /* Some kills past lives */
343 else if (r_ptr->r_tkills)
346 hooked_roff(format("¤¬¡¢%s¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤÏÅݤ·¤Æ¤¤¤ë¡£",
347 "¤¢¤Ê¤¿¤ÎÀèÁÄ", r_ptr->r_tkills));
349 hooked_roff(format("and %s have exterminated at least %d of the creatures. ",
350 "your ancestors", r_ptr->r_tkills));
359 hooked_roff(format("¤¬¡¢¤Þ¤À%s¤òÅݤ·¤¿¤³¤È¤Ï¤Ê¤¤¡£", wd_he[msex]));
361 hooked_roff(format("and %s is not ever known to have been defeated. ", wd_he[msex]));
366 /* Start a new line */
370 /* Normal monsters */
373 /* Killed some this life */
377 hooked_roff(format("¤¢¤Ê¤¿¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤϻ¦¤·¤Æ¤¤¤ë¡£", r_ptr->r_pkills));
379 hooked_roff(format("You have killed at least %d of these creatures. ", r_ptr->r_pkills));
384 /* Killed some last life */
385 else if (r_ptr->r_tkills)
388 hooked_roff(format("¤¢¤Ê¤¿¤ÎÀèÁĤϤ³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤϻ¦¤·¤Æ¤¤¤ë¡£", r_ptr->r_tkills));
390 hooked_roff(format("Your ancestors have killed at least %d of these creatures. ", r_ptr->r_tkills));
399 hooked_roff("¤³¤Î¥â¥ó¥¹¥¿¡¼¤òÅݤ·¤¿¤³¤È¤Ï¤Ê¤¤¡£");
401 hooked_roff("No battles to the death are recalled. ");
405 /* Start a new line */
411 cptr tmp = r_text + r_ptr->text;
418 /* Start a new line */
423 if (r_idx == MON_KAGE)
434 /* Describe location */
435 if (r_ptr->level == 0)
438 hooked_roff(format("%^s¤ÏÄ®¤Ë½»¤ß", wd_he[msex]));
440 hooked_roff(format("%^s lives in the town", wd_he[msex]));
445 else if (r_ptr->r_tkills || know_everything)
450 hooked_roff(format("%^s¤ÏÄ̾ïÃϲ¼ %d ¥Õ¥£¡¼¥È¤Ç½Ð¸½¤·",
452 hooked_roff(format("%^s is normally found at depths of %d feet",
455 wd_he[msex], r_ptr->level * 50));
460 hooked_roff(format("%^s¤ÏÄ̾ïÃϲ¼ %d ³¬¤Ç½Ð¸½¤·",
462 hooked_roff(format("%^s is normally found on dungeon level %d",
465 wd_he[msex], r_ptr->level));
471 /* Describe movement */
472 if (r_idx == MON_CHAMELEON)
475 hooked_roff("¡¢Â¾¤Î¥â¥ó¥¹¥¿¡¼¤Ë²½¤±¤ë¡£");
477 hooked_roff("and can take the shape of other monster.");
489 hooked_roff(", and ");
496 hooked_roff(format("%^s¤Ï", wd_he[msex]));
498 hooked_roff(format("%^s ", wd_he[msex]));
504 hooked_roff("moves");
508 if ((flags1 & RF1_RAND_50) || (flags1 & RF1_RAND_25))
511 if ((flags1 & RF1_RAND_50) && (flags1 & RF1_RAND_25))
514 hooked_roff("¤«¤Ê¤ê");
516 hooked_roff(" extremely");
520 else if (flags1 & RF1_RAND_50)
525 hooked_roff(" somewhat");
529 else if (flags1 & RF1_RAND_25)
534 hooked_roff(" a bit");
541 hooked_roff("ÉÔµ¬Â§¤Ë");
543 hooked_roff(" erratically");
547 /* Hack -- Occasional conjunction */
549 if (speed != 110) hooked_roff("¡¢¤«¤Ä");
551 if (speed != 110) hooked_roff(", and");
560 if (speed > 139) hook_c_roff(TERM_RED, "¿®¤¸Æñ¤¤¤Û¤É");
561 else if (speed > 134) hook_c_roff(TERM_ORANGE, "ÌÔÎõ¤Ë");
562 else if (speed > 129) hook_c_roff(TERM_ORANGE, "Èó¾ï¤Ë");
563 else if (speed > 124) hook_c_roff(TERM_UMBER, "¤«¤Ê¤ê");
564 else if (speed < 120) hook_c_roff(TERM_L_UMBER, "¤ä¤ä");
565 hook_c_roff(TERM_L_RED, "ÁÇÁ᤯");
567 if (speed > 139) hook_c_roff(TERM_RED, " incredibly");
568 else if (speed > 134) hook_c_roff(TERM_ORANGE, " extremely");
569 else if (speed > 129) hook_c_roff(TERM_ORANGE, " very");
570 else if (speed > 124) hook_c_roff(TERM_UMBER, " fairly");
571 else if (speed < 120) hook_c_roff(TERM_L_UMBER, " somewhat");
572 hook_c_roff(TERM_L_RED, " quickly");
576 else if (speed < 110)
579 if (speed < 90) hook_c_roff(TERM_L_GREEN, "¿®¤¸Æñ¤¤¤Û¤É");
580 else if (speed < 95) hook_c_roff(TERM_BLUE, "Èó¾ï¤Ë");
581 else if (speed < 100) hook_c_roff(TERM_BLUE, "¤«¤Ê¤ê");
582 else if (speed > 104) hook_c_roff(TERM_GREEN, "¤ä¤ä");
583 hook_c_roff(TERM_L_BLUE, "¤æ¤Ã¤¯¤ê¤È");
585 if (speed < 90) hook_c_roff(TERM_L_GREEN, " incredibly");
586 else if (speed < 95) hook_c_roff(TERM_BLUE, " very");
587 else if (speed < 100) hook_c_roff(TERM_BLUE, " fairly");
588 else if (speed > 104) hook_c_roff(TERM_GREEN, " somewhat");
589 hook_c_roff(TERM_L_BLUE, " slowly");
596 hooked_roff("ÉáÄ̤ή¤µ¤Ç");
598 hooked_roff(" at normal speed");
603 hooked_roff("Æ°¤¤¤Æ¤¤¤ë");
607 /* The code above includes "attack speed" */
608 if (flags1 & RF1_NEVER_MOVE)
614 hooked_roff("¡¢¤·¤«¤·");
616 hooked_roff(", but ");
623 hooked_roff(format("%^s¤Ï", wd_he[msex]));
625 hooked_roff(format("%^s ", wd_he[msex]));
633 hooked_roff("¿¯Æþ¼Ô¤òÄÉÀפ·¤Ê¤¤");
635 hooked_roff("does not deign to chase intruders");
640 /* End this sentence */
653 /* Describe experience if known */
654 if (r_ptr->r_tkills || know_everything)
660 if (flags1 & RF1_UNIQUE)
662 hooked_roff("Killing this");
666 hooked_roff("A kill of this");
671 /* Describe the "quality" */
673 if (flags2 & RF2_ELDRITCH_HORROR) hook_c_roff(TERM_VIOLET, "¶¸µ¤¤òͶ¤¦");/*nuke me*/
675 if (flags2 & RF2_ELDRITCH_HORROR) hook_c_roff(TERM_VIOLET, " sanity-blasting");
679 if (flags3 & RF3_ANIMAL) hook_c_roff(TERM_L_GREEN, "¼«Á³³¦¤Î");
681 if (flags3 & RF3_ANIMAL) hook_c_roff(TERM_L_GREEN, " natural");
685 if (flags3 & RF3_EVIL) hook_c_roff(TERM_L_DARK, "¼Ù°¤Ê¤ë");
687 if (flags3 & RF3_EVIL) hook_c_roff(TERM_L_DARK, " evil");
691 if (flags3 & RF3_GOOD) hook_c_roff(TERM_YELLOW, "Á±ÎɤÊ");
693 if (flags3 & RF3_GOOD) hook_c_roff(TERM_YELLOW, " good");
697 if (flags3 & RF3_UNDEAD) hook_c_roff(TERM_VIOLET, "¥¢¥ó¥Ç¥Ã¥É¤Î");
699 if (flags3 & RF3_UNDEAD) hook_c_roff(TERM_VIOLET, " undead");
702 if (flags3 & RF3_AMBERITE) hook_c_roff(TERM_VIOLET, "¥¢¥ó¥Ð¡¼¤Î²¦Â²¤Î");
704 if (flags3 & RF3_AMBERITE) hook_c_roff(TERM_VIOLET, " Amberite");
708 if ((flags3 & (RF3_DRAGON | RF3_DEMON | RF3_GIANT | RF3_TROLL | RF3_ORC)) || (flags2 & (RF2_QUANTUM | RF2_HUMAN)))
710 /* Describe the "race" */
712 if (flags3 & RF3_DRAGON) hook_c_roff(TERM_ORANGE, "¥É¥é¥´¥ó");
714 if (flags3 & RF3_DRAGON) hook_c_roff(TERM_ORANGE, " dragon");
718 if (flags3 & RF3_DEMON) hook_c_roff(TERM_VIOLET, "¥Ç¡¼¥â¥ó");
720 if (flags3 & RF3_DEMON) hook_c_roff(TERM_VIOLET, " demon");
724 if (flags3 & RF3_GIANT) hook_c_roff(TERM_L_UMBER, "¥¸¥ã¥¤¥¢¥ó¥È");
726 if (flags3 & RF3_GIANT) hook_c_roff(TERM_L_UMBER, " giant");
730 if (flags3 & RF3_TROLL) hook_c_roff(TERM_BLUE, "¥È¥í¥ë");
732 if (flags3 & RF3_TROLL) hook_c_roff(TERM_BLUE, " troll");
736 if (flags3 & RF3_ORC) hook_c_roff(TERM_UMBER, "¥ª¡¼¥¯");
738 if (flags3 & RF3_ORC) hook_c_roff(TERM_UMBER, " orc");
742 if (flags2 & RF2_HUMAN) hook_c_roff(TERM_L_WHITE, "¿Í´Ö");
744 if (flags2 & RF2_HUMAN) hook_c_roff(TERM_L_WHITE, " human");
748 if (flags2 & RF2_QUANTUM) hook_c_roff(TERM_VIOLET, "ÎÌ»ÒÀ¸Êª");
750 if (flags2 & RF2_QUANTUM) hook_c_roff(TERM_VIOLET, " quantum creature");
755 else hooked_roff("¥â¥ó¥¹¥¿¡¼");
757 else hooked_roff(" creature");
762 hooked_roff("¤òÅݤ¹¤³¤È¤Ï");
764 /* Group some variables */
770 hooked_roff(format(" %lu ¥ì¥Ù¥ë¤Î¥¥ã¥é¥¯¥¿¤Ë¤È¤Ã¤Æ", (long)i));
772 i = (long)r_ptr->mexp * r_ptr->level / (p_ptr->max_plv+2);
773 j = ((((long)r_ptr->mexp * r_ptr->level % (p_ptr->max_plv+2)) *
774 (long)1000 / (p_ptr->max_plv+2) + 5) / 10);
776 hooked_roff(format(" Ìó%ld.%02ld ¥Ý¥¤¥ó¥È¤Î·Ð¸³¤È¤Ê¤ë¡£",
779 /* calculate the integer exp part */
780 i = (long)r_ptr->mexp * r_ptr->level / (p_ptr->max_plv+2);
782 /* calculate the fractional exp part scaled by 100, */
783 /* must use long arithmetic to avoid overflow */
784 j = ((((long)r_ptr->mexp * r_ptr->level % (p_ptr->max_plv+2)) *
785 (long)1000 / (p_ptr->max_plv+2) + 5) / 10);
787 /* Mention the experience */
788 hooked_roff(format(" is worth about %ld.%02ld point%s",
790 (((i == 1) && (j == 0)) ? "" : "s")));
792 /* Take account of annoying English */
795 if ((p_ptr->lev / 10) == 1) /* nothing */;
796 else if (i == 1) p = "st";
797 else if (i == 2) p = "nd";
798 else if (i == 3) p = "rd";
800 /* Take account of "leading vowels" in numbers */
803 if ((i == 8) || (i == 11) || (i == 18)) q = "n";
805 /* Mention the dependance on the player's level */
806 hooked_roff(format(" for a%s %lu%s level character. ",
813 if ((flags2 & RF2_AURA_FIRE) && (flags2 & RF2_AURA_ELEC) && (flags3 & RF3_AURA_COLD))
816 hook_c_roff(TERM_VIOLET, format("%^s¤Ï±ê¤Èɹ¤È¥¹¥Ñ¡¼¥¯¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", wd_he[msex]));
818 hook_c_roff(TERM_VIOLET, format("%^s is surrounded by flames and electricity. ", wd_he[msex]));
822 else if ((flags2 & RF2_AURA_FIRE) && (flags2 & RF2_AURA_ELEC))
825 hook_c_roff(TERM_L_RED, format("%^s¤Ï±ê¤È¥¹¥Ñ¡¼¥¯¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", wd_he[msex]));
827 hook_c_roff(TERM_L_RED, format("%^s is surrounded by flames and electricity. ", wd_he[msex]));
831 else if ((flags2 & RF2_AURA_FIRE) && (flags3 & RF3_AURA_COLD))
834 hook_c_roff(TERM_BLUE, format("%^s¤Ï±ê¤Èɹ¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", wd_he[msex]));
836 hook_c_roff(TERM_BLUE, format("%^s is surrounded by flames and electricity. ", wd_he[msex]));
840 else if ((flags3 & RF3_AURA_COLD) && (flags2 & RF2_AURA_ELEC))
843 hook_c_roff(TERM_L_GREEN, format("%^s¤Ïɹ¤È¥¹¥Ñ¡¼¥¯¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", wd_he[msex]));
845 hook_c_roff(TERM_L_GREEN, format("%^s is surrounded by ice and electricity. ", wd_he[msex]));
849 else if (flags2 & RF2_AURA_FIRE)
852 hook_c_roff(TERM_RED, format("%^s¤Ï±ê¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", wd_he[msex]));
854 hook_c_roff(TERM_RED, format("%^s is surrounded by flames. ", wd_he[msex]));
858 else if (flags3 & RF3_AURA_COLD)
861 hook_c_roff(TERM_BLUE, format("%^s¤Ïɹ¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", wd_he[msex]));
863 hook_c_roff(TERM_BLUE, format("%^s is surrounded by ice. ", wd_he[msex]));
867 else if (flags2 & RF2_AURA_ELEC)
870 hook_c_roff(TERM_L_BLUE, format("%^s¤Ï¥¹¥Ñ¡¼¥¯¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", wd_he[msex]));
872 hook_c_roff(TERM_L_BLUE, format("%^s is surrounded by electricity. ", wd_he[msex]));
877 if (flags2 & RF2_REFLECTING)
880 hooked_roff(format("%^s¤ÏÌð¤Î¼öʸ¤òÄ·¤ÍÊÖ¤¹¡£", wd_he[msex]));
882 hooked_roff(format("%^s reflects bolt spells. ", wd_he[msex]));
887 /* Describe escorts */
888 if ((flags1 & RF1_ESCORT) || (flags1 & RF1_ESCORTS))
891 hooked_roff(format("%^s¤ÏÄ̾ï¸î±Ò¤òȼ¤Ã¤Æ¸½¤ì¤ë¡£",
893 hooked_roff(format("%^s usually appears with escorts. ",
899 /* Describe friends */
900 else if (flags1 & RF1_FRIENDS)
903 hooked_roff(format("%^s¤ÏÄ̾クÃĤǸ½¤ì¤ë¡£",
905 hooked_roff(format("%^s usually appears in groups. ",
912 /* Collect inate attacks */
915 if (flags4 & RF4_SHRIEK) {vp[vn] = "ÈáÌĤǽõ¤±¤òµá¤á¤ë";color[vn++] = TERM_L_WHITE;}
917 if (flags4 & RF4_SHRIEK) {vp[vn] = "shriek for help";color[vn++] = TERM_L_WHITE;}
921 if (flags4 & RF4_ROCKET) {vp[vn] = "¥í¥±¥Ã¥È¤òȯ¼Í¤¹¤ë";color[vn++] = TERM_UMBER;}
923 if (flags4 & RF4_ROCKET) {vp[vn] = "shoot a rocket";color[vn++] = TERM_UMBER;}
927 if (flags4 & RF4_SHOOT) {vp[vn] = "¼Í·â¤ò¤¹¤ë";color[vn++] = TERM_UMBER;}
929 if (flags4 & RF4_SHOOT) {vp[vn] = "fire an arrow";color[vn++] = TERM_UMBER;}
933 if (flags6 & (RF6_SPECIAL)) {vp[vn] = "ÆÃÊ̤ʹÔÆ°¤ò¤¹¤ë";color[vn++] = TERM_VIOLET;}
935 if (flags6 & (RF6_SPECIAL)) {vp[vn] = "do something";color[vn++] = TERM_VIOLET;}
938 /* Describe inate attacks */
943 hooked_roff(format("%^s¤Ï", wd_he[msex]));
945 hooked_roff(format("%^s", wd_he[msex]));
950 for (n = 0; n < vn; n++)
955 jverb(vp[n], jverb_buf, JVERB_OR);
956 hook_c_roff(color[n], jverb_buf);
957 hook_c_roff(color[n], "¤ê");
960 else hook_c_roff(color[n], vp[n]);
963 if (n == 0) hooked_roff(" may ");
964 else if (n < vn - 1) hooked_roff(", ");
965 else hooked_roff(" or ");
968 hook_c_roff(color[n], vp[n]);
975 hooked_roff("¤³¤È¤¬¤¢¤ë¡£");
983 /* Collect breaths */
986 if (flags4 & (RF4_BR_ACID)) {vp[vn] = "»À";color[vn++] = TERM_GREEN;}
988 if (flags4 & (RF4_BR_ACID)) {vp[vn] = "acid";color[vn++] = TERM_GREEN;}
992 if (flags4 & (RF4_BR_ELEC)) {vp[vn] = "°ðºÊ";color[vn++] = TERM_BLUE;}
994 if (flags4 & (RF4_BR_ELEC)) {vp[vn] = "lightning";color[vn++] = TERM_BLUE;}
998 if (flags4 & (RF4_BR_FIRE)) {vp[vn] = "²Ð±ê";color[vn++] = TERM_RED;}
1000 if (flags4 & (RF4_BR_FIRE)) {vp[vn] = "fire";color[vn++] = TERM_RED;}
1004 if (flags4 & (RF4_BR_COLD)) {vp[vn] = "Î䵤";color[vn++] = TERM_L_WHITE;}
1006 if (flags4 & (RF4_BR_COLD)) {vp[vn] = "frost";color[vn++] = TERM_L_WHITE;}
1010 if (flags4 & (RF4_BR_POIS)) {vp[vn] = "ÆÇ";color[vn++] = TERM_L_GREEN;}
1012 if (flags4 & (RF4_BR_POIS)) {vp[vn] = "poison";color[vn++] = TERM_L_GREEN;}
1016 if (flags4 & (RF4_BR_NETH)) {vp[vn] = "ÃϹö";color[vn++] = TERM_L_DARK;}
1018 if (flags4 & (RF4_BR_NETH)) {vp[vn] = "nether";color[vn++] = TERM_L_DARK;}
1022 if (flags4 & (RF4_BR_LITE)) {vp[vn] = "Á®¸÷";color[vn++] = TERM_YELLOW;}
1024 if (flags4 & (RF4_BR_LITE)) {vp[vn] = "light";color[vn++] = TERM_YELLOW;}
1028 if (flags4 & (RF4_BR_DARK)) {vp[vn] = "°Å¹õ";color[vn++] = TERM_L_DARK;}
1030 if (flags4 & (RF4_BR_DARK)) {vp[vn] = "darkness";color[vn++] = TERM_L_DARK;}
1034 if (flags4 & (RF4_BR_CONF)) {vp[vn] = "º®Íð";color[vn++] = TERM_L_UMBER;}
1036 if (flags4 & (RF4_BR_CONF)) {vp[vn] = "confusion";color[vn++] = TERM_L_UMBER;}
1040 if (flags4 & (RF4_BR_SOUN)) {vp[vn] = "¹ì²»";color[vn++] = TERM_ORANGE;}
1042 if (flags4 & (RF4_BR_SOUN)) {vp[vn] = "sound";color[vn++] = TERM_ORANGE;}
1046 if (flags4 & (RF4_BR_CHAO)) {vp[vn] = "¥«¥ª¥¹";color[vn++] = TERM_VIOLET;}
1048 if (flags4 & (RF4_BR_CHAO)) {vp[vn] = "chaos";color[vn++] = TERM_VIOLET;}
1052 if (flags4 & (RF4_BR_DISE)) {vp[vn] = "Îô²½";color[vn++] = TERM_VIOLET;}
1054 if (flags4 & (RF4_BR_DISE)) {vp[vn] = "disenchantment";color[vn++] = TERM_VIOLET;}
1058 if (flags4 & (RF4_BR_NEXU)) {vp[vn] = "°ø²Ìº®Íð";color[vn++] = TERM_VIOLET;}
1060 if (flags4 & (RF4_BR_NEXU)) {vp[vn] = "nexus";color[vn++] = TERM_VIOLET;}
1064 if (flags4 & (RF4_BR_TIME)) {vp[vn] = "»þ´ÖµÕž";color[vn++] = TERM_L_BLUE;}
1066 if (flags4 & (RF4_BR_TIME)) {vp[vn] = "time";color[vn++] = TERM_L_BLUE;}
1070 if (flags4 & (RF4_BR_INER)) {vp[vn] = "ÃÙÆß";color[vn++] = TERM_SLATE;}
1072 if (flags4 & (RF4_BR_INER)) {vp[vn] = "inertia";color[vn++] = TERM_SLATE;}
1076 if (flags4 & (RF4_BR_GRAV)) {vp[vn] = "½ÅÎÏ";color[vn++] = TERM_SLATE;}
1078 if (flags4 & (RF4_BR_GRAV)) {vp[vn] = "gravity";color[vn++] = TERM_SLATE;}
1082 if (flags4 & (RF4_BR_SHAR)) {vp[vn] = "ÇËÊÒ";color[vn++] = TERM_L_UMBER;}
1084 if (flags4 & (RF4_BR_SHAR)) {vp[vn] = "shards";color[vn++] = TERM_L_UMBER;}
1088 if (flags4 & (RF4_BR_PLAS)) {vp[vn] = "¥×¥é¥º¥Þ";color[vn++] = TERM_L_RED;}
1090 if (flags4 & (RF4_BR_PLAS)) {vp[vn] = "plasma";color[vn++] = TERM_L_RED;}
1094 if (flags4 & (RF4_BR_WALL)) {vp[vn] = "¥Õ¥©¡¼¥¹";color[vn++] = TERM_UMBER;}
1096 if (flags4 & (RF4_BR_WALL)) {vp[vn] = "force";color[vn++] = TERM_UMBER;}
1100 if (flags4 & (RF4_BR_MANA)) {vp[vn] = "ËâÎÏ";color[vn++] = TERM_L_BLUE;}
1102 if (flags4 & (RF4_BR_MANA)) {vp[vn] = "mana";color[vn++] = TERM_L_BLUE;}
1106 if (flags4 & (RF4_BR_NUKE)) {vp[vn] = "Êü¼ÍÀÇÑ´þʪ";color[vn++] = TERM_L_GREEN;}
1108 if (flags4 & (RF4_BR_NUKE)) {vp[vn] = "toxic waste";color[vn++] = TERM_L_GREEN;}
1112 if (flags4 & (RF4_BR_DISI)) {vp[vn] = "ʬ²ò";color[vn++] = TERM_SLATE;}
1114 if (flags4 & (RF4_BR_DISI)) {vp[vn] = "disintegration";color[vn++] = TERM_SLATE;}
1118 /* Describe breaths */
1126 hooked_roff(format("%^s¤Ï", wd_he[msex]));
1128 hooked_roff(format("%^s", wd_he[msex]));
1133 for (n = 0; n < vn; n++)
1137 if ( n != 0 ) hooked_roff("¤ä");
1139 if (n == 0) hooked_roff(" may breathe ");
1140 else if (n < vn-1) hooked_roff(", ");
1141 else hooked_roff(" or ");
1146 hook_c_roff(color[n], vp[n]);
1149 hooked_roff("¤Î¥Ö¥ì¥¹¤òÅǤ¯¤³¤È¤¬¤¢¤ë");
1154 /* Collect spells */
1157 if (flags5 & (RF5_BA_ACID)) {vp[vn] = "¥¢¥·¥Ã¥É¡¦¥Ü¡¼¥ë";color[vn++] = TERM_GREEN;}
1159 if (flags5 & (RF5_BA_ACID)) {vp[vn] = "produce acid balls";color[vn++] = TERM_GREEN;}
1163 if (flags5 & (RF5_BA_ELEC)) {vp[vn] = "¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë";color[vn++] = TERM_BLUE;}
1165 if (flags5 & (RF5_BA_ELEC)) {vp[vn] = "produce lightning balls";color[vn++] = TERM_BLUE;}
1169 if (flags5 & (RF5_BA_FIRE)) {vp[vn] = "¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë";color[vn++] = TERM_RED;}
1171 if (flags5 & (RF5_BA_FIRE)) {vp[vn] = "produce fire balls";color[vn++] = TERM_RED;}
1175 if (flags5 & (RF5_BA_COLD)) {vp[vn] = "¥¢¥¤¥¹¡¦¥Ü¡¼¥ë";color[vn++] = TERM_L_WHITE;}
1177 if (flags5 & (RF5_BA_COLD)) {vp[vn] = "produce frost balls";color[vn++] = TERM_L_WHITE;}
1181 if (flags5 & (RF5_BA_POIS)) {vp[vn] = "°½±À";color[vn++] = TERM_L_GREEN;}
1183 if (flags5 & (RF5_BA_POIS)) {vp[vn] = "produce poison balls";color[vn++] = TERM_L_GREEN;}
1187 if (flags5 & (RF5_BA_NETH)) {vp[vn] = "ÃϹöµå";color[vn++] = TERM_L_DARK;}
1189 if (flags5 & (RF5_BA_NETH)) {vp[vn] = "produce nether balls";color[vn++] = TERM_L_DARK;}
1193 if (flags5 & (RF5_BA_WATE)) {vp[vn] = "¥¦¥©¡¼¥¿¡¼¡¦¥Ü¡¼¥ë";color[vn++] = TERM_BLUE;}
1195 if (flags5 & (RF5_BA_WATE)) {vp[vn] = "produce water balls";color[vn++] = TERM_BLUE;}
1199 if (flags4 & (RF4_BA_NUKE)) {vp[vn] = "Êü¼Íǽµå";color[vn++] = TERM_L_GREEN;}
1201 if (flags4 & (RF4_BA_NUKE)) {vp[vn] = "produce balls of radiation";color[vn++] = TERM_L_GREEN;}
1205 if (flags5 & (RF5_BA_MANA)) {vp[vn] = "ËâÎϤÎÍò";color[vn++] = TERM_L_BLUE;}
1207 if (flags5 & (RF5_BA_MANA)) {vp[vn] = "invoke mana storms";color[vn++] = TERM_L_BLUE;}
1211 if (flags5 & (RF5_BA_DARK)) {vp[vn] = "°Å¹õ¤ÎÍò";color[vn++] = TERM_L_DARK;}
1213 if (flags5 & (RF5_BA_DARK)) {vp[vn] = "invoke darkness storms";color[vn++] = TERM_L_DARK;}
1217 if (flags5 & (RF5_BA_LITE)) {vp[vn] = "¥¹¥¿¡¼¥Ð¡¼¥¹¥È";color[vn++] = TERM_YELLOW;}
1219 if (flags5 & (RF5_BA_LITE)) {vp[vn] = "invoke starburst";color[vn++] = TERM_YELLOW;}
1223 if (flags4 & (RF4_BA_CHAO)) {vp[vn] = "½ã¥í¥°¥ë¥¹";color[vn++] = TERM_VIOLET;}
1225 if (flags4 & (RF4_BA_CHAO)) {vp[vn] = "invoke raw Logrus";color[vn++] = TERM_VIOLET;}
1229 if (flags6 & (RF6_HAND_DOOM)) {vp[vn] = "ÇËÌǤμê";color[vn++] = TERM_VIOLET;}
1231 if (flags6 & (RF6_HAND_DOOM)) {vp[vn] = "invoke the Hand of Doom";color[vn++] = TERM_VIOLET;}
1235 if (flags6 & (RF6_PSY_SPEAR)) {vp[vn] = "¸÷¤Î·õ";color[vn++] = TERM_YELLOW;}
1237 if (flags6 & (RF6_PSY_SPEAR)) {vp[vn] = "psycho-spear";color[vn++] = TERM_YELLOW;}
1241 if (flags5 & (RF5_DRAIN_MANA)) {vp[vn] = "ËâÎϵۼý";color[vn++] = TERM_SLATE;}
1243 if (flags5 & (RF5_DRAIN_MANA)) {vp[vn] = "drain mana";color[vn++] = TERM_SLATE;}
1247 if (flags5 & (RF5_MIND_BLAST)) {vp[vn] = "Àº¿À¹¶·â";color[vn++] = TERM_L_RED;}
1249 if (flags5 & (RF5_MIND_BLAST)) {vp[vn] = "cause mind blasting";color[vn++] = TERM_L_RED;}
1253 if (flags5 & (RF5_BRAIN_SMASH)) {vp[vn] = "Ǿ¹¶·â";color[vn++] = TERM_RED;}
1255 if (flags5 & (RF5_BRAIN_SMASH)) {vp[vn] = "cause brain smashing";color[vn++] = TERM_RED;}
1259 if (flags5 & (RF5_CAUSE_1)) {vp[vn] = "·Ú½ý¡Ü¼ö¤¤";color[vn++] = TERM_L_WHITE;}
1261 if (flags5 & (RF5_CAUSE_1)) {vp[vn] = "cause light wounds and cursing";color[vn++] = TERM_L_WHITE;}
1265 if (flags5 & (RF5_CAUSE_2)) {vp[vn] = "½Å½ý¡Ü¼ö¤¤";color[vn++] = TERM_L_WHITE;}
1267 if (flags5 & (RF5_CAUSE_2)) {vp[vn] = "cause serious wounds and cursing";color[vn++] = TERM_L_WHITE;}
1271 if (flags5 & (RF5_CAUSE_3)) {vp[vn] = "Ã×Ì¿½ý¡Ü¼ö¤¤";color[vn++] = TERM_L_WHITE;}
1273 if (flags5 & (RF5_CAUSE_3)) {vp[vn] = "cause critical wounds and cursing";color[vn++] = TERM_L_WHITE;}
1277 if (flags5 & (RF5_CAUSE_4)) {vp[vn] = "È빦¤òÆͤ¯";color[vn++] = TERM_L_WHITE;}
1279 if (flags5 & (RF5_CAUSE_4)) {vp[vn] = "cause mortal wounds";color[vn++] = TERM_L_WHITE;}
1283 if (flags5 & (RF5_BO_ACID)) {vp[vn] = "¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È";color[vn++] = TERM_GREEN;}
1285 if (flags5 & (RF5_BO_ACID)) {vp[vn] = "produce acid bolts";color[vn++] = TERM_GREEN;}
1289 if (flags5 & (RF5_BO_ELEC)) {vp[vn] = "¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È";color[vn++] = TERM_BLUE;}
1291 if (flags5 & (RF5_BO_ELEC)) {vp[vn] = "produce lightning bolts";color[vn++] = TERM_BLUE;}
1295 if (flags5 & (RF5_BO_FIRE)) {vp[vn] = "¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È";color[vn++] = TERM_RED;}
1297 if (flags5 & (RF5_BO_FIRE)) {vp[vn] = "produce fire bolts";color[vn++] = TERM_RED;}
1301 if (flags5 & (RF5_BO_COLD)) {vp[vn] = "¥¢¥¤¥¹¡¦¥Ü¥ë¥È";color[vn++] = TERM_L_WHITE;}
1303 if (flags5 & (RF5_BO_COLD)) {vp[vn] = "produce frost bolts";color[vn++] = TERM_L_WHITE;}
1307 if (flags5 & (RF5_BO_NETH)) {vp[vn] = "ÃϹö¤ÎÌð";color[vn++] = TERM_L_DARK;}
1309 if (flags5 & (RF5_BO_NETH)) {vp[vn] = "produce nether bolts";color[vn++] = TERM_L_DARK;}
1313 if (flags5 & (RF5_BO_WATE)) {vp[vn] = "¥¦¥©¡¼¥¿¡¼¡¦¥Ü¥ë¥È";color[vn++] = TERM_BLUE;}
1315 if (flags5 & (RF5_BO_WATE)) {vp[vn] = "produce water bolts";color[vn++] = TERM_BLUE;}
1319 if (flags5 & (RF5_BO_MANA)) {vp[vn] = "ËâÎϤÎÌð";color[vn++] = TERM_L_BLUE;}
1321 if (flags5 & (RF5_BO_MANA)) {vp[vn] = "produce mana bolts";color[vn++] = TERM_L_BLUE;}
1325 if (flags5 & (RF5_BO_PLAS)) {vp[vn] = "¥×¥é¥º¥Þ¡¦¥Ü¥ë¥È";color[vn++] = TERM_L_RED;}
1327 if (flags5 & (RF5_BO_PLAS)) {vp[vn] = "produce plasma bolts";color[vn++] = TERM_L_RED;}
1331 if (flags5 & (RF5_BO_ICEE)) {vp[vn] = "¶Ë´¨¤ÎÌð";color[vn++] = TERM_WHITE;}
1333 if (flags5 & (RF5_BO_ICEE)) {vp[vn] = "produce ice bolts";color[vn++] = TERM_WHITE;}
1337 if (flags5 & (RF5_MISSILE)) {vp[vn] = "¥Þ¥¸¥Ã¥¯¥ß¥µ¥¤¥ë";color[vn++] = TERM_SLATE;}
1339 if (flags5 & (RF5_MISSILE)) {vp[vn] = "produce magic missiles";color[vn++] = TERM_SLATE;}
1343 if (flags5 & (RF5_SCARE)) {vp[vn] = "¶²ÉÝ";color[vn++] = TERM_SLATE;}
1345 if (flags5 & (RF5_SCARE)) {vp[vn] = "terrify";color[vn++] = TERM_SLATE;}
1349 if (flags5 & (RF5_BLIND)) {vp[vn] = "Ìܤ¯¤é¤Þ¤·";color[vn++] = TERM_L_DARK;}
1351 if (flags5 & (RF5_BLIND)) {vp[vn] = "blind";color[vn++] = TERM_L_DARK;}
1355 if (flags5 & (RF5_CONF)) {vp[vn] = "º®Íð";color[vn++] = TERM_L_UMBER;}
1357 if (flags5 & (RF5_CONF)) {vp[vn] = "confuse";color[vn++] = TERM_L_UMBER;}
1361 if (flags5 & (RF5_SLOW)) {vp[vn] = "¸ºÂ®";color[vn++] = TERM_UMBER;}
1363 if (flags5 & (RF5_SLOW)) {vp[vn] = "slow";color[vn++] = TERM_UMBER;}
1367 if (flags5 & (RF5_HOLD)) {vp[vn] = "Ëãáã";color[vn++] = TERM_RED;}
1369 if (flags5 & (RF5_HOLD)) {vp[vn] = "paralyze";color[vn++] = TERM_RED;}
1373 if (flags6 & (RF6_HASTE)) {vp[vn] = "²Ã®";color[vn++] = TERM_L_GREEN;}
1375 if (flags6 & (RF6_HASTE)) {vp[vn] = "haste-self";color[vn++] = TERM_L_GREEN;}
1379 if (flags6 & (RF6_HEAL)) {vp[vn] = "¼£Ìþ";color[vn++] = TERM_WHITE;}
1381 if (flags6 & (RF6_HEAL)) {vp[vn] = "heal-self";color[vn++] = TERM_WHITE;}
1385 if (flags6 & (RF6_INVULNER)) {vp[vn] = "̵Ũ²½";color[vn++] = TERM_WHITE;}
1387 if (flags6 & (RF6_INVULNER)) {vp[vn] = "make invulnerable";color[vn++] = TERM_WHITE;}
1391 if (flags4 & RF4_DISPEL) {vp[vn] = "ËâÎϾõî";color[vn++] = TERM_L_WHITE;}
1393 if (flags4 & RF4_DISPEL) {vp[vn] = "dispel-magic";color[vn++] = TERM_L_WHITE;}
1397 if (flags6 & (RF6_BLINK)) {vp[vn] = "¥·¥ç¡¼¥È¥Æ¥ì¥Ý¡¼¥È";color[vn++] = TERM_UMBER;}
1399 if (flags6 & (RF6_BLINK)) {vp[vn] = "blink-self";color[vn++] = TERM_UMBER;}
1403 if (flags6 & (RF6_TPORT)) {vp[vn] = "¥Æ¥ì¥Ý¡¼¥È";color[vn++] = TERM_ORANGE;}
1405 if (flags6 & (RF6_TPORT)) {vp[vn] = "teleport-self";color[vn++] = TERM_ORANGE;}
1409 if (flags6 & (RF6_WORLD)) {vp[vn] = "»þ¤ò»ß¤á¤ë";color[vn++] = TERM_L_BLUE;}
1411 if (flags6 & (RF6_WORLD)) {vp[vn] = "stop the time";color[vn++] = TERM_L_BLUE;}
1415 if (flags6 & (RF6_TELE_TO)) {vp[vn] = "¥Æ¥ì¥Ý¡¼¥È¥Ð¥Ã¥¯";color[vn++] = TERM_L_UMBER;}
1417 if (flags6 & (RF6_TELE_TO)) {vp[vn] = "teleport to";color[vn++] = TERM_L_UMBER;}
1421 if (flags6 & (RF6_TELE_AWAY)) {vp[vn] = "¥Æ¥ì¥Ý¡¼¥È¥¢¥¦¥§¥¤";color[vn++] = TERM_UMBER;}
1423 if (flags6 & (RF6_TELE_AWAY)) {vp[vn] = "teleport away";color[vn++] = TERM_UMBER;}
1427 if (flags6 & (RF6_TELE_LEVEL)) {vp[vn] = "¥Æ¥ì¥Ý¡¼¥È¡¦¥ì¥Ù¥ë";color[vn++] = TERM_ORANGE;}
1429 if (flags6 & (RF6_TELE_LEVEL)) {vp[vn] = "teleport level";color[vn++] = TERM_ORANGE;}
1432 if (flags6 & (RF6_DARKNESS))
1434 if ((p_ptr->pclass != CLASS_NINJA) || (r_ptr->flags3 & (RF3_UNDEAD | RF3_HURT_LITE)) || (r_ptr->flags7 & RF7_DARK_MASK))
1437 vp[vn] = "°Å°Ç"; color[vn++] = TERM_L_DARK;
1439 vp[vn] = "create darkness"; color[vn++] = TERM_L_DARK;
1445 vp[vn] = "Á®¸÷"; color[vn++] = TERM_YELLOW;
1447 vp[vn] = "create light"; color[vn++] = TERM_YELLOW;
1453 if (flags6 & (RF6_TRAPS)) {vp[vn] = "¥È¥é¥Ã¥×";color[vn++] = TERM_BLUE;}
1455 if (flags6 & (RF6_TRAPS)) {vp[vn] = "create traps";color[vn++] = TERM_BLUE;}
1459 if (flags6 & (RF6_FORGET)) {vp[vn] = "µ²±¾Ãµî";color[vn++] = TERM_BLUE;}
1461 if (flags6 & (RF6_FORGET)) {vp[vn] = "cause amnesia";color[vn++] = TERM_BLUE;}
1465 if (flags6 & (RF6_RAISE_DEAD)) {vp[vn] = "»à¼ÔÉü³è";color[vn++] = TERM_RED;}
1467 if (flags6 & (RF6_RAISE_DEAD)) {vp[vn] = "raise dead";color[vn++] = TERM_RED;}
1471 if (flags6 & (RF6_S_MONSTER)) {vp[vn] = "¥â¥ó¥¹¥¿¡¼°ìÂξ¤´";color[vn++] = TERM_SLATE;}
1473 if (flags6 & (RF6_S_MONSTER)) {vp[vn] = "summon a monster";color[vn++] = TERM_SLATE;}
1477 if (flags6 & (RF6_S_MONSTERS)) {vp[vn] = "¥â¥ó¥¹¥¿¡¼Ê£¿ô¾¤´";color[vn++] = TERM_L_WHITE;}
1479 if (flags6 & (RF6_S_MONSTERS)) {vp[vn] = "summon monsters";color[vn++] = TERM_L_WHITE;}
1483 if (flags6 & (RF6_S_KIN)) {vp[vn] = "µß±ç¾¤´";color[vn++] = TERM_ORANGE;}
1485 if (flags6 & (RF6_S_KIN)) {vp[vn] = "summon aid";color[vn++] = TERM_ORANGE;}
1489 if (flags6 & (RF6_S_ANT)) {vp[vn] = "¥¢¥ê¾¤´";color[vn++] = TERM_RED;}
1491 if (flags6 & (RF6_S_ANT)) {vp[vn] = "summon ants";color[vn++] = TERM_RED;}
1495 if (flags6 & (RF6_S_SPIDER)) {vp[vn] = "¥¯¥â¾¤´";color[vn++] = TERM_L_DARK;}
1497 if (flags6 & (RF6_S_SPIDER)) {vp[vn] = "summon spiders";color[vn++] = TERM_L_DARK;}
1501 if (flags6 & (RF6_S_HOUND)) {vp[vn] = "¥Ï¥¦¥ó¥É¾¤´";color[vn++] = TERM_L_UMBER;}
1503 if (flags6 & (RF6_S_HOUND)) {vp[vn] = "summon hounds";color[vn++] = TERM_L_UMBER;}
1507 if (flags6 & (RF6_S_HYDRA)) {vp[vn] = "¥Ò¥É¥é¾¤´";color[vn++] = TERM_L_GREEN;}
1509 if (flags6 & (RF6_S_HYDRA)) {vp[vn] = "summon hydras";color[vn++] = TERM_L_GREEN;}
1513 if (flags6 & (RF6_S_ANGEL)) {vp[vn] = "Å·»È°ìÂξ¤´";color[vn++] = TERM_YELLOW;}
1515 if (flags6 & (RF6_S_ANGEL)) {vp[vn] = "summon an angel";color[vn++] = TERM_YELLOW;}
1519 if (flags6 & (RF6_S_DEMON)) {vp[vn] = "¥Ç¡¼¥â¥ó°ìÂξ¤´";color[vn++] = TERM_L_RED;}
1521 if (flags6 & (RF6_S_DEMON)) {vp[vn] = "summon a demon";color[vn++] = TERM_L_RED;}
1525 if (flags6 & (RF6_S_UNDEAD)) {vp[vn] = "¥¢¥ó¥Ç¥Ã¥É°ìÂξ¤´";color[vn++] = TERM_L_DARK;}
1527 if (flags6 & (RF6_S_UNDEAD)) {vp[vn] = "summon an undead";color[vn++] = TERM_L_DARK;}
1531 if (flags6 & (RF6_S_DRAGON)) {vp[vn] = "¥É¥é¥´¥ó°ìÂξ¤´";color[vn++] = TERM_ORANGE;}
1533 if (flags6 & (RF6_S_DRAGON)) {vp[vn] = "summon a dragon";color[vn++] = TERM_ORANGE;}
1537 if (flags6 & (RF6_S_HI_UNDEAD)) {vp[vn] = "¶¯ÎϤʥ¢¥ó¥Ç¥Ã¥É¾¤´";color[vn++] = TERM_L_DARK;}
1539 if (flags6 & (RF6_S_HI_UNDEAD)) {vp[vn] = "summon Greater Undead";color[vn++] = TERM_L_DARK;}
1543 if (flags6 & (RF6_S_HI_DRAGON)) {vp[vn] = "¸ÅÂå¥É¥é¥´¥ó¾¤´";color[vn++] = TERM_ORANGE;}
1545 if (flags6 & (RF6_S_HI_DRAGON)) {vp[vn] = "summon Ancient Dragons";color[vn++] = TERM_ORANGE;}
1549 if (flags6 & (RF6_S_CYBER)) {vp[vn] = "¥µ¥¤¥Ð¡¼¥Ç¡¼¥â¥ó¾¤´";color[vn++] = TERM_UMBER;}
1551 if (flags6 & (RF6_S_CYBER)) {vp[vn] = "summon Cyberdemons";color[vn++] = TERM_UMBER;}
1555 if (flags6 & (RF6_S_AMBERITES)) {vp[vn] = "¥¢¥ó¥Ð¡¼¤Î²¦Â²¾¤´";color[vn++] = TERM_VIOLET;}
1557 if (flags6 & (RF6_S_AMBERITES)) {vp[vn] = "summon Lords of Amber";color[vn++] = TERM_VIOLET;}
1561 if (flags6 & (RF6_S_UNIQUE)) {vp[vn] = "¥æ¥Ë¡¼¥¯¡¦¥â¥ó¥¹¥¿¡¼¾¤´";color[vn++] = TERM_VIOLET;}
1563 if (flags6 & (RF6_S_UNIQUE)) {vp[vn] = "summon Unique Monsters";color[vn++] = TERM_VIOLET;}
1567 /* Describe spells */
1577 hooked_roff("¡¢¤Ê¤ª¤«¤Ä");
1579 hooked_roff(", and is also");
1586 hooked_roff(format("%^s¤Ï", wd_he[msex]));
1588 hooked_roff(format("%^s is", wd_he[msex]));
1595 if (flags2 & (RF2_SMART)) hook_c_roff(TERM_YELLOW, "Ū³Î¤Ë");
1598 hooked_roff("ËâË¡¤ò»È¤¦¤³¤È¤¬¤Ç¤¡¢");
1601 hooked_roff(" magical, casting spells");
1604 if (flags2 & RF2_SMART) hook_c_roff(TERM_YELLOW, " intelligently");
1609 for (n = 0; n < vn; n++)
1613 if ( n != 0 ) hooked_roff("¡¢");
1615 if (n == 0) hooked_roff(" which ");
1616 else if (n < vn-1) hooked_roff(", ");
1617 else hooked_roff(" or ");
1622 hook_c_roff(color[n], vp[n]);
1625 hooked_roff("¤Î¼öʸ¤ò¾§¤¨¤ë¤³¤È¤¬¤¢¤ë");
1630 /* End the sentence about inate/other spells */
1631 if (breath || magic)
1634 m = r_ptr->r_cast_spell;
1636 /* Average frequency */
1637 n = r_ptr->freq_spell;
1639 /* Describe the spell frequency */
1640 if (m > 100 || know_everything)
1643 hooked_roff(format("(³ÎΨ:1/%d)", 100 / n));
1645 hooked_roff(format("; 1 time in %d", 100 / n));
1650 /* Guess at the frequency */
1653 n = ((n + 9) / 10) * 10;
1655 hooked_roff(format("(³ÎΨ:Ìó1/%d)", 100 / n));
1657 hooked_roff(format("; about 1 time in %d", 100 / n));
1662 /* End this sentence */
1671 /* Describe monster "toughness" */
1672 if (know_armour(r_idx))
1676 hooked_roff(format("%^s¤Ï AC%d ¤ÎËɸæÎϤÈ",
1678 hooked_roff(format("%^s has an armor rating of %d",
1681 wd_he[msex], r_ptr->ac));
1683 /* Maximized hitpoints */
1684 if (flags1 & RF1_FORCE_MAXHP)
1687 hooked_roff(format(" %d ¤ÎÂÎÎϤ¬¤¢¤ë¡£",
1689 hooked_roff(format(" and a life rating of %d. ",
1692 r_ptr->hdice * r_ptr->hside));
1695 /* Variable hitpoints */
1699 hooked_roff(format(" %dd%d ¤ÎÂÎÎϤ¬¤¢¤ë¡£",
1701 hooked_roff(format(" and a life rating of %dd%d. ",
1704 r_ptr->hdice, r_ptr->hside));
1710 /* Collect special abilities. */
1713 if (flags7 & (RF7_HAS_LITE_1 | RF7_HAS_LITE_2)) { vp[vn] = "¥À¥ó¥¸¥ç¥ó¤ò¾È¤é¤¹"; color[vn++] = TERM_WHITE; }
1715 if (flags7 & (RF7_HAS_LITE_1 | RF7_HAS_LITE_2)) { vp[vn] = "illuminate the dungeon"; color[vn++] = TERM_WHITE; }
1719 if (flags7 & (RF7_HAS_DARK_1 | RF7_HAS_DARK_2)) { vp[vn] = "¥À¥ó¥¸¥ç¥ó¤ò°Å¤¯¤¹¤ë"; color[vn++] = TERM_L_DARK; }
1721 if (flags7 & (RF7_HAS_DARK_1 | RF7_HAS_DARK_2)) { vp[vn] = "darken the dungeon"; color[vn++] = TERM_L_DARK; }
1725 if (flags2 & RF2_OPEN_DOOR) { vp[vn] = "¥É¥¢¤ò³«¤±¤ë"; color[vn++] = TERM_WHITE; }
1727 if (flags2 & RF2_OPEN_DOOR) { vp[vn] = "open doors"; color[vn++] = TERM_WHITE; }
1731 if (flags2 & RF2_BASH_DOOR) { vp[vn] = "¥É¥¢¤òÂǤÁÇˤë"; color[vn++] = TERM_WHITE; }
1733 if (flags2 & RF2_BASH_DOOR) { vp[vn] = "bash down doors"; color[vn++] = TERM_WHITE; }
1737 if (flags2 & RF2_PASS_WALL) { vp[vn] = "Êɤò¤¹¤êÈ´¤±¤ë"; color[vn++] = TERM_WHITE; }
1739 if (flags2 & RF2_PASS_WALL) { vp[vn] = "pass through walls"; color[vn++] = TERM_WHITE; }
1743 if (flags2 & RF2_KILL_WALL) { vp[vn] = "Êɤò·¡¤ê¿Ê¤à"; color[vn++] = TERM_WHITE; }
1745 if (flags2 & RF2_KILL_WALL) { vp[vn] = "bore through walls"; color[vn++] = TERM_WHITE; }
1749 if (flags2 & RF2_MOVE_BODY) { vp[vn] = "¼å¤¤¥â¥ó¥¹¥¿¡¼¤ò²¡¤·¤Î¤±¤ë"; color[vn++] = TERM_WHITE; }
1751 if (flags2 & RF2_MOVE_BODY) { vp[vn] = "push past weaker monsters"; color[vn++] = TERM_WHITE; }
1755 if (flags2 & RF2_KILL_BODY) { vp[vn] = "¼å¤¤¥â¥ó¥¹¥¿¡¼¤òÅݤ¹"; color[vn++] = TERM_WHITE; }
1757 if (flags2 & RF2_KILL_BODY) { vp[vn] = "destroy weaker monsters"; color[vn++] = TERM_WHITE; }
1761 if (flags2 & RF2_TAKE_ITEM) { vp[vn] = "¥¢¥¤¥Æ¥à¤ò½¦¤¦"; color[vn++] = TERM_WHITE; }
1763 if (flags2 & RF2_TAKE_ITEM) { vp[vn] = "pick up objects"; color[vn++] = TERM_WHITE; }
1767 if (flags2 & RF2_KILL_ITEM) { vp[vn] = "¥¢¥¤¥Æ¥à¤ò²õ¤¹"; color[vn++] = TERM_WHITE; }
1769 if (flags2 & RF2_KILL_ITEM) { vp[vn] = "destroy objects"; color[vn++] = TERM_WHITE; }
1773 /* Describe special abilities. */
1778 hooked_roff(format("%^s¤Ï", wd_he[msex]));
1780 hooked_roff(format("%^s", wd_he[msex]));
1785 for (n = 0; n < vn; n++)
1791 jverb(vp[n], jverb_buf, JVERB_AND);
1792 hook_c_roff(color[n], jverb_buf);
1795 else hook_c_roff(color[n], vp[n]);
1797 if (n == 0) hooked_roff(" can ");
1798 else if (n < vn - 1) hooked_roff(", ");
1799 else hooked_roff(" and ");
1802 hook_c_roff(color[n], vp[n]);
1809 hooked_roff("¤³¤È¤¬¤Ç¤¤ë¡£");
1817 /* Describe special abilities. */
1818 if (flags7 & (RF7_SELF_LITE_1 | RF7_SELF_LITE_2))
1821 hooked_roff(format("%^s¤Ï¸÷¤Ã¤Æ¤¤¤ë¡£", wd_he[msex]));
1823 hooked_roff(format("%^s is shining. ", wd_he[msex]));
1827 if (flags7 & (RF7_SELF_DARK_1 | RF7_SELF_DARK_2))
1830 hook_c_roff(TERM_L_DARK, format("%^s¤Ï°Å¹õ¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", wd_he[msex]));
1832 hook_c_roff(TERM_L_DARK, format("%^s is surrounded by darkness. ", wd_he[msex]));
1836 if (flags2 & RF2_INVISIBLE)
1839 hooked_roff(format("%^s¤ÏÆ©ÌÀ¤ÇÌܤ˸«¤¨¤Ê¤¤¡£", wd_he[msex]));
1841 hooked_roff(format("%^s is invisible. ", wd_he[msex]));
1845 if (flags2 & RF2_COLD_BLOOD)
1848 hooked_roff(format("%^s¤ÏÎä·ìưʪ¤Ç¤¢¤ë¡£", wd_he[msex]));
1850 hooked_roff(format("%^s is cold blooded. ", wd_he[msex]));
1854 if (flags2 & RF2_EMPTY_MIND)
1857 hooked_roff(format("%^s¤Ï¥Æ¥ì¥Ñ¥·¡¼¤Ç¤Ï´¶ÃΤǤ¤Ê¤¤¡£", wd_he[msex]));
1859 hooked_roff(format("%^s is not detected by telepathy. ", wd_he[msex]));
1863 else if (flags2 & RF2_WEIRD_MIND)
1866 hooked_roff(format("%^s¤Ï¤Þ¤ì¤Ë¥Æ¥ì¥Ñ¥·¡¼¤Ç´¶ÃΤǤ¤ë¡£", wd_he[msex]));
1868 hooked_roff(format("%^s is rarely detected by telepathy. ", wd_he[msex]));
1872 if (flags2 & RF2_MULTIPLY)
1875 hook_c_roff(TERM_L_UMBER, format("%^s¤ÏÇúȯŪ¤ËÁý¿£¤¹¤ë¡£", wd_he[msex]));
1877 hook_c_roff(TERM_L_UMBER, format("%^s breeds explosively. ", wd_he[msex]));
1881 if (flags2 & RF2_REGENERATE)
1884 hook_c_roff(TERM_L_WHITE, format("%^s¤ÏÁÇÁ᤯ÂÎÎϤò²óÉü¤¹¤ë¡£", wd_he[msex]));
1886 hook_c_roff(TERM_L_WHITE, format("%^s regenerates quickly. ", wd_he[msex]));
1890 if (flags7 & RF7_RIDING)
1893 hook_c_roff(TERM_SLATE, format("%^s¤Ë¾è¤ë¤³¤È¤¬¤Ç¤¤ë¡£", wd_he[msex]));
1895 hook_c_roff(TERM_SLATE, format("%^s is suitable for riding. ", wd_he[msex]));
1901 /* Collect susceptibilities */
1904 if (flags3 & RF3_HURT_ROCK) {vp[vn] = "´ä¤ò½üµî¤¹¤ë¤â¤Î";color[vn++] = TERM_UMBER;}
1906 if (flags3 & RF3_HURT_ROCK) {vp[vn] = "rock remover";color[vn++] = TERM_UMBER;}
1910 if (flags3 & RF3_HURT_LITE) {vp[vn] = "ÌÀ¤ë¤¤¸÷";color[vn++] = TERM_YELLOW;}
1912 if (flags3 & RF3_HURT_LITE) {vp[vn] = "bright light";color[vn++] = TERM_YELLOW;}
1916 if (flags3 & RF3_HURT_FIRE) {vp[vn] = "±ê";color[vn++] = TERM_RED;}
1918 if (flags3 & RF3_HURT_FIRE) {vp[vn] = "fire";color[vn++] = TERM_RED;}
1922 if (flags3 & RF3_HURT_COLD) {vp[vn] = "Î䵤";color[vn++] = TERM_L_WHITE;}
1924 if (flags3 & RF3_HURT_COLD) {vp[vn] = "cold";color[vn++] = TERM_L_WHITE;}
1928 /* Describe susceptibilities */
1933 hooked_roff(format("%^s¤Ë¤Ï", wd_he[msex]));
1935 hooked_roff(format("%^s", wd_he[msex]));
1940 for (n = 0; n < vn; n++)
1944 if ( n != 0 ) hooked_roff("¤ä");
1946 if (n == 0) hooked_roff(" is hurt by ");
1947 else if (n < vn-1) hooked_roff(", ");
1948 else hooked_roff(" and ");
1953 hook_c_roff(color[n], vp[n]);
1958 hooked_roff("¤Ç¥À¥á¡¼¥¸¤òÍ¿¤¨¤é¤ì¤ë¡£");
1966 /* Collect immunities */
1969 if (flagsr & RFR_IM_ACID) {vp[vn] = "»À";color[vn++] = TERM_GREEN;}
1971 if (flagsr & RFR_IM_ACID) {vp[vn] = "acid";color[vn++] = TERM_GREEN;}
1975 if (flagsr & RFR_IM_ELEC) {vp[vn] = "°ðºÊ";color[vn++] = TERM_BLUE;}
1977 if (flagsr & RFR_IM_ELEC) {vp[vn] = "lightning";color[vn++] = TERM_BLUE;}
1981 if (flagsr & RFR_IM_FIRE) {vp[vn] = "±ê";color[vn++] = TERM_RED;}
1983 if (flagsr & RFR_IM_FIRE) {vp[vn] = "fire";color[vn++] = TERM_RED;}
1987 if (flagsr & RFR_IM_COLD) {vp[vn] = "Î䵤";color[vn++] = TERM_L_WHITE;}
1989 if (flagsr & RFR_IM_COLD) {vp[vn] = "cold";color[vn++] = TERM_L_WHITE;}
1993 if (flagsr & RFR_IM_POIS) {vp[vn] = "ÆÇ";color[vn++] = TERM_L_GREEN;}
1995 if (flagsr & RFR_IM_POIS) {vp[vn] = "poison";color[vn++] = TERM_L_GREEN;}
1999 /* Collect resistances */
2001 if (flagsr & RFR_RES_LITE) {vp[vn] = "Á®¸÷";color[vn++] = TERM_YELLOW;}
2003 if (flagsr & RFR_RES_LITE) {vp[vn] = "light";color[vn++] = TERM_YELLOW;}
2007 if (flagsr & RFR_RES_DARK) {vp[vn] = "°Å¹õ";color[vn++] = TERM_L_DARK;}
2009 if (flagsr & RFR_RES_DARK) {vp[vn] = "dark";color[vn++] = TERM_L_DARK;}
2013 if (flagsr & RFR_RES_NETH) {vp[vn] = "ÃϹö";color[vn++] = TERM_L_DARK;}
2015 if (flagsr & RFR_RES_NETH) {vp[vn] = "nether";color[vn++] = TERM_L_DARK;}
2019 if (flagsr & RFR_RES_WATE) {vp[vn] = "¿å";color[vn++] = TERM_BLUE;}
2021 if (flagsr & RFR_RES_WATE) {vp[vn] = "water";color[vn++] = TERM_BLUE;}
2025 if (flagsr & RFR_RES_PLAS) {vp[vn] = "¥×¥é¥º¥Þ";color[vn++] = TERM_L_RED;}
2027 if (flagsr & RFR_RES_PLAS) {vp[vn] = "plasma";color[vn++] = TERM_L_RED;}
2031 if (flagsr & RFR_RES_SHAR) {vp[vn] = "ÇËÊÒ";color[vn++] = TERM_L_UMBER;}
2033 if (flagsr & RFR_RES_SHAR) {vp[vn] = "shards";color[vn++] = TERM_L_UMBER;}
2037 if (flagsr & RFR_RES_SOUN) {vp[vn] = "¹ì²»";color[vn++] = TERM_ORANGE;}
2039 if (flagsr & RFR_RES_SOUN) {vp[vn] = "sound";color[vn++] = TERM_ORANGE;}
2043 if (flagsr & RFR_RES_CHAO) {vp[vn] = "¥«¥ª¥¹";color[vn++] = TERM_VIOLET;}
2045 if (flagsr & RFR_RES_CHAO) {vp[vn] = "chaos";color[vn++] = TERM_VIOLET;}
2049 if (flagsr & RFR_RES_NEXU) {vp[vn] = "°ø²Ìº®Íð";color[vn++] = TERM_VIOLET;}
2051 if (flagsr & RFR_RES_NEXU) {vp[vn] = "nexus";color[vn++] = TERM_VIOLET;}
2055 if (flagsr & RFR_RES_DISE) {vp[vn] = "Îô²½";color[vn++] = TERM_VIOLET;}
2057 if (flagsr & RFR_RES_DISE) {vp[vn] = "disenchantment";color[vn++] = TERM_VIOLET;}
2061 if (flagsr & RFR_RES_WALL) {vp[vn] = "¥Õ¥©¡¼¥¹";color[vn++] = TERM_UMBER;}
2063 if (flagsr & RFR_RES_WALL) {vp[vn] = "force";color[vn++] = TERM_UMBER;}
2067 if (flagsr & RFR_RES_INER) {vp[vn] = "ÃÙÆß";color[vn++] = TERM_SLATE;}
2069 if (flagsr & RFR_RES_INER) {vp[vn] = "inertia";color[vn++] = TERM_SLATE;}
2073 if (flagsr & RFR_RES_TIME) {vp[vn] = "»þ´ÖµÕž";color[vn++] = TERM_L_BLUE;}
2075 if (flagsr & RFR_RES_TIME) {vp[vn] = "time";color[vn++] = TERM_L_BLUE;}
2079 if (flagsr & RFR_RES_GRAV) {vp[vn] = "½ÅÎÏ";color[vn++] = TERM_SLATE;}
2081 if (flagsr & RFR_RES_GRAV) {vp[vn] = "gravity";color[vn++] = TERM_SLATE;}
2085 if (flagsr & RFR_RES_ALL) {vp[vn] = "¤¢¤é¤æ¤ë¹¶·â";color[vn++] = TERM_YELLOW;}
2087 if (flagsr & RFR_RES_ALL) {vp[vn] = "all";color[vn++] = TERM_YELLOW;}
2091 if ((flagsr & RFR_RES_TELE) && !(r_ptr->flags1 & RF1_UNIQUE)) {vp[vn] = "¥Æ¥ì¥Ý¡¼¥È";color[vn++] = TERM_ORANGE;}
2093 if ((flagsr & RFR_RES_TELE) && !(r_ptr->flags1 & RF1_UNIQUE)) {vp[vn] = "teleportation";color[vn++] = TERM_ORANGE;}
2097 /* Describe immunities and resistances */
2102 hooked_roff(format("%^s¤Ï", wd_he[msex]));
2104 hooked_roff(format("%^s", wd_he[msex]));
2109 for (n = 0; n < vn; n++)
2113 if ( n != 0 ) hooked_roff("¤È");
2115 if (n == 0) hooked_roff(" resists ");
2116 else if (n < vn-1) hooked_roff(", ");
2117 else hooked_roff(" and ");
2122 hook_c_roff(color[n], vp[n]);
2127 hooked_roff("¤ÎÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡£");
2135 if ((r_ptr->r_xtra1 & MR1_SINKA) || know_everything)
2137 if (r_ptr->next_r_idx)
2140 hooked_roff(format("%^s¤Ï·Ð¸³¤òÀѤà¤È¡¢", wd_he[msex]));
2142 hooked_roff(format("%^s will evolve into ", wd_he[msex]));
2144 hook_c_roff(TERM_YELLOW, format("%s", r_name+r_info[r_ptr->next_r_idx].name));
2146 hooked_roff(format("¤Ë¿Ê²½¤¹¤ë¡£"));
2148 hooked_roff(format(" when %s gets enugh experience. ", wd_he[msex]));
2151 else if (!(r_ptr->flags1 & RF1_UNIQUE))
2154 hooked_roff(format("%s¤Ï¿Ê²½¤·¤Ê¤¤¡£", wd_he[msex]));
2156 hooked_roff(format("%s won't evolve. ", wd_he[msex]));
2161 /* Collect non-effects */
2164 if (flags3 & RF3_NO_STUN) {vp[vn] = "Û¯Û°¤È¤·¤Ê¤¤";color[vn++] = TERM_ORANGE;}
2166 if (flags3 & RF3_NO_STUN) {vp[vn] = "stunned";color[vn++] = TERM_ORANGE;}
2170 if (flags3 & RF3_NO_FEAR) {vp[vn] = "¶²Éݤò´¶¤¸¤Ê¤¤";color[vn++] = TERM_SLATE;}
2172 if (flags3 & RF3_NO_FEAR) {vp[vn] = "frightened";color[vn++] = TERM_SLATE;}
2176 if (flags3 & RF3_NO_CONF) {vp[vn] = "º®Í𤷤ʤ¤";color[vn++] = TERM_L_UMBER;}
2178 if (flags3 & RF3_NO_CONF) {vp[vn] = "confused";color[vn++] = TERM_L_UMBER;}
2182 if (flags3 & RF3_NO_SLEEP) {vp[vn] = "̲¤é¤µ¤ì¤Ê¤¤";color[vn++] = TERM_BLUE;}
2184 if (flags3 & RF3_NO_SLEEP) {vp[vn] = "slept";color[vn++] = TERM_BLUE;}
2188 if ((flagsr & RFR_RES_TELE) && (r_ptr->flags1 & RF1_UNIQUE)) {vp[vn] = "¥Æ¥ì¥Ý¡¼¥È¤µ¤ì¤Ê¤¤";color[vn++] = TERM_ORANGE;}
2190 if ((flagsr & RFR_RES_TELE) && (r_ptr->flags1 & RF1_UNIQUE)) {vp[vn] = "teleported";color[vn++] = TERM_ORANGE;}
2193 /* Describe non-effects */
2198 hooked_roff(format("%^s¤Ï", wd_he[msex]));
2200 hooked_roff(format("%^s", wd_he[msex]));
2205 for (n = 0; n < vn; n++)
2209 if ( n != 0 ) hooked_roff("¤·¡¢");
2211 if (n == 0) hooked_roff(" cannot be ");
2212 else if (n < vn - 1) hooked_roff(", ");
2213 else hooked_roff(" or ");
2218 hook_c_roff(color[n], vp[n]);
2231 /* Do we know how aware it is? */
2232 if ((((int)r_ptr->r_wake * (int)r_ptr->r_wake) > r_ptr->sleep) ||
2233 (r_ptr->r_ignore == MAX_UCHAR) ||
2234 (r_ptr->sleep == 0 && r_ptr->r_tkills >= 10) || know_everything)
2238 if (r_ptr->sleep > 200)
2241 act = "¤ò̵»ë¤·¤¬¤Á¤Ç¤¢¤ë¤¬";
2243 act = "prefers to ignore";
2247 else if (r_ptr->sleep > 95)
2250 act = "¤ËÂФ·¤Æ¤Û¤È¤ó¤ÉÃí°Õ¤òʧ¤ï¤Ê¤¤¤¬";
2252 act = "pays very little attention to";
2256 else if (r_ptr->sleep > 75)
2259 act = "¤ËÂФ·¤Æ¤¢¤Þ¤êÃí°Õ¤òʧ¤ï¤Ê¤¤¤¬";
2261 act = "pays little attention to";
2265 else if (r_ptr->sleep > 45)
2268 act = "¤ò¸«²á¤´¤·¤¬¤Á¤Ç¤¢¤ë¤¬";
2270 act = "tends to overlook";
2274 else if (r_ptr->sleep > 25)
2277 act = "¤ò¤Û¤ó¤Î¾¯¤·¤Ï¸«¤Æ¤ª¤ê";
2279 act = "takes quite a while to see";
2283 else if (r_ptr->sleep > 10)
2286 act = "¤ò¤·¤Ð¤é¤¯¤Ï¸«¤Æ¤ª¤ê";
2288 act = "takes a while to see";
2292 else if (r_ptr->sleep > 5)
2295 act = "¤ò´öʬÃí°Õ¿¼¤¯¸«¤Æ¤ª¤ê";
2297 act = "is fairly observant of";
2301 else if (r_ptr->sleep > 3)
2304 act = "¤òÃí°Õ¿¼¤¯¸«¤Æ¤ª¤ê";
2306 act = "is observant of";
2310 else if (r_ptr->sleep > 1)
2313 act = "¤ò¤«¤Ê¤êÃí°Õ¿¼¤¯¸«¤Æ¤ª¤ê";
2315 act = "is very observant of";
2319 else if (r_ptr->sleep > 0)
2322 act = "¤ò·Ù²ü¤·¤Æ¤ª¤ê";
2324 act = "is vigilant for";
2331 act = "¤ò¤«¤Ê¤ê·Ù²ü¤·¤Æ¤ª¤ê";
2333 act = "is ever vigilant for";
2339 hooked_roff(format("%^s¤Ï¿¯Æþ¼Ô%s¡¢ %d ¥Õ¥£¡¼¥ÈÀ褫¤é¿¯Æþ¼Ô¤Ëµ¤ÉÕ¤¯¤³¤È¤¬¤¢¤ë¡£",
2340 wd_he[msex], act, 10 * r_ptr->aaf));
2342 hooked_roff(format("%^s %s intruders, which %s may notice from %d feet. ",
2343 wd_he[msex], act, wd_he[msex], 10 * r_ptr->aaf));
2349 /* Drops gold and/or items */
2350 if (drop_gold || drop_item)
2354 hooked_roff(format("%^s¤Ï", wd_he[msex]));
2356 hooked_roff(format("%^s may carry", wd_he[msex]));
2363 /* Count maximum drop */
2364 n = MAX(drop_gold, drop_item);
2366 /* One drop (may need an "n") */
2370 hooked_roff("°ì¤Ä¤Î");
2381 hooked_roff("°ì¤Ä¤«Æó¤Ä¤Î");
2383 hooked_roff(" one or two");
2392 hooked_roff(format(" %d ¸Ä¤Þ¤Ç¤Î", n));
2394 hooked_roff(format(" up to %d", n));
2401 if (flags1 & RF1_DROP_GREAT)
2411 /* Good (no "n" needed) */
2412 else if (flags1 & RF1_DROP_GOOD)
2432 /* Handle singular "an" */
2434 if (sin) hooked_roff("n");
2438 /* Dump "object(s)" */
2439 if (p) hooked_roff(p);
2441 hooked_roff("¥¢¥¤¥Æ¥à");
2443 hooked_roff(" object");
2444 if (n != 1) hooked_roff("s");
2448 /* Conjunction replaces variety, if needed for "gold" below */
2462 if (!p) sin = FALSE;
2464 /* Handle singular "an" */
2465 if (sin) hooked_roff("n");
2469 /* Dump "treasure(s)" */
2470 if (p) hooked_roff(p);
2472 hooked_roff("ºâÊõ");
2474 hooked_roff(" treasure");
2475 if (n != 1) hooked_roff("s");
2480 /* End this sentence */
2482 hooked_roff("¤ò»ý¤Ã¤Æ¤¤¤ë¤³¤È¤¬¤¢¤ë¡£");
2490 /* Count the number of "known" attacks */
2491 for (n = 0, m = 0; m < 4; m++)
2493 /* Skip non-attacks */
2494 if (!r_ptr->blow[m].method) continue;
2495 if (r_ptr->blow[m].method == RBM_SHOOT) continue;
2497 /* Count known attacks */
2498 if (r_ptr->r_blows[m] || know_everything) n++;
2501 /* Examine (and count) the actual attacks */
2502 for (r = 0, m = 0; m < 4; m++)
2504 int method, effect, d1, d2;
2506 /* Skip non-attacks */
2507 if (!r_ptr->blow[m].method) continue;
2508 if (r_ptr->blow[m].method == RBM_SHOOT) continue;
2510 /* Skip unknown attacks */
2511 if (!r_ptr->r_blows[m] && !know_everything) continue;
2513 /* Extract the attack info */
2514 method = r_ptr->blow[m].method;
2515 effect = r_ptr->blow[m].effect;
2516 d1 = r_ptr->blow[m].d_dice;
2517 d2 = r_ptr->blow[m].d_side;
2522 /* Acquire the method */
2526 case RBM_HIT: p = "²¥¤ë"; break;
2528 case RBM_HIT: p = "hit"; break;
2532 case RBM_TOUCH: p = "¿¨¤ë"; break;
2534 case RBM_TOUCH: p = "touch"; break;
2538 case RBM_PUNCH: p = "¥Ñ¥ó¥Á¤¹¤ë"; break;
2540 case RBM_PUNCH: p = "punch"; break;
2544 case RBM_KICK: p = "½³¤ë"; break;
2546 case RBM_KICK: p = "kick"; break;
2550 case RBM_CLAW: p = "¤Ò¤Ã¤«¤¯"; break;
2552 case RBM_CLAW: p = "claw"; break;
2556 case RBM_BITE: p = "³ú¤à"; break;
2558 case RBM_BITE: p = "bite"; break;
2562 case RBM_STING: p = "»É¤¹"; break;
2564 case RBM_STING: p = "sting"; break;
2568 case RBM_SLASH: p = "»Â¤ë"; break;
2570 case RBM_SLASH: p = "slash"; break;
2574 case RBM_BUTT: p = "³Ñ¤ÇÆͤ¯"; break;
2576 case RBM_BUTT: p = "butt"; break;
2580 case RBM_CRUSH: p = "ÂÎÅö¤¿¤ê¤¹¤ë"; break;
2582 case RBM_CRUSH: p = "crush"; break;
2586 case RBM_ENGULF: p = "°û¤ß¹þ¤à"; break;
2588 case RBM_ENGULF: p = "engulf"; break;
2592 case RBM_CHARGE: p = "ÀÁµá½ñ¤ò¤è¤³¤¹"; break;
2594 case RBM_CHARGE: p = "charge"; break;
2598 case RBM_CRAWL: p = "ÂΤξå¤òÇ礤²ó¤ë"; break;
2600 case RBM_CRAWL: p = "crawl on you"; break;
2604 case RBM_DROOL: p = "¤è¤À¤ì¤ò¤¿¤é¤¹"; break;
2606 case RBM_DROOL: p = "drool on you"; break;
2610 case RBM_SPIT: p = "¤Ä¤Ð¤òÅǤ¯"; break;
2612 case RBM_SPIT: p = "spit"; break;
2616 case RBM_EXPLODE: p = "Çúȯ¤¹¤ë"; break;
2618 case RBM_EXPLODE: p = "explode"; break;
2622 case RBM_GAZE: p = "¤Ë¤é¤à"; break;
2624 case RBM_GAZE: p = "gaze"; break;
2628 case RBM_WAIL: p = "µã¤¶«¤Ö"; break;
2630 case RBM_WAIL: p = "wail"; break;
2634 case RBM_SPORE: p = "˦»Ò¤òÈô¤Ð¤¹"; break;
2636 case RBM_SPORE: p = "release spores"; break;
2639 case RBM_XXX4: break;
2641 case RBM_BEG: p = "¶â¤ò¤»¤¬¤à"; break;
2643 case RBM_BEG: p = "beg"; break;
2647 case RBM_INSULT: p = "Éî¿«¤¹¤ë"; break;
2649 case RBM_INSULT: p = "insult"; break;
2653 case RBM_MOAN: p = "¤¦¤á¤¯"; break;
2655 case RBM_MOAN: p = "moan"; break;
2659 case RBM_SHOW: p = "²Î¤¦"; break;
2661 case RBM_SHOW: p = "sing"; break;
2667 /* Default effect */
2670 /* Acquire the effect */
2675 case RBE_HURT: q = "¹¶·â¤¹¤ë"; break;
2678 case RBE_HURT: q = "attack"; break;
2682 case RBE_POISON: q = "ÆǤò¤¯¤é¤ï¤¹"; break;
2684 case RBE_POISON: q = "poison"; break;
2688 case RBE_UN_BONUS: q = "Îô²½¤µ¤»¤ë"; break;
2690 case RBE_UN_BONUS: q = "disenchant"; break;
2694 case RBE_UN_POWER: q = "ËâÎϤòµÛ¤¤¼è¤ë"; break;
2696 case RBE_UN_POWER: q = "drain charges"; break;
2700 case RBE_EAT_GOLD: q = "¶â¤òÅð¤à"; break;
2702 case RBE_EAT_GOLD: q = "steal gold"; break;
2706 case RBE_EAT_ITEM: q = "¥¢¥¤¥Æ¥à¤òÅð¤à"; break;
2708 case RBE_EAT_ITEM: q = "steal items"; break;
2712 case RBE_EAT_FOOD: q = "¤¢¤Ê¤¿¤Î¿©ÎÁ¤ò¿©¤Ù¤ë"; break;
2714 case RBE_EAT_FOOD: q = "eat your food"; break;
2718 case RBE_EAT_LITE: q = "ÌÀ¤«¤ê¤òµÛ¼ý¤¹¤ë"; break;
2720 case RBE_EAT_LITE: q = "absorb light"; break;
2724 case RBE_ACID: q = "»À¤òÈô¤Ð¤¹"; break;
2726 case RBE_ACID: q = "shoot acid"; break;
2730 case RBE_ELEC: q = "´¶ÅŤµ¤»¤ë"; break;
2732 case RBE_ELEC: q = "electrocute"; break;
2736 case RBE_FIRE: q = "dz¤ä¤¹"; break;
2738 case RBE_FIRE: q = "burn"; break;
2742 case RBE_COLD: q = "Åà¤é¤»¤ë"; break;
2744 case RBE_COLD: q = "freeze"; break;
2748 case RBE_BLIND: q = "ÌÕÌܤˤ¹¤ë"; break;
2750 case RBE_BLIND: q = "blind"; break;
2754 case RBE_CONFUSE: q = "º®Í𤵤»¤ë"; break;
2756 case RBE_CONFUSE: q = "confuse"; break;
2760 case RBE_TERRIFY: q = "¶²Éݤµ¤»¤ë"; break;
2762 case RBE_TERRIFY: q = "terrify"; break;
2766 case RBE_PARALYZE: q = "Ëãá㤵¤»¤ë"; break;
2768 case RBE_PARALYZE: q = "paralyze"; break;
2772 case RBE_LOSE_STR: q = "ÏÓÎϤò¸º¾¯¤µ¤»¤ë"; break;
2774 case RBE_LOSE_STR: q = "reduce strength"; break;
2778 case RBE_LOSE_INT: q = "ÃÎǽ¤ò¸º¾¯¤µ¤»¤ë"; break;
2780 case RBE_LOSE_INT: q = "reduce intelligence"; break;
2784 case RBE_LOSE_WIS: q = "¸¤µ¤ò¸º¾¯¤µ¤»¤ë"; break;
2786 case RBE_LOSE_WIS: q = "reduce wisdom"; break;
2790 case RBE_LOSE_DEX: q = "´ïÍѤµ¤ò¸º¾¯¤µ¤»¤ë"; break;
2792 case RBE_LOSE_DEX: q = "reduce dexterity"; break;
2796 case RBE_LOSE_CON: q = "Âѵ×ÎϤò¸º¾¯¤µ¤»¤ë"; break;
2798 case RBE_LOSE_CON: q = "reduce constitution"; break;
2802 case RBE_LOSE_CHR: q = "Ì¥ÎϤò¸º¾¯¤µ¤»¤ë"; break;
2804 case RBE_LOSE_CHR: q = "reduce charisma"; break;
2808 case RBE_LOSE_ALL: q = "Á´¥¹¥Æ¡¼¥¿¥¹¤ò¸º¾¯¤µ¤»¤ë"; break;
2810 case RBE_LOSE_ALL: q = "reduce all stats"; break;
2814 case RBE_SHATTER: q = "Ê´ºÕ¤¹¤ë"; break;
2816 case RBE_SHATTER: q = "shatter"; break;
2820 case RBE_EXP_10: q = "·Ð¸³Ãͤò¸º¾¯(10d6+)¤µ¤»¤ë"; break;
2822 case RBE_EXP_10: q = "lower experience (by 10d6+)"; break;
2826 case RBE_EXP_20: q = "·Ð¸³Ãͤò¸º¾¯(20d6+)¤µ¤»¤ë"; break;
2828 case RBE_EXP_20: q = "lower experience (by 20d6+)"; break;
2832 case RBE_EXP_40: q = "·Ð¸³Ãͤò¸º¾¯(40d6+)¤µ¤»¤ë"; break;
2834 case RBE_EXP_40: q = "lower experience (by 40d6+)"; break;
2838 case RBE_EXP_80: q = "·Ð¸³Ãͤò¸º¾¯(80d6+)¤µ¤»¤ë"; break;
2840 case RBE_EXP_80: q = "lower experience (by 80d6+)"; break;
2844 case RBE_DISEASE: q = "ɵ¤¤Ë¤¹¤ë"; break;
2846 case RBE_DISEASE: q = "disease"; break;
2850 case RBE_TIME: q = "»þ´Ö¤òµÕÌá¤ê¤µ¤»¤ë"; break;
2852 case RBE_TIME: q = "time"; break;
2856 case RBE_EXP_VAMP: q = "À¸Ì¿ÎϤòµÛ¼ý¤¹¤ë"; break;
2858 case RBE_EXP_VAMP: q = "drain life force"; break;
2862 case RBE_DR_MANA: q = "ËâÎϤòÃ¥¤¦"; break;
2864 case RBE_DR_MANA: q = "drain mana force"; break;
2871 if ( r == 0 ) hooked_roff( format("%^s¤Ï", wd_he[msex]) );
2873 /***¼ã´³É½¸½¤òÊѹ¹ ita ***/
2875 /* Describe damage (if known) */
2876 if (d1 && d2 && (know_everything || know_damage(r_idx, m)))
2879 /* Display the damage */
2880 hooked_roff(format(" %dd%d ", d1, d2));
2881 hooked_roff("¤Î¥À¥á¡¼¥¸¤Ç");
2883 /* Hack -- force a method */
2884 if (!p) p = "²¿¤«´ñ̯¤Ê¤³¤È¤ò¤¹¤ë";
2886 /* Describe the method */
2887 /* XX¤·¤ÆYY¤·/XX¤·¤ÆYY¤¹¤ë/XX¤·/XX¤¹¤ë */
2888 if(q) jverb( p ,jverb_buf, JVERB_TO);
2889 else if(r!=n-1) jverb( p ,jverb_buf, JVERB_AND);
2890 else strcpy(jverb_buf, p);
2892 hooked_roff(jverb_buf);
2894 /* Describe the effect (if any) */
2897 if(r!=n-1) jverb( q,jverb_buf, JVERB_AND);
2898 else strcpy(jverb_buf,q);
2899 hooked_roff(jverb_buf);
2901 if(r!=n-1) hooked_roff("¡¢");
2903 /* Introduce the attack description */
2906 hooked_roff(format("%^s can ", wd_he[msex]));
2914 hooked_roff(", and ");
2918 /* Hack -- force a method */
2919 if (!p) p = "do something weird";
2921 /* Describe the method */
2925 /* Describe the effect (if any) */
2928 /* Describe the attack type */
2929 hooked_roff(" to ");
2932 /* Describe damage (if known) */
2933 if (d1 && d2 && (know_everything || know_damage(r_idx, m)))
2935 /* Display the damage */
2936 hooked_roff(" with damage");
2937 hooked_roff(format(" %dd%d", d1, d2));
2944 /* Count the attacks as printed */
2948 /* Finish sentence above */
2959 /* Notice lack of attacks */
2960 else if (flags1 & RF1_NEVER_BLOW)
2963 hooked_roff(format("%^s¤ÏʪÍýŪ¤Ê¹¶·âÊýË¡¤ò»ý¤¿¤Ê¤¤¡£", wd_he[msex]));
2965 hooked_roff(format("%^s has no physical attacks. ", wd_he[msex]));
2970 /* Or describe the lack of knowledge */
2974 hooked_roff(format("%s¹¶·â¤Ë¤Ä¤¤¤Æ¤Ï²¿¤âÃΤé¤Ê¤¤¡£", wd_his[msex]));
2976 hooked_roff(format("Nothing is known about %s attack. ", wd_his[msex]));
2983 * Notice "Quest" monsters, but only if you
2984 * already encountered the monster.
2986 if ((flags1 & RF1_QUESTOR) && ((r_ptr->r_sights) && (r_ptr->max_num) && ((r_idx == MON_OBERON) || (r_idx == MON_SERPENT))))
2989 hook_c_roff(TERM_VIOLET, "¤¢¤Ê¤¿¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò»¦¤·¤¿¤¤¤È¤¤¤¦¶¯¤¤Íß˾¤ò´¶¤¸¤Æ¤¤¤ë...");
2991 hook_c_roff(TERM_VIOLET, "You feel an intense desire to kill this monster... ");
2996 else if (flags7 & RF7_GUARDIAN)
2999 hook_c_roff(TERM_L_RED, "¤³¤Î¥â¥ó¥¹¥¿¡¼¤Ï¥À¥ó¥¸¥ç¥ó¤Î¼ç¤Ç¤¢¤ë¡£");
3001 hook_c_roff(TERM_L_RED, "This monster is the master of a dungeon.");
3015 * Hack -- Display the "name" and "attr/chars" of a monster race
3017 void roff_top(int r_idx)
3019 monster_race *r_ptr = &r_info[r_idx];
3025 /* Access the chars */
3029 /* Access the attrs */
3034 /* Clear the top line */
3035 Term_erase(0, 0, 255);
3037 /* Reset the cursor */
3041 /* A title (use "The" for non-uniques) */
3042 if (!(r_ptr->flags1 & RF1_UNIQUE))
3044 Term_addstr(-1, TERM_WHITE, "The ");
3049 Term_addstr(-1, TERM_WHITE, (r_name + r_ptr->name));
3051 /* Append the "standard" attr/char info */
3052 Term_addstr(-1, TERM_WHITE, " ('");
3053 Term_add_bigch(a1, c1);
3054 Term_addstr(-1, TERM_WHITE, "')");
3056 /* Append the "optional" attr/char info */
3057 Term_addstr(-1, TERM_WHITE, "/('");
3058 Term_add_bigch(a2, c2);
3059 Term_addstr(-1, TERM_WHITE, "'):");
3061 /* Wizards get extra info */
3066 sprintf(buf, "%d", r_idx);
3068 Term_addstr(-1, TERM_WHITE, " (");
3069 Term_addstr(-1, TERM_L_BLUE, buf);
3070 Term_addch(TERM_WHITE, ')');
3077 * Hack -- describe the given monster race at the top of the screen
3079 void screen_roff(int r_idx, int mode)
3081 /* Flush messages */
3085 Term_erase(0, 1, 255);
3087 hook_c_roff = c_roff;
3089 /* Recall monster */
3090 roff_aux(r_idx, mode);
3092 /* Describe monster */
3100 * Hack -- describe the given monster race in the current "term" window
3102 void display_roff(int r_idx)
3106 /* Erase the window */
3107 for (y = 0; y < Term->hgt; y++)
3109 /* Erase the line */
3110 Term_erase(0, y, 255);
3116 hook_c_roff = c_roff;
3118 /* Recall monster */
3121 /* Describe monster */
3128 * Hack -- output description of the given monster race
3130 void output_monster_spoiler(int r_idx, void (*roff_func)(byte attr, cptr str))
3132 hook_c_roff = roff_func;
3134 /* Recall monster */
3135 roff_aux(r_idx, 0x03);
3139 bool mon_hook_dungeon(int r_idx)
3141 monster_race *r_ptr = &r_info[r_idx];
3143 if (!(r_ptr->flags8 & RF8_WILD_ONLY))
3147 dungeon_info_type *d_ptr = &d_info[dungeon_type];
3148 if ((d_ptr->mflags8 & RF8_WILD_MOUNTAIN) &&
3149 (r_ptr->flags8 & RF8_WILD_MOUNTAIN)) return TRUE;
3155 static bool mon_hook_ocean(int r_idx)
3157 monster_race *r_ptr = &r_info[r_idx];
3159 if (r_ptr->flags8 & RF8_WILD_OCEAN)
3166 static bool mon_hook_shore(int r_idx)
3168 monster_race *r_ptr = &r_info[r_idx];
3170 if (r_ptr->flags8 & RF8_WILD_SHORE)
3177 static bool mon_hook_waste(int r_idx)
3179 monster_race *r_ptr = &r_info[r_idx];
3181 if (r_ptr->flags8 & (RF8_WILD_WASTE | RF8_WILD_ALL))
3188 static bool mon_hook_town(int r_idx)
3190 monster_race *r_ptr = &r_info[r_idx];
3192 if (r_ptr->flags8 & (RF8_WILD_TOWN | RF8_WILD_ALL))
3199 static bool mon_hook_wood(int r_idx)
3201 monster_race *r_ptr = &r_info[r_idx];
3203 if (r_ptr->flags8 & (RF8_WILD_WOOD | RF8_WILD_ALL))
3210 static bool mon_hook_volcano(int r_idx)
3212 monster_race *r_ptr = &r_info[r_idx];
3214 if (r_ptr->flags8 & RF8_WILD_VOLCANO)
3221 static bool mon_hook_mountain(int r_idx)
3223 monster_race *r_ptr = &r_info[r_idx];
3225 if (r_ptr->flags8 & RF8_WILD_MOUNTAIN)
3232 static bool mon_hook_grass(int r_idx)
3234 monster_race *r_ptr = &r_info[r_idx];
3236 if (r_ptr->flags8 & (RF8_WILD_GRASS | RF8_WILD_ALL))
3243 static bool mon_hook_deep_water(int r_idx)
3245 monster_race *r_ptr = &r_info[r_idx];
3247 if (!mon_hook_dungeon(r_idx)) return FALSE;
3249 if (r_ptr->flags7 & RF7_AQUATIC)
3256 static bool mon_hook_shallow_water(int r_idx)
3258 monster_race *r_ptr = &r_info[r_idx];
3260 if (!mon_hook_dungeon(r_idx)) return FALSE;
3262 if (r_ptr->flags2 & RF2_AURA_FIRE)
3269 static bool mon_hook_lava(int r_idx)
3271 monster_race *r_ptr = &r_info[r_idx];
3273 if (!mon_hook_dungeon(r_idx)) return FALSE;
3275 if (((r_ptr->flagsr & RFR_EFF_IM_FIRE_MASK) ||
3276 (r_ptr->flags7 & RF7_CAN_FLY)) &&
3277 !(r_ptr->flags3 & RF3_AURA_COLD))
3284 static bool mon_hook_floor(int r_idx)
3286 monster_race *r_ptr = &r_info[r_idx];
3288 if (!(r_ptr->flags7 & RF7_AQUATIC) ||
3289 (r_ptr->flags7 & RF7_CAN_FLY))
3296 monster_hook_type get_monster_hook(void)
3298 if (!dun_level && !p_ptr->inside_quest)
3300 switch (wilderness[p_ptr->wilderness_y][p_ptr->wilderness_x].terrain)
3303 return (monster_hook_type)mon_hook_town;
3304 case TERRAIN_DEEP_WATER:
3305 return (monster_hook_type)mon_hook_ocean;
3306 case TERRAIN_SHALLOW_WATER:
3308 return (monster_hook_type)mon_hook_shore;
3310 case TERRAIN_DESERT:
3311 return (monster_hook_type)mon_hook_waste;
3313 return (monster_hook_type)mon_hook_grass;
3315 return (monster_hook_type)mon_hook_wood;
3316 case TERRAIN_SHALLOW_LAVA:
3317 case TERRAIN_DEEP_LAVA:
3318 return (monster_hook_type)mon_hook_volcano;
3319 case TERRAIN_MOUNTAIN:
3320 return (monster_hook_type)mon_hook_mountain;
3322 return (monster_hook_type)mon_hook_dungeon;
3327 return (monster_hook_type)mon_hook_dungeon;
3332 monster_hook_type get_monster_hook2(int y, int x)
3334 feature_type *f_ptr = &f_info[cave[y][x].feat];
3336 /* Set the monster list */
3339 if (have_flag(f_ptr->flags, FF_WATER))
3342 if (have_flag(f_ptr->flags, FF_DEEP))
3344 return (monster_hook_type)mon_hook_deep_water;
3350 return (monster_hook_type)mon_hook_shallow_water;
3355 else if (have_flag(f_ptr->flags, FF_LAVA))
3357 return (monster_hook_type)mon_hook_lava;
3360 else return (monster_hook_type)mon_hook_floor;
3364 void set_friendly(monster_type *m_ptr)
3366 m_ptr->smart |= SM_FRIENDLY;
3369 void set_pet(monster_type *m_ptr)
3371 /* Check for quest completion */
3372 check_quest_completion(m_ptr);
3374 m_ptr->smart |= SM_PET;
3375 if (!(r_info[m_ptr->r_idx].flags3 & (RF3_EVIL | RF3_GOOD)))
3376 m_ptr->sub_align = SUB_ALIGN_NEUTRAL;
3380 * Makes the monster hostile towards the player
3382 void set_hostile(monster_type *m_ptr)
3384 if (p_ptr->inside_battle) return;
3385 m_ptr->smart &= ~SM_PET;
3386 m_ptr->smart &= ~SM_FRIENDLY;
3393 void anger_monster(monster_type *m_ptr)
3395 if (p_ptr->inside_battle) return;
3396 if (is_friendly(m_ptr))
3400 monster_desc(m_name, m_ptr, 0);
3402 msg_format("%^s¤ÏÅܤä¿¡ª", m_name);
3404 msg_format("%^s gets angry!", m_name);
3409 chg_virtue(V_INDIVIDUALISM, 1);
3410 chg_virtue(V_HONOUR, -1);
3411 chg_virtue(V_JUSTICE, -1);
3412 chg_virtue(V_COMPASSION, -1);
3418 * Check if monster can cross terrain
3420 bool monster_can_cross_terrain(s16b feat, monster_race *r_ptr, u16b mode)
3422 feature_type *f_ptr = &f_info[feat];
3425 if (have_flag(f_ptr->flags, FF_PATTERN))
3427 if (!(mode & CEM_RIDING))
3429 if (!(r_ptr->flags7 & RF7_CAN_FLY)) return FALSE;
3433 if (!(mode & CEM_P_CAN_ENTER_PATTERN)) return FALSE;
3438 if (have_flag(f_ptr->flags, FF_CAN_FLY) && (r_ptr->flags7 & RF7_CAN_FLY)) return TRUE;
3439 if (have_flag(f_ptr->flags, FF_CAN_SWIM) && (r_ptr->flags7 & RF7_CAN_SWIM)) return TRUE;
3440 if (have_flag(f_ptr->flags, FF_CAN_PASS))
3442 if ((r_ptr->flags2 & RF2_PASS_WALL) && (!(mode & CEM_RIDING) || p_ptr->pass_wall)) return TRUE;
3445 if (!have_flag(f_ptr->flags, FF_MOVE)) return FALSE;
3447 /* Some monsters can walk on mountains */
3448 if (have_flag(f_ptr->flags, FF_MOUNTAIN) && (r_ptr->flags8 & RF8_WILD_MOUNTAIN)) return TRUE;
3451 if (have_flag(f_ptr->flags, FF_WATER))
3453 if (!(r_ptr->flags7 & RF7_AQUATIC))
3456 if (have_flag(f_ptr->flags, FF_DEEP)) return FALSE;
3459 else if (r_ptr->flags2 & RF2_AURA_FIRE) return FALSE;
3463 /* Aquatic monster into non-water? */
3464 else if (r_ptr->flags7 & RF7_AQUATIC) return FALSE;
3467 if (have_flag(f_ptr->flags, FF_LAVA))
3469 if (!(r_ptr->flagsr & RFR_EFF_IM_FIRE_MASK)) return FALSE;
3477 * Strictly check if monster can enter the grid
3479 bool monster_can_enter(int y, int x, monster_race *r_ptr, u16b mode)
3481 cave_type *c_ptr = &cave[y][x];
3483 /* Player or other monster */
3484 if (player_bold(y, x)) return FALSE;
3485 if (c_ptr->m_idx) return FALSE;
3487 return monster_can_cross_terrain(c_ptr->feat, r_ptr, mode);
3492 * Check if this monster has "hostile" alignment (aux)
3494 static bool check_hostile_align(byte sub_align1, byte sub_align2)
3496 if (sub_align1 != sub_align2)
3498 if (((sub_align1 & SUB_ALIGN_EVIL) && (sub_align2 & SUB_ALIGN_GOOD)) ||
3499 ((sub_align1 & SUB_ALIGN_GOOD) && (sub_align2 & SUB_ALIGN_EVIL)))
3503 /* Non-hostile alignment */
3509 * Check if two monsters are enemies
3511 bool are_enemies(monster_type *m_ptr, monster_type *n_ptr)
3513 monster_race *r_ptr = &r_info[m_ptr->r_idx];
3514 monster_race *s_ptr = &r_info[n_ptr->r_idx];
3516 if (p_ptr->inside_battle)
3518 if (is_pet(m_ptr) || is_pet(n_ptr)) return FALSE;
3522 if ((r_ptr->flags8 & (RF8_WILD_TOWN | RF8_WILD_ALL))
3523 && (s_ptr->flags8 & (RF8_WILD_TOWN | RF8_WILD_ALL)))
3525 if (!is_pet(m_ptr) && !is_pet(n_ptr)) return FALSE;
3528 /* Friendly vs. opposite aligned normal or pet */
3529 if (check_hostile_align(m_ptr->sub_align, n_ptr->sub_align))
3531 if (!(m_ptr->mflag2 & MFLAG2_CHAMELEON) || !(n_ptr->mflag2 & MFLAG2_CHAMELEON)) return TRUE;
3534 /* Hostile vs. non-hostile */
3535 if (is_hostile(m_ptr) != is_hostile(n_ptr))
3546 * Check if this monster race has "hostile" alignment
3547 * If user is player, m_ptr == NULL.
3549 bool monster_has_hostile_align(monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr)
3551 byte sub_align1 = SUB_ALIGN_NEUTRAL;
3552 byte sub_align2 = SUB_ALIGN_NEUTRAL;
3554 if (m_ptr) /* For a monster */
3556 sub_align1 = m_ptr->sub_align;
3558 else /* For player */
3560 if (p_ptr->align >= pa_good) sub_align1 |= SUB_ALIGN_GOOD;
3561 if (p_ptr->align <= pa_evil) sub_align1 |= SUB_ALIGN_EVIL;
3564 /* Racial alignment flags */
3565 if (r_ptr->flags3 & RF3_EVIL) sub_align2 |= SUB_ALIGN_EVIL;
3566 if (r_ptr->flags3 & RF3_GOOD) sub_align2 |= SUB_ALIGN_GOOD;
3568 if (check_hostile_align(sub_align1, sub_align2)) return TRUE;
3570 /* Non-hostile alignment */
3576 * Is the monster "alive"?
3578 * Used to determine the message to print for a killed monster.
3579 * ("dies", "destroyed")
3581 bool monster_living(monster_race *r_ptr)
3583 /* Non-living, undead, or demon */
3584 if (r_ptr->flags3 & (RF3_DEMON | RF3_UNDEAD | RF3_NONLIVING))
3592 * Is this monster declined to be questor or bounty?
3594 bool no_questor_or_bounty_uniques(int r_idx)
3599 * Decline them to be questor or bounty because they use
3600 * special motion "split and combine"
3602 case MON_BANORLUPART: