OSDN Git Service

「行動前に視界内モンスターリストを更新」オプションを追加
authortaotao54321 <taotao54321@gmail.com>
Fri, 4 Oct 2019 14:12:26 +0000 (23:12 +0900)
committertaotao54321 <taotao54321@gmail.com>
Fri, 4 Oct 2019 14:12:26 +0000 (23:12 +0900)
src/dungeon.c
src/gameoption.c
src/gameoption.h

index a585858..ac1faed 100644 (file)
@@ -4940,6 +4940,12 @@ static void process_player(void)
                        /* Place the cursor on the player */
                        move_cursor_relative(p_ptr->y, p_ptr->x);
 
+                       if(refresh_mon_list)
+                       {
+                               p_ptr->window |= PW_MONSTER_LIST;
+                               update_output();
+                       }
+
                        can_save = TRUE;
                        /* Get a command (normal) */
                        request_command(FALSE);
index 78779fc..1bd1d5b 100644 (file)
@@ -63,6 +63,7 @@ bool abbrev_extra;    /* Describe obj's extra resistances by abbreviation */
 bool abbrev_all;       /* Describe obj's all resistances by abbreviation */
 bool exp_need; /* Show the experience needed for next level */
 bool ignore_unview;    /* Ignore whenever any monster does */
+bool refresh_mon_list; /* Refresh monster list before action */
 
 
                                        /*** Game-Play Options ***/
@@ -345,6 +346,9 @@ const option_type option_info[] =
        { &ignore_unview,               FALSE, OPT_PAGE_TEXT, 2, 13,
        "ignore_unview",                _("視界外のモンスターの行動を表示しない", "Ignore whenever any monster does") },
 
+       { &refresh_mon_list,            FALSE, OPT_PAGE_TEXT, 2, 18,
+       "refresh_mon_list",             _("行動前に視界内モンスターリストを更新(重い)", "Refresh monster list before action") },
+
        { &show_ammo_detail,            TRUE, OPT_PAGE_TEXT, 2, 14,
        "show_ammo_detail",             _("矢弾のダメージの説明を表示する", "Show description of ammo damage") },
 
index eae734b..231b7e0 100644 (file)
@@ -56,6 +56,7 @@ extern bool abbrev_extra;     /* Describe obj's extra resistances by abbreviation */
 extern bool abbrev_all;        /* Describe obj's all resistances by abbreviation */
 extern bool exp_need;  /* Show the experience needed for next level */
 extern bool ignore_unview;     /* Ignore whenever any monster does */
+extern bool refresh_mon_list;  /* Refresh monster list before action */
 extern bool show_ammo_detail;  /* Show Description of ammo damage */
 extern bool show_ammo_no_crit; /* Show No-crit damage of ammo */
 extern bool show_ammo_crit_ratio;      /* Show critical ratio of ammo */