static bool know_armour(MONRACE_IDX r_idx)
{
monster_race *r_ptr = &r_info[r_idx];
-
- s32b level = r_ptr->level;
-
- s32b kills = r_ptr->r_tkills;
+ DEPTH level = r_ptr->level;
+ MONSTER_NUMBER kills = r_ptr->r_tkills;
bool known = (r_ptr->r_cast_spell == MAX_UCHAR)? TRUE: FALSE;
static void roff_aux(MONRACE_IDX r_idx, BIT_FLAGS mode)
{
monster_race *r_ptr = &r_info[r_idx];
-
bool old = FALSE;
-
int m, n, r;
-
cptr p, q;
#ifdef JP
int msex = 0;
bool nightmare = ironman_nightmare && !(mode & 0x02);
- int speed = nightmare ? r_ptr->speed + 5 : r_ptr->speed;
+ SPEED speed = nightmare ? r_ptr->speed + 5 : r_ptr->speed;
bool breath = FALSE;
bool magic = FALSE;
hooked_roff(format(_("%^sは", "%^s "), wd_he[msex]));
old = TRUE;
}
-
- /* Describe */
hooked_roff(_("侵入者を追跡しない", "does not deign to chase intruders"));
}
#endif
}
- /* Okay */
else
{
p = NULL;
{
monster_race *r_ptr = &r_info[r_idx];
- byte a1, a2;
+ TERM_COLOR a1, a2;
char c1, c2;
* @brief 指定された広域マップ座標の地勢を元にモンスターの生成条件関数を返す
* @return 地勢にあったモンスターの生成条件関数
*/
-monster_hook_type get_monster_hook2(int y, int x)
+monster_hook_type get_monster_hook2(POSITION y, POSITION x)
{
feature_type *f_ptr = &f_info[cave[y][x].feat];
* @param mode オプション
* @return 踏破可能ならばTRUEを返す
*/
-bool monster_can_cross_terrain(s16b feat, monster_race *r_ptr, u16b mode)
+bool monster_can_cross_terrain(FEAT_IDX feat, monster_race *r_ptr, u16b mode)
{
feature_type *f_ptr = &f_info[feat];
* @param mode オプション
* @return 踏破可能ならばTRUEを返す
*/
-bool monster_can_enter(int y, int x, monster_race *r_ptr, u16b mode)
+bool monster_can_enter(POSITION y, POSITION x, monster_race *r_ptr, u16b mode)
{
cave_type *c_ptr = &cave[y][x];
/* Non-hostile alignment */
return FALSE;
}
-
-
-/*!
- * @brief モンスターが生命体かどうかを返す
- * Is the monster "alive"?
- * @param r_ptr 判定するモンスターの種族情報構造体参照ポインタ
- * @return 生命体ならばTRUEを返す
- * @details
- * Used to determine the message to print for a killed monster.
- * ("dies", "destroyed")
- */
-bool monster_living(monster_race *r_ptr)
-{
- /* Non-living, undead, or demon */
- if (r_ptr->flags3 & (RF3_DEMON | RF3_UNDEAD | RF3_NONLIVING))
- return FALSE;
- else
- return TRUE;
-}
-
-
-/*!
- * @brief モンスターが特殊能力上、賞金首から排除する必要があるかどうかを返す。
- * Is the monster "alive"? / Is this monster declined to be questor or bounty?
- * @param r_idx モンスターの種族ID
- * @return 賞金首に加えられないならばTRUEを返す
- * @details
- * 実質バーノール=ルパート用。
- */
-bool no_questor_or_bounty_uniques(MONRACE_IDX r_idx)
-{
- switch (r_idx)
- {
- /*
- * Decline them to be questor or bounty because they use
- * special motion "split and combine"
- */
- case MON_BANORLUPART:
- case MON_BANOR:
- case MON_LUPART:
- return TRUE;
- default:
- return FALSE;
- }
-}