OSDN Git Service

#37449 (2.2.0.52) 詐欺オプションに「詳細な情報を日記に出力する」を追加。(オプション上のみ) / Add cheat option "Output...
authorDeskull <desull@users.sourceforge.jp>
Wed, 23 Aug 2017 15:47:28 +0000 (00:47 +0900)
committerDeskull <desull@users.sourceforge.jp>
Wed, 23 Aug 2017 15:47:28 +0000 (00:47 +0900)
src/cmd4.c
src/defines.h
src/externs.h
src/load.c
src/save.c
src/variable.c

index c7973d4..06f9e91 100644 (file)
@@ -1385,7 +1385,7 @@ void do_cmd_messages(int num_now)
 /*!
  * チートオプションの最大数 / Number of cheating options
  */
-#define CHEAT_MAX 7
+#define CHEAT_MAX 8
 
 /*!
  * チーとオプションの定義テーブル / Cheating options
@@ -1418,7 +1418,13 @@ static option_type cheat_info[CHEAT_MAX] =
 
        { &cheat_save,          FALSE,  255,    0x40, 0x00,
                "cheat_save",           _("死んだ時セーブするか確認する", "Ask for saving death")
+       },
+
+       { &cheat_diary_output,  FALSE,  255,    0x80, 0x00,
+               "cheat_diary_output",           _("詳細な情報を日記に出力する", "Output detailed infotmation to diary.")
        }
+
+
 };
 
 /*!
index 64a7e37..2a9788f 100644 (file)
@@ -53,7 +53,7 @@
 #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */
 #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */
 #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */
-#define FAKE_VER_EXTRA 51 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 52 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!
index 486ea09..eab4b18 100644 (file)
@@ -381,6 +381,7 @@ extern bool cheat_xtra;
 extern bool cheat_know;
 extern bool cheat_live;
 extern bool cheat_save;
+extern bool cheat_diary_output;
 
 extern char record_o_name[MAX_NLEN];
 extern s32b record_turn;
index 7615bc9..4cc6736 100644 (file)
@@ -1436,6 +1436,7 @@ static void rd_options(void)
        cheat_know = (c & 0x1000) ? TRUE : FALSE;
        cheat_live = (c & 0x2000) ? TRUE : FALSE;
        cheat_save = (c & 0x4000) ? TRUE : FALSE;
+       cheat_diary_output = (c & 0x8000) ? TRUE : FALSE;
 
        rd_byte((byte *)&autosave_l);
        rd_byte((byte *)&autosave_t);
index d0b2328..f511cb1 100644 (file)
@@ -483,6 +483,7 @@ static void wr_options(void)
        if (cheat_know) c |= 0x1000;
        if (cheat_live) c |= 0x2000;
        if (cheat_save) c |= 0x4000;
+       if (cheat_diary_output) c |= 0x8000;
 
        wr_u16b(c);
 
index 1574009..de8ccc9 100644 (file)
@@ -355,6 +355,7 @@ bool cheat_xtra;    /* Peek into something else */
 bool cheat_know;       /* Know complete monster info */
 bool cheat_live;       /* Allow player to avoid death */
 bool cheat_save;       /* Ask for saving death */
+bool cheat_diary_output; /* Detailed info to diary */
 
 
 /* Special options */