}\r
}\r
\r
- /* Update the monsters */\r
p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);\r
-\r
p_ptr->redraw |= (PR_MAP);\r
-\r
p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);\r
\r
if (p_ptr->special_defense & NINJA_S_STEALTH)\r
}\r
}\r
\r
- /* Update the monsters */\r
p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);\r
-\r
p_ptr->redraw |= (PR_MAP);\r
-\r
p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);\r
\r
if (p_ptr->special_defense & NINJA_S_STEALTH)\r
GAME_TEXT m_name[MAX_NLEN];
- /* Get the monster name */
monster_desc(m_name, m_ptr, 0);
if(dam == 0) // Notice non-damage
SPELL_IDX thrown_spell = 0;
DEPTH rlev;
PERCENTAGE failrate;
- byte spell[96], num = 0;
+ byte spell[96], num = 0;
BIT_FLAGS f4, f5, f6;
monster_type *m_ptr = &m_list[m_idx];
monster_race *r_ptr = &r_info[m_ptr->r_idx];
bool do_spell = DO_SPELL_NONE;
int dam = 0;
- /* Target location */
POSITION x = p_ptr->x;
POSITION y = p_ptr->y;
reset_target(m_ptr);
- /* Extract the monster level */
rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1);
/* Forbid inate attacks sometimes */
MONSTER_NUMBER summon_Kin(POSITION y, POSITION x, int rlev, MONSTER_IDX m_idx)
{
int k, count = 0;
- monster_type *m_ptr = &m_list[m_idx];
- monster_race *r_ptr = &r_info[m_ptr->r_idx];
+ monster_type *m_ptr = &m_list[m_idx];
+ monster_race *r_ptr = &r_info[m_ptr->r_idx];
for (k = 0; k < 4; k++)
{
msg_format(_("集中した。(集中度 %d)", "You concentrate deeply. (lvl %d)"), p_ptr->concent);
reset_concent = FALSE;
- /* Recalculate bonuses */
- p_ptr->update |= (PU_BONUS);
-
+ p_ptr->update |= (PU_BONUS | PU_MONSTERS);
p_ptr->redraw |= (PR_STATUS);
-
- /* Update the monsters */
- p_ptr->update |= (PU_MONSTERS);
-
return (TRUE);
}
p_ptr->concent = 0;
reset_concent = FALSE;
- /* Recalculate bonuses */
- p_ptr->update |= (PU_BONUS);
-
+ p_ptr->update |= (PU_BONUS | PU_MONSTERS);
p_ptr->redraw |= (PR_STATUS);
-
- /* Update the monsters */
- p_ptr->update |= (PU_MONSTERS);
}
/*!
/* Special message */
if (see_s_msg)
{
- /* Get the monster name */
monster_desc(killer, caster_ptr, 0);
msg_format(_("%^sは気分が良さそうだ。", "%^s appears healthier."), killer);
}
if (who > 0)
{
- /* Get the source monster */
m_ptr = &m_list[who];
- /* Extract the monster level */
rlev = (((&r_info[m_ptr->r_idx])->level >= 1) ? (&r_info[m_ptr->r_idx])->level : 1);
-
- /* Get the monster name */
monster_desc(m_name, m_ptr, 0);
/* Get the monster's real name (gotten before polymorph!) */
}
/* Mega-Hack -- Forget the view and lite */
- p_ptr->update |= (PU_UN_VIEW | PU_UN_LITE);
-
- p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW | PU_MON_LITE);
-
- /* Update the monsters */
- p_ptr->update |= (PU_MONSTERS);
-
+ p_ptr->update |= (PU_UN_VIEW | PU_UN_LITE | PU_VIEW | PU_LITE | PU_FLOW | PU_MON_LITE | PU_MONSTERS);
p_ptr->redraw |= (PR_MAP);
-
p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
return TRUE;