cptr p, q;
#ifdef JP
- char jverb_buf[64];
+ char jverb_buf[64];
#endif
int msex = 0;
/* Killed ancestors */
#ifdef JP
hooked_roff(format("%^s¤Ï¤¢¤Ê¤¿¤ÎÀèÁĤò %d ¿ÍÁò¤Ã¤Æ¤¤¤ë",
- wd_he[msex], r_ptr->r_deaths));
+ wd_he[msex], r_ptr->r_deaths));
#else
hooked_roff(format("%^s has slain %d of your ancestors",
- wd_he[msex], r_ptr->r_deaths));
+ wd_he[msex], r_ptr->r_deaths));
#endif
hooked_roff(format("¤¬¡¢¤¹¤Ç¤ËµØƤ¤Á¤Ï²Ì¤¿¤·¤Æ¤¤¤ë¡ª"));
#else
hooked_roff(format(", but you have avenged %s! ",
- plural(r_ptr->r_deaths, "him", "them")));
+ plural(r_ptr->r_deaths, "him", "them")));
#endif
}
hooked_roff(format("¤Î¤Ë¡¢¤Þ¤ÀµØƤ¤Á¤ò²Ì¤¿¤·¤Æ¤¤¤Ê¤¤¡£"));
#else
hooked_roff(format(", who %s unavenged. ",
- plural(r_ptr->r_deaths, "remains", "remain")));
+ plural(r_ptr->r_deaths, "remains", "remain")));
#endif
}
- /* Start a new line */
- hooked_roff("\n");
+ /* Start a new line */
+ hooked_roff("\n");
}
/* Dead unique who never hurt us */
hooked_roff("You have slain this foe. ");
#endif
- /* Start a new line */
- hooked_roff("\n");
+ /* Start a new line */
+ hooked_roff("\n");
}
}
/* Dead ancestors */
#ifdef JP
hooked_roff(format("¤³¤Î¥â¥ó¥¹¥¿¡¼¤Ï¤¢¤Ê¤¿¤ÎÀèÁĤò %d ¿ÍÁò¤Ã¤Æ¤¤¤ë",
- r_ptr->r_deaths ));
+ r_ptr->r_deaths ));
#else
hooked_roff(format("%d of your ancestors %s been killed by this creature, ",
- r_ptr->r_deaths, plural(r_ptr->r_deaths, "has", "have")));
+ r_ptr->r_deaths, plural(r_ptr->r_deaths, "has", "have")));
#endif
{
#ifdef JP
hooked_roff(format("¤¬¡¢%s¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤÏÅݤ·¤Æ¤¤¤ë¡£",
- "¤¢¤Ê¤¿¤ÎÀèÁÄ", r_ptr->r_tkills));
+ "¤¢¤Ê¤¿¤ÎÀèÁÄ", r_ptr->r_tkills));
#else
hooked_roff(format("and %s have exterminated at least %d of the creatures. ",
- "your ancestors", r_ptr->r_tkills));
+ "your ancestors", r_ptr->r_tkills));
#endif
}
}
- /* Start a new line */
- hooked_roff("\n");
+ /* Start a new line */
+ hooked_roff("\n");
}
/* Normal monsters */
#endif
}
- /* Start a new line */
- hooked_roff("\n");
+ /* Start a new line */
+ hooked_roff("\n");
}
/* Descriptions */
#endif
- if (buf[0])
- {
- /* Dump it */
- hooked_roff(buf);
+ if (buf[0])
+ {
+ /* Dump it */
+ hooked_roff(buf);
- /* Start a new line */
- hooked_roff("\n");
- }
+ /* Start a new line */
+ hooked_roff("\n");
+ }
}
if (r_idx == MON_KAGE)
hooked_roff(format("%^s is normally found at depths of %d feet",
#endif
- wd_he[msex], r_ptr->level * 50));
+ wd_he[msex], r_ptr->level * 50));
}
else
{
hooked_roff(format("%^s is normally found on dungeon level %d",
#endif
- wd_he[msex], r_ptr->level));
+ wd_he[msex], r_ptr->level));
}
old = TRUE;
}
(long)1000 / (p_ptr->max_plv+2) + 5) / 10);
hooked_roff(format(" Ìó%ld.%02ld ¥Ý¥¤¥ó¥È¤Î·Ð¸³¤È¤Ê¤ë¡£",
- (long)i, (long)j ));
+ (long)i, (long)j ));
#else
/* calculate the integer exp part */
i = (long)r_ptr->mexp * r_ptr->level / (p_ptr->max_plv+2);
/* Mention the experience */
hooked_roff(format(" is worth about %ld.%02ld point%s",
- (long)i, (long)j,
- (((i == 1) && (j == 0)) ? "" : "s")));
+ (long)i, (long)j,
+ (((i == 1) && (j == 0)) ? "" : "s")));
/* Take account of annoying English */
p = "th";
/* Mention the dependance on the player's level */
hooked_roff(format(" for a%s %lu%s level character. ",
- q, (long)i, p));
+ q, (long)i, p));
#endif
}
hooked_roff(format("%^s usually appears with escorts. ",
#endif
- wd_he[msex]));
+ wd_he[msex]));
}
/* Describe friends */
hooked_roff(format("%^s usually appears in groups. ",
#endif
- wd_he[msex]));
+ wd_he[msex]));
}
#endif
#ifdef JP
- if (flags6 & (RF6_INVULNER)) {vp[vn] = "̵Ũ²½";color[vn++] = TERM_WHITE;}
+ if (flags6 & (RF6_INVULNER)) {vp[vn] = "̵Ũ²½";color[vn++] = TERM_WHITE;}
#else
if (flags6 & (RF6_INVULNER)) {vp[vn] = "make invulnerable";color[vn++] = TERM_WHITE;}
#endif
hook_c_roff(color[n], vp[n]);
}
#ifdef JP
- hooked_roff("¤Î¼öʸ¤ò¾§¤¨¤ë¤³¤È¤¬¤¢¤ë");
+ hooked_roff("¤Î¼öʸ¤ò¾§¤¨¤ë¤³¤È¤¬¤¢¤ë");
#endif
}
hooked_roff(format("%^s has an armor rating of %d",
#endif
- wd_he[msex], r_ptr->ac));
+ wd_he[msex], r_ptr->ac));
/* Maximized hitpoints */
if (flags1 & RF1_FORCE_MAXHP)
hooked_roff(format(" and a life rating of %d. ",
#endif
- r_ptr->hdice * r_ptr->hside));
+ r_ptr->hdice * r_ptr->hside));
}
/* Variable hitpoints */
hooked_roff(format(" and a life rating of %dd%d. ",
#endif
- r_ptr->hdice, r_ptr->hside));
+ r_ptr->hdice, r_ptr->hside));
}
}
/* Do we know how aware it is? */
if ((((int)r_ptr->r_wake * (int)r_ptr->r_wake) > r_ptr->sleep) ||
- (r_ptr->r_ignore == MAX_UCHAR) ||
+ (r_ptr->r_ignore == MAX_UCHAR) ||
(r_ptr->sleep == 0 && r_ptr->r_tkills >= 10) || know_everything)
{
cptr act;
wd_he[msex], act, 10 * r_ptr->aaf));
#else
hooked_roff(format("%^s %s intruders, which %s may notice from %d feet. ",
- wd_he[msex], act, wd_he[msex], 10 * r_ptr->aaf));
+ wd_he[msex], act, wd_he[msex], 10 * r_ptr->aaf));
#endif
}
#ifdef JP
- if ( r == 0 ) hooked_roff( format("%^s¤Ï", wd_he[msex]) );
+ if ( r == 0 ) hooked_roff( format("%^s¤Ï", wd_he[msex]) );
/***¼ã´³É½¸½¤òÊѹ¹ ita ***/
- /* Describe damage (if known) */
+ /* Describe damage (if known) */
if (d1 && d2 && (know_everything || know_damage(r_idx, m)))
{
/* A title (use "The" for non-uniques) */
#ifdef JP
- if (0)
+ if (0)
#else
if (!(r_ptr->flags1 & RF1_UNIQUE))
#endif
if (!(r_ptr->flags8 & RF8_WILD_ONLY))
return TRUE;
else
- {
- dungeon_info_type *d_ptr = &d_info[dungeon_type];
- if ((d_ptr->mflags8 & RF8_WILD_MOUNTAIN) &&
- (r_ptr->flags8 & RF8_WILD_MOUNTAIN)) return TRUE;
+ {
+ dungeon_info_type *d_ptr = &d_info[dungeon_type];
+ if ((d_ptr->mflags8 & RF8_WILD_MOUNTAIN) &&
+ (r_ptr->flags8 & RF8_WILD_MOUNTAIN)) return TRUE;
return FALSE;
- }
+ }
}
*/
bool monster_can_enter(int y, int x, monster_race *r_ptr)
{
- cave_type *c_ptr = &cave[y][x];
- byte feat = c_ptr->feat;
-
- /* Player or other monster */
- if ((y == py) && (x == px)) return FALSE;
- if (c_ptr->m_idx) return FALSE;
-
- /* Permanent wall */
- if ((c_ptr->feat >= FEAT_PERM_EXTRA) &&
- (c_ptr->feat <= FEAT_PERM_SOLID))
- return FALSE;
-
- /* Can fly over the Pattern */
- if ((c_ptr->feat >= FEAT_PATTERN_START) &&
- (c_ptr->feat <= FEAT_PATTERN_XTRA2))
- {
- if (!(r_ptr->flags7 & RF7_CAN_FLY))
- return FALSE;
- else
- return TRUE;
- }
-
- /* Can fly over mountain on the surface */
- if (feat == FEAT_MOUNTAIN)
- {
- if (!dun_level &&
- ((r_ptr->flags7 & RF7_CAN_FLY) ||
- (r_ptr->flags8 & RF8_WILD_MOUNTAIN)))
- return TRUE;
- else
- return FALSE;
- }
-
- /* Cannot enter wall without pass wall ability */
- if (!cave_floor_grid(c_ptr) && !(r_ptr->flags2 & RF2_PASS_WALL))
- return FALSE;
+ cave_type *c_ptr = &cave[y][x];
+ byte feat = c_ptr->feat;
+
+ /* Player or other monster */
+ if ((y == py) && (x == px)) return FALSE;
+ if (c_ptr->m_idx) return FALSE;
+
+ /* Permanent wall */
+ if ((c_ptr->feat >= FEAT_PERM_EXTRA) &&
+ (c_ptr->feat <= FEAT_PERM_SOLID))
+ return FALSE;
+
+ /* Can fly over the Pattern */
+ if ((c_ptr->feat >= FEAT_PATTERN_START) &&
+ (c_ptr->feat <= FEAT_PATTERN_XTRA2))
+ {
+ if (!(r_ptr->flags7 & RF7_CAN_FLY))
+ return FALSE;
+ else
+ return TRUE;
+ }
+
+ /* Can fly over mountain on the surface */
+ if (feat == FEAT_MOUNTAIN)
+ {
+ if (!dun_level &&
+ ((r_ptr->flags7 & RF7_CAN_FLY) ||
+ (r_ptr->flags8 & RF8_WILD_MOUNTAIN)))
+ return TRUE;
+ else
+ return FALSE;
+ }
+
+ /* Cannot enter wall without pass wall ability */
+ if (!cave_floor_grid(c_ptr) && !(r_ptr->flags2 & RF2_PASS_WALL))
+ return FALSE;
/* Pit */
if (feat == FEAT_DARK_PIT)