OSDN Git Service

[Refactor] #37353 聖浄の杖の効果を cleasing_nova() に分離。 / Separate implementation of 'staff...
[hengband/hengband.git] / src / xtra1.c
index a22821d..a1c0306 100644 (file)
@@ -110,7 +110,7 @@ s16b modify_stat_value(int value, int amount)
  * @param col 描画行
  * @return なし
  */
-static void prt_field(cptr info, TERM_LEN row, TERM_LEN col)
+static void prt_field(concptr info, TERM_LEN row, TERM_LEN col)
 {
        /* Dump 13 spaces to clear */
        c_put_str(TERM_WHITE, "             ", row, col);
@@ -144,7 +144,7 @@ void prt_time(void)
  * @brief 現在のマップ名を返す /
  * @return マップ名の文字列参照ポインタ
  */
-cptr map_name(void)
+concptr map_name(void)
 {
        if (p_ptr->inside_quest && is_fixed_quest_idx(p_ptr->inside_quest)
            && (quest[p_ptr->inside_quest].flags & QUEST_FLAG_PRESET))
@@ -167,7 +167,7 @@ cptr map_name(void)
  */
 static void prt_dungeon(void)
 {
-       cptr dungeon_name;
+       concptr dungeon_name;
        TERM_LEN col;
 
        /* Dump 13 spaces to clear */
@@ -295,9 +295,9 @@ static void prt_stat(int stat)
 #define BAR_ESP_EVIL 66     /*!< 下部ステータス表示: 邪悪感知 */
 
 static struct {
-       byte attr;
-       cptr sstr;
-       cptr lstr;
+       TERM_COLOR attr;
+       concptr sstr;
+       concptr lstr;
 } bar[]
 #ifdef JP
 = {
@@ -681,7 +681,7 @@ static void prt_status(void)
        {
                if (IS_FLG(i))
                {
-                       cptr str;
+                       concptr str;
                        if (space == 2) str = bar[i].lstr;
                        else str = bar[i].sstr;
 
@@ -700,7 +700,7 @@ static void prt_status(void)
  */
 static void prt_title(void)
 {
-       cptr p = "";
+       concptr p = "";
        GAME_TEXT str[14];
 
        if (p_ptr->wizard)
@@ -742,25 +742,13 @@ static void prt_level(void)
 
        if (p_ptr->lev >= p_ptr->max_plv)
        {
-#ifdef JP
-               put_str("レベル ", ROW_LEVEL, 0);
+               put_str(_("レベル ", "LEVEL "), ROW_LEVEL, 0);
                c_put_str(TERM_L_GREEN, tmp, ROW_LEVEL, COL_LEVEL + 7);
-#else
-               put_str("LEVEL ", ROW_LEVEL, 0);
-               c_put_str(TERM_L_GREEN, tmp, ROW_LEVEL, COL_LEVEL + 6);
-#endif
-
        }
        else
        {
-#ifdef JP
-               put_str("xレベル", ROW_LEVEL, 0);
+               put_str(_("xレベル", "Level "), ROW_LEVEL, 0);
                c_put_str(TERM_YELLOW, tmp, ROW_LEVEL, COL_LEVEL + 7);
-#else
-               put_str("Level ", ROW_LEVEL, 0);
-               c_put_str(TERM_YELLOW, tmp, ROW_LEVEL, COL_LEVEL + 6);
-#endif
-
        }
 }
 
@@ -775,7 +763,7 @@ static void prt_exp(void)
 
        if ((!exp_need)||(p_ptr->prace == RACE_ANDROID))
        {
-               (void)sprintf(out_val, _("%7ld", "%8ld"), (long)p_ptr->exp);
+               (void)sprintf(out_val, "%8ld", (long)p_ptr->exp);
        }
        else
        {
@@ -785,36 +773,20 @@ static void prt_exp(void)
                }
                else
                {
-#ifdef JP
-                       (void)sprintf(out_val, "%7ld", (long)(player_exp [p_ptr->lev - 1] * p_ptr->expfact / 100L) - p_ptr->exp);
-#else      
                        (void)sprintf(out_val, "%8ld", (long)(player_exp [p_ptr->lev - 1] * p_ptr->expfact / 100L) - p_ptr->exp);
-#endif
                }
        }
 
        if (p_ptr->exp >= p_ptr->max_exp)
        {
-#ifdef JP
-               if (p_ptr->prace == RACE_ANDROID) put_str("強化 ", ROW_EXP, 0);
-               else put_str("経験 ", ROW_EXP, 0);
-               c_put_str(TERM_L_GREEN, out_val, ROW_EXP, COL_EXP + 5);
-#else
-               if (p_ptr->prace == RACE_ANDROID) put_str("Cst ", ROW_EXP, 0);
-               else put_str("EXP ", ROW_EXP, 0);
+               if (p_ptr->prace == RACE_ANDROID) put_str(_("強化 ", "Cst "), ROW_EXP, 0);
+               else put_str(_("経験 ", "EXP "), ROW_EXP, 0);
                c_put_str(TERM_L_GREEN, out_val, ROW_EXP, COL_EXP + 4);
-#endif
-
        }
        else
        {
                put_str(_("x経験", "Exp "), ROW_EXP, 0);
-#ifdef JP
-               c_put_str(TERM_YELLOW, out_val, ROW_EXP, COL_EXP + 5);
-#else
                c_put_str(TERM_YELLOW, out_val, ROW_EXP, COL_EXP + 4);
-#endif
-
        }
 }
 
@@ -859,7 +831,7 @@ static void prt_ac(void)
  */
 static void prt_hp(void)
 {
-/* ヒットポイントの表示方法を変更 */
+       /* ヒットポイントの表示方法を変更 */
        char tmp[32];
   
        TERM_COLOR color;
@@ -950,7 +922,7 @@ static void prt_depth(void)
 {
        char depths[32];
        TERM_LEN wid, hgt, row_depth, col_depth;
-       byte attr = TERM_WHITE;
+       TERM_COLOR attr = TERM_WHITE;
 
        Term_get_size(&wid, &hgt);
        col_depth = wid + COL_DEPTH;
@@ -1047,9 +1019,8 @@ static void prt_hunger(void)
  */
 static void prt_state(void)
 {
-       byte attr = TERM_WHITE;
-
-       char text[16];
+       TERM_COLOR attr = TERM_WHITE;
+       GAME_TEXT text[16];
 
        /* Repeating */
        if (command_rep)
@@ -1200,7 +1171,7 @@ static void prt_speed(void)
        int i = p_ptr->pspeed;
        bool is_fast = IS_FAST();
 
-       byte attr = TERM_WHITE;
+       TERM_COLOR attr = TERM_WHITE;
        char buf[32] = "";
        TERM_LEN wid, hgt, row_speed, col_speed;
 
@@ -1301,7 +1272,7 @@ static void prt_imitation(void)
        {
                if (p_ptr->mane_num)
                {
-                       byte attr;
+                       TERM_COLOR attr;
                        if (new_mane) attr = TERM_L_RED;
                        else attr = TERM_WHITE;
                        c_put_str(attr, _("まね", "Imit"), row_study, col_study);
@@ -1505,7 +1476,7 @@ static void health_redraw(bool riding)
                        int len = (pct2 < 10) ? 1 : (pct2 < 90) ? (pct2 / 10 + 1) : 10;
 
                        /* Default to almost dead */
-                       byte attr = TERM_RED;
+                       TERM_COLOR attr = TERM_RED;
 
                        /* Invulnerable */
                        if (MON_INVULNER(m_ptr)) attr = TERM_WHITE;
@@ -1568,7 +1539,7 @@ static void prt_frame_basic(void)
        prt_exp();
 
        /* All Stats */
-       for (i = 0; i < 6; i++) prt_stat(i);
+       for (i = 0; i < A_MAX; i++) prt_stat(i);
 
        /* Armor */
        prt_ac();
@@ -1731,8 +1702,8 @@ void print_monster_list(TERM_LEN x, TERM_LEN y, TERM_LEN max_lines){
                        /*
                        MONRACE_IDX r_idx = m_ptr->ap_r_idx;
                        monster_race* r_ptr = &r_info[r_idx];
-                       cptr name = (r_name + r_ptr->name);
-                       cptr ename = (r_name + r_ptr->name);
+                       concptr name = (r_name + r_ptr->name);
+                       concptr ename = (r_name + r_ptr->name);
                        //ミミック類や「それ」等は、一覧に出てはいけない
                        if(r_ptr->flags1&RF1_CHAR_CLEAR)continue;
                        if((r_ptr->flags1&RF1_NEVER_MOVE)&&(r_ptr->flags2&RF2_CHAR_MULTI))continue;
@@ -2118,7 +2089,7 @@ static void calc_spells(void)
        int bonus = 0;
 
 
-       cptr p;
+       concptr p;
 
        /* Hack -- must be literate */
        if (!mp_ptr->spell_book) return;
@@ -2879,8 +2850,6 @@ static void calc_torch(void)
                                if((o_ptr->sval == SV_LITE_LANTERN) && !(o_ptr->xtra4 > 0)) continue;
                        }
                }
-
-               /* Extract the flags */
                object_flags(o_ptr, flgs);
 
                /* calc the lite_radius */
@@ -3110,22 +3079,22 @@ s16b calc_num_fire(object_type *o_ptr)
  */
 void calc_bonuses(void)
 {
-       int             i, j, hold, neutral[2];
-       int             new_speed;
-       int             default_hand = 0;
-       int             empty_hands_status = empty_hands(TRUE);
-       int             extra_blows[2];
-       object_type     *o_ptr;
+       int i, j, hold, neutral[2];
+       int new_speed;
+       int default_hand = 0;
+       int empty_hands_status = empty_hands(TRUE);
+       int extra_blows[2];
+       object_type *o_ptr;
        BIT_FLAGS flgs[TR_FLAG_SIZE];
-       bool            omoi = FALSE;
-       bool            yoiyami = FALSE;
-       bool            down_saving = FALSE;
+       bool omoi = FALSE;
+       bool yoiyami = FALSE;
+       bool down_saving = FALSE;
 #if 0
-       bool            have_dd_s = FALSE, have_dd_t = FALSE;
+       bool have_dd_s = FALSE, have_dd_t = FALSE;
 #endif
-       bool            have_sw = FALSE, have_kabe = FALSE;
-       bool            easy_2weapon = FALSE;
-       bool            riding_levitation = FALSE;
+       bool have_sw = FALSE, have_kabe = FALSE;
+       bool easy_2weapon = FALSE;
+       bool riding_levitation = FALSE;
        OBJECT_IDX this_o_idx, next_o_idx = 0;
        const player_race *tmp_rp_ptr;
 
@@ -3146,16 +3115,19 @@ void calc_bonuses(void)
        bool old_see_inv = p_ptr->see_inv;
        bool old_mighty_throw = p_ptr->mighty_throw;
 
+       /* Current feature under player. */
+       feature_type *f_ptr = &f_info[cave[p_ptr->y][p_ptr->x].feat];
+
        /* Save the old armor class */
-       s16b old_dis_ac = p_ptr->dis_ac;
-       s16b old_dis_to_a = p_ptr->dis_to_a;
+       ARMOUR_CLASS old_dis_ac = p_ptr->dis_ac;
+       ARMOUR_CLASS old_dis_to_a = p_ptr->dis_to_a;
 
 
        /* Clear extra blows/shots */
        extra_blows[0] = extra_blows[1] = 0;
 
        /* Clear the stat modifiers */
-       for (i = 0; i < 6; i++) p_ptr->stat_add[i] = 0;
+       for (i = 0; i < A_MAX; i++) p_ptr->stat_add[i] = 0;
 
 
        /* Clear the Displayed/Real armor class */
@@ -3247,6 +3219,7 @@ void calc_bonuses(void)
        p_ptr->resist_blind = FALSE;
        p_ptr->resist_neth = FALSE;
        p_ptr->resist_time = FALSE;
+       p_ptr->resist_water = FALSE;
        p_ptr->resist_fear = FALSE;
        p_ptr->reflect = FALSE;
        p_ptr->sh_fire = FALSE;
@@ -3727,6 +3700,9 @@ void calc_bonuses(void)
                        p_ptr->resist_pois = TRUE;
                        p_ptr->hold_exp = TRUE;
                        break;
+               case RACE_MERFOLK:
+                       p_ptr->resist_water = TRUE;
+                       break;
                default:
                        /* Do nothing */
                        ;
@@ -3794,10 +3770,17 @@ void calc_bonuses(void)
 
        /* Sexy Gal */
        if (p_ptr->pseikaku == SEIKAKU_SEXY) p_ptr->cursed |= (TRC_AGGRAVATE);
+
        if (p_ptr->pseikaku == SEIKAKU_NAMAKE) p_ptr->to_m_chance += 10;
        if (p_ptr->pseikaku == SEIKAKU_KIREMONO) p_ptr->to_m_chance -= 3;
        if ((p_ptr->pseikaku == SEIKAKU_GAMAN) || (p_ptr->pseikaku == SEIKAKU_CHIKARA)) p_ptr->to_m_chance++;
 
+       if (p_ptr->pseikaku == SEIKAKU_CHARGEMAN)
+       {
+               p_ptr->to_m_chance += 5;
+               p_ptr->resist_conf = TRUE;
+       }
+
        /* Lucky man */
        if (p_ptr->pseikaku == SEIKAKU_LUCKY) p_ptr->muta3 |= MUT3_GOOD_LUCK;
 
@@ -3820,7 +3803,7 @@ void calc_bonuses(void)
 
        /* Hack -- apply racial/class stat maxes */
        /* Apply the racial modifiers */
-       for (i = 0; i < 6; i++)
+       for (i = 0; i < A_MAX; i++)
        {
                /* Modify the stats for "race" */
                p_ptr->stat_add[i] += (tmp_rp_ptr->r_adj[i] + cp_ptr->c_adj[i] + ap_ptr->a_adj[i]);
@@ -4106,7 +4089,7 @@ void calc_bonuses(void)
                        if (object_is_cursed(o_ptr)) p_ptr->cursed |= TRC_TELEPORT;
                        else
                        {
-                               cptr insc = quark_str(o_ptr->inscription);
+                               concptr insc = quark_str(o_ptr->inscription);
 
                                if (o_ptr->inscription && my_strchr(insc, '.'))
                                {
@@ -4312,6 +4295,13 @@ void calc_bonuses(void)
                }
        }
 
+       /* Shield skill bonus */
+       if (object_is_armour(&inventory[INVEN_RARM]) || object_is_armour(&inventory[INVEN_LARM]))
+       {
+               p_ptr->ac += p_ptr->skill_exp[GINOU_SHIELD] * (1 + p_ptr->lev / 22) / 2000;
+               p_ptr->dis_ac += p_ptr->skill_exp[GINOU_SHIELD] * (1 + p_ptr->lev / 22) / 2000;
+       }
+
        if (old_mighty_throw != p_ptr->mighty_throw)
        {
                /* Redraw average damege display of Shuriken */
@@ -4381,7 +4371,7 @@ void calc_bonuses(void)
 
        if (p_ptr->special_defense & KATA_KOUKIJIN)
        {
-               for (i = 0; i < 6; i++)
+               for (i = 0; i < A_MAX; i++)
                        p_ptr->stat_add[i] += 5;
                p_ptr->to_a -= 50;
                p_ptr->dis_to_a -= 50;
@@ -4441,7 +4431,7 @@ void calc_bonuses(void)
        }
 
        /* Calculate stats */
-       for (i = 0; i < 6; i++)
+       for (i = 0; i < A_MAX; i++)
        {
                int top, use, ind;
 
@@ -4840,6 +4830,20 @@ void calc_bonuses(void)
        /* Searching slows the player down */
        if (p_ptr->action == ACTION_SEARCH) new_speed -= 10;
 
+       /* Feature bonus */
+       if(p_ptr->prace == RACE_MERFOLK)
+       {
+               if (have_flag(f_ptr->flags, FF_WATER))
+               {
+                       new_speed += (2 + p_ptr->lev / 10);
+               }
+               else if (!p_ptr->levitation)
+               {
+                       new_speed -= 2;
+               }
+       }
+
+
        /* Actual Modifier Bonuses (Un-inflate stat bonuses) */
        p_ptr->to_a += ((int)(adj_dex_ta[p_ptr->stat_ind[A_DEX]]) - 128);
        p_ptr->to_d[0] += ((int)(adj_str_td[p_ptr->stat_ind[A_STR]]) - 128);
@@ -5699,149 +5703,6 @@ void calc_bonuses(void)
 }
 
 
-
-/*! 
- * @brief p_ptr->notice のフラグに応じた更新をまとめて行う / Handle "p_ptr->notice"
- * @return なし
- * @details 更新処理の対象はアイテムの自動破壊/アイテムの結合/アイテムの並び替え。
- */
-static void notice_stuff(void)
-{
-       if(!p_ptr->notice) return;
-
-       /* Actually do auto-destroy */
-       if(p_ptr->notice & (PN_AUTODESTROY))
-       {
-               p_ptr->notice &= ~(PN_AUTODESTROY);
-               autopick_delayed_alter();
-       }
-
-       /* Combine the pack */
-       if (p_ptr->notice & (PN_COMBINE))
-       {
-               p_ptr->notice &= ~(PN_COMBINE);
-               combine_pack();
-       }
-
-       /* Reorder the pack */
-       if (p_ptr->notice & (PN_REORDER))
-       {
-               p_ptr->notice &= ~(PN_REORDER);
-               reorder_pack();
-       }
-}
-
-
-/*! 
- * @brief p_ptr->update のフラグに応じた更新をまとめて行う / Handle "p_ptr->update"
- * @return なし
- * @details 更新処理の対象はプレイヤーの能力修正/光源寿命/HP/MP/魔法の学習状態、他多数の外界の状態判定。
- */
-static void update_stuff(void)
-{
-       if (!p_ptr->update) return;
-
-       if (p_ptr->update & (PU_BONUS))
-       {
-               p_ptr->update &= ~(PU_BONUS);
-               calc_bonuses();
-       }
-
-       if (p_ptr->update & (PU_TORCH))
-       {
-               p_ptr->update &= ~(PU_TORCH);
-               calc_torch();
-       }
-
-       if (p_ptr->update & (PU_HP))
-       {
-               p_ptr->update &= ~(PU_HP);
-               calc_hitpoints();
-       }
-
-       if (p_ptr->update & (PU_MANA))
-       {
-               p_ptr->update &= ~(PU_MANA);
-               calc_mana();
-       }
-
-       if (p_ptr->update & (PU_SPELLS))
-       {
-               p_ptr->update &= ~(PU_SPELLS);
-               calc_spells();
-       }
-
-       /* Character is not ready yet, no screen updates */
-       if (!character_generated) return;
-
-       /* Character is in "icky" mode, no screen updates */
-       if (character_icky) return;
-
-       if (p_ptr->update & (PU_UN_LITE))
-       {
-               p_ptr->update &= ~(PU_UN_LITE);
-               forget_lite();
-       }
-
-       if (p_ptr->update & (PU_UN_VIEW))
-       {
-               p_ptr->update &= ~(PU_UN_VIEW);
-               forget_view();
-       }
-
-       if (p_ptr->update & (PU_VIEW))
-       {
-               p_ptr->update &= ~(PU_VIEW);
-               update_view();
-       }
-
-       if (p_ptr->update & (PU_LITE))
-       {
-               p_ptr->update &= ~(PU_LITE);
-               update_lite();
-       }
-
-
-       if (p_ptr->update & (PU_FLOW))
-       {
-               p_ptr->update &= ~(PU_FLOW);
-               update_flow();
-       }
-
-       if (p_ptr->update & (PU_DISTANCE))
-       {
-               p_ptr->update &= ~(PU_DISTANCE);
-
-               /* Still need to call update_monsters(FALSE) after update_mon_lite() */ 
-               /* p_ptr->update &= ~(PU_MONSTERS); */
-
-               update_monsters(TRUE);
-       }
-
-       if (p_ptr->update & (PU_MON_LITE))
-       {
-               p_ptr->update &= ~(PU_MON_LITE);
-               update_mon_lite();
-       }
-
-       /*
-        * Mega-Hack -- Delayed visual update
-        * Only used if update_view(), update_lite() or update_mon_lite() was called
-        */
-       if (p_ptr->update & (PU_DELAY_VIS))
-       {
-               p_ptr->update &= ~(PU_DELAY_VIS);
-               delayed_visual_update();
-       }
-
-       if (p_ptr->update & (PU_MONSTERS))
-       {
-               p_ptr->update &= ~(PU_MONSTERS);
-               update_monsters(FALSE);
-       }
-}
-
-
 /*! 
  * @brief p_ptr->redraw のフラグに応じた更新をまとめて行う / Handle "p_ptr->redraw"
  * @return なし
@@ -6132,12 +5993,147 @@ static void window_stuff(void)
  */
 void handle_stuff(void)
 {
-       if (p_ptr->notice) notice_stuff();
-       if (p_ptr->update) update_stuff();
+       if (p_ptr->update) update_creature(p_ptr);
        if (p_ptr->redraw) redraw_stuff();
        if (p_ptr->window) window_stuff();
 }
 
+void update_output(void)
+{
+       if (p_ptr->redraw) redraw_stuff();
+       if (p_ptr->window) window_stuff();
+}
+
+/*!
+ * @brief p_ptr->update のフラグに応じた更新をまとめて行う / Handle "p_ptr->update"
+ * @return なし
+ * @details 更新処理の対象はプレイヤーの能力修正/光源寿命/HP/MP/魔法の学習状態、他多数の外界の状態判定。
+ */
+void update_creature(player_type *creature_ptr)
+{
+       if (!creature_ptr->update) return;
+
+       /* Actually do auto-destroy */
+       if (creature_ptr->update & (PU_AUTODESTROY))
+       {
+               creature_ptr->update &= ~(PU_AUTODESTROY);
+               autopick_delayed_alter();
+       }
+
+       /* Combine the pack */
+       if (creature_ptr->update & (PU_COMBINE))
+       {
+               creature_ptr->update &= ~(PU_COMBINE);
+               combine_pack();
+       }
+
+       /* Reorder the pack */
+       if (creature_ptr->update & (PU_REORDER))
+       {
+               creature_ptr->update &= ~(PU_REORDER);
+               reorder_pack();
+       }
+
+       if (creature_ptr->update & (PU_BONUS))
+       {
+               creature_ptr->update &= ~(PU_BONUS);
+               calc_bonuses();
+       }
+
+       if (creature_ptr->update & (PU_TORCH))
+       {
+               creature_ptr->update &= ~(PU_TORCH);
+               calc_torch();
+       }
+
+       if (creature_ptr->update & (PU_HP))
+       {
+               creature_ptr->update &= ~(PU_HP);
+               calc_hitpoints();
+       }
+
+       if (creature_ptr->update & (PU_MANA))
+       {
+               creature_ptr->update &= ~(PU_MANA);
+               calc_mana();
+       }
+
+       if (creature_ptr->update & (PU_SPELLS))
+       {
+               creature_ptr->update &= ~(PU_SPELLS);
+               calc_spells();
+       }
+
+       /* Character is not ready yet, no screen updates */
+       if (!character_generated) return;
+
+       /* Character is in "icky" mode, no screen updates */
+       if (character_icky) return;
+
+       if (creature_ptr->update & (PU_UN_LITE))
+       {
+               creature_ptr->update &= ~(PU_UN_LITE);
+               forget_lite();
+       }
+
+       if (creature_ptr->update & (PU_UN_VIEW))
+       {
+               creature_ptr->update &= ~(PU_UN_VIEW);
+               forget_view();
+       }
+
+       if (creature_ptr->update & (PU_VIEW))
+       {
+               creature_ptr->update &= ~(PU_VIEW);
+               update_view();
+       }
+
+       if (creature_ptr->update & (PU_LITE))
+       {
+               creature_ptr->update &= ~(PU_LITE);
+               update_lite();
+       }
+
+
+       if (creature_ptr->update & (PU_FLOW))
+       {
+               creature_ptr->update &= ~(PU_FLOW);
+               update_flow();
+       }
+
+       if (creature_ptr->update & (PU_DISTANCE))
+       {
+               creature_ptr->update &= ~(PU_DISTANCE);
+
+               /* Still need to call update_monsters(FALSE) after update_mon_lite() */
+               /* creature_ptr->update &= ~(PU_MONSTERS); */
+
+               update_monsters(TRUE);
+       }
+
+       if (creature_ptr->update & (PU_MON_LITE))
+       {
+               creature_ptr->update &= ~(PU_MON_LITE);
+               update_mon_lite();
+       }
+
+       /*
+        * Mega-Hack -- Delayed visual update
+        * Only used if update_view(), update_lite() or update_mon_lite() was called
+        */
+       if (creature_ptr->update & (PU_DELAY_VIS))
+       {
+               creature_ptr->update &= ~(PU_DELAY_VIS);
+               delayed_visual_update();
+       }
+
+       if (creature_ptr->update & (PU_MONSTERS))
+       {
+               creature_ptr->update &= ~(PU_MONSTERS);
+               update_monsters(FALSE);
+       }
+}
+
 /*!
  * @brief プレイヤーの現在開いている手の状態を返す
  * @param riding_control 乗馬中により片手を必要としている状態ならばTRUEを返す。