OSDN Git Service

[Refactor] #37353 'nikki'を'diary'に変更、但し定数はそのまま / Changed 'nikki' to 'diary', but...
authorHourier <hourier@users.sourceforge.jp>
Sun, 5 Jan 2020 05:19:17 +0000 (14:19 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 5 Jan 2020 05:19:17 +0000 (14:19 +0900)
src/cmd/cmd-dump.c
src/cmd/cmd-dump.h
src/core.c
src/store.c

index e4b0ce7..30077a5 100644 (file)
@@ -409,11 +409,11 @@ errr exe_write_diary(player_type *creature_ptr, int type, int num, concptr note)
        char note_level_buf[40];
        QUEST_IDX q_idx;
 
-       static bool disable_nikki = FALSE;
+       static bool disable_diary = FALSE;
 
        extract_day_hour_min(&day, &hour, &min);
 
-       if (disable_nikki) return(-1);
+       if (disable_diary) return(-1);
 
        if (type == NIKKI_FIX_QUEST_C ||
            type == NIKKI_FIX_QUEST_F ||
@@ -449,7 +449,7 @@ errr exe_write_diary(player_type *creature_ptr, int type, int num, concptr note)
        {
                msg_format(_("%s を開くことができませんでした。プレイ記録を一時停止します。", "Failed to open %s. Play-Record is disabled temporally."), buf);
                msg_format(NULL);
-               disable_nikki=TRUE;
+               disable_diary=TRUE;
                return (-1);
        }
 
@@ -756,7 +756,7 @@ errr exe_write_diary(player_type *creature_ptr, int type, int num, concptr note)
  */
 static void display_diary(player_type *creature_ptr)
 {
-       char nikki_title[256];
+       char diary_title[256];
        GAME_TEXT file_name[MAX_NLEN];
        char buf[1024];
        char tmp[80];
@@ -837,13 +837,13 @@ static void display_diary(player_type *creature_ptr)
        else strcpy(tmp,subtitle[randint0(MAX_SUBTITLE-2)+1]);
 
 #ifdef JP
-       sprintf(nikki_title, "「%s%s%sの伝説 -%s-」", ap_ptr->title, ap_ptr->no ? "の" : "", creature_ptr->name, tmp);
+       sprintf(diary_title, "「%s%s%sの伝説 -%s-」", ap_ptr->title, ap_ptr->no ? "の" : "", creature_ptr->name, tmp);
 #else
-       sprintf(nikki_title, "Legend of %s %s '%s'", ap_ptr->title, creature_ptr->name, tmp);
+       sprintf(diary_title, "Legend of %s %s '%s'", ap_ptr->title, creature_ptr->name, tmp);
 #endif
 
        /* Display the file contents */
-       show_file(FALSE, buf, nikki_title, -1, 0);
+       show_file(FALSE, buf, diary_title, -1, 0);
 }
 
 /*!
@@ -887,7 +887,7 @@ static void do_cmd_last_get(player_type *creaute_ptr)
  * @brief ファイル中の全日記記録を消去する /
  * @return なし
  */
-static void do_cmd_erase_nikki(void)
+static void do_cmd_erase_diary(void)
 {
        GAME_TEXT file_name[MAX_NLEN];
        char buf[256];
@@ -916,7 +916,7 @@ static void do_cmd_erase_nikki(void)
  * @param crerature_ptr プレーヤーへの参照ポインタ
  * @return なし
  */
-void do_cmd_nikki(player_type *creature_ptr)
+void do_cmd_diary(player_type *creature_ptr)
 {
        int i;
 
@@ -960,7 +960,7 @@ void do_cmd_nikki(player_type *creature_ptr)
                        do_cmd_last_get(creature_ptr);
                        break;
                case '4':
-                       do_cmd_erase_nikki();
+                       do_cmd_erase_diary();
                        break;
                case 'r': case 'R':
                        screen_load();
index d74471c..a10ae9e 100644 (file)
@@ -49,7 +49,7 @@
 extern concptr get_ordinal_number_suffix(int num);
 #endif
 extern errr exe_write_diary(player_type *creature_ptr, int type, int num, concptr note);
-extern void do_cmd_nikki(player_type *creature_ptr);
+extern void do_cmd_diary(player_type *creature_ptr);
 extern void do_cmd_redraw(player_type *creature_ptr);
 extern void do_cmd_player_status(player_type *creature_ptr);
 extern void do_cmd_message_one(void);
index b851afa..002e8df 100644 (file)
@@ -4224,7 +4224,7 @@ static void process_command(player_type *creature_ptr)
 
                case '|':
                {
-                       do_cmd_nikki(creature_ptr);
+                       do_cmd_diary(creature_ptr);
                        break;
                }
 
index 2fd7179..a03304e 100644 (file)
@@ -5638,7 +5638,7 @@ static void store_process_command(player_type *client_ptr)
 
                case '|':
                {
-                       do_cmd_nikki(client_ptr);
+                       do_cmd_diary(client_ptr);
                        break;
                }