From: Deskull Date: Wed, 23 Aug 2017 15:47:28 +0000 (+0900) Subject: #37449 (2.2.0.52) 詐欺オプションに「詳細な情報を日記に出力する」を追加。(オプション上のみ) / Add cheat option "Output... X-Git-Tag: v2.2.1~49 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=442aaf07eda8238555c88a5396b8d302552a5eef;ds=sidebyside #37449 (2.2.0.52) 詐欺オプションに「詳細な情報を日記に出力する」を追加。(オプション上のみ) / Add cheat option "Output detailed infotmation to diary." (Only option flag) --- diff --git a/src/cmd4.c b/src/cmd4.c index c7973d422..06f9e916b 100644 --- a/src/cmd4.c +++ b/src/cmd4.c @@ -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.") } + + }; /*! diff --git a/src/defines.h b/src/defines.h index 64a7e37d1..2a9788fcd 100644 --- a/src/defines.h +++ b/src/defines.h @@ -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 /*!< ゲームのバージョン番号定義(エクストラ番号) */ /*! diff --git a/src/externs.h b/src/externs.h index 486ea0991..eab4b18da 100644 --- a/src/externs.h +++ b/src/externs.h @@ -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; diff --git a/src/load.c b/src/load.c index 7615bc93e..4cc673675 100644 --- a/src/load.c +++ b/src/load.c @@ -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); diff --git a/src/save.c b/src/save.c index d0b23283c..f511cb199 100644 --- a/src/save.c +++ b/src/save.c @@ -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); diff --git a/src/variable.c b/src/variable.c index 1574009b6..de8ccc931 100644 --- a/src/variable.c +++ b/src/variable.c @@ -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 */