{
if (creature_ptr->tim_esp > v) return FALSE;
}
- else if (!IS_TIM_ESP())
+ else if (!is_time_limit_esp(creature_ptr))
{
msg_print(_("意識が広がった気がする!", "You feel your consciousness expand!"));
notice = TRUE;
}
}
-
else
{
if (creature_ptr->tim_esp && !music_singing(creature_ptr, MUSIC_MIND))
screen_load();
return TRUE;
}
-
}
/* Temporary "telepathy" */
- if (IS_TIM_ESP())
+ if (is_time_limit_esp(creature_ptr))
{
creature_ptr->telepathy = TRUE;
}
{
return creature_ptr->tim_stealth || music_singing(creature_ptr, MUSIC_STEALTH);
}
+
+bool is_time_limit_esp(player_type *creature_ptr)
+{
+ return creature_ptr->tim_esp || music_singing(creature_ptr, MUSIC_MIND) || (creature_ptr->concent >= CONCENT_TELE_THRESHOLD);
+}
\ No newline at end of file
#define IS_FAST(C) (C->fast || music_singing(C, MUSIC_SPEED) || music_singing(C, MUSIC_SHERO))
#define IS_INVULN(C) (C->invuln || music_singing(C, MUSIC_INVULN))
#define IS_HERO(C) (C->hero || music_singing(C, MUSIC_HERO) || music_singing(C, MUSIC_SHERO))
-#define IS_TIM_ESP() (p_ptr->tim_esp || music_singing(p_ptr, MUSIC_MIND) || (p_ptr->concent >= CONCENT_TELE_THRESHOLD))
#define IS_TIM_STEALTH() (p_ptr->tim_stealth || music_singing(p_ptr, MUSIC_STEALTH))
#define P_PTR_KI (p_ptr->magic_num1[0])
-extern bool is_blessed(player_type *player_ptr);
-extern bool is_oppose_acid(player_type *player_ptr);
-extern bool is_oppose_elec(player_type *player_ptr);
-extern bool is_oppose_fire(player_type *player_ptr);
-extern bool is_oppose_cold(player_type *player_ptr);
-extern bool is_oppose_pois(player_type *player_ptr);
+extern bool is_blessed(player_type *creature_ptr);
+extern bool is_oppose_acid(player_type *creature_ptr);
+extern bool is_oppose_elec(player_type *creature_ptr);
+extern bool is_oppose_fire(player_type *creature_ptr);
+extern bool is_oppose_cold(player_type *creature_ptr);
+extern bool is_oppose_pois(player_type *creature_ptr);
+extern bool is_time_limit_esp(player_type *creature_ptr);
/*
* Player "food" crucial values
if (creature_ptr->tim_invis) ADD_FLG(BAR_SENSEUNSEEN);
/* Timed esp */
- if (IS_TIM_ESP()) ADD_FLG(BAR_TELEPATHY);
+ if (is_time_limit_esp(creature_ptr)) ADD_FLG(BAR_TELEPATHY);
/* Timed regenerate */
if (creature_ptr->tim_regen) ADD_FLG(BAR_REGENERATION);