From c0ce30c1cef9c5b2dd9bd1b1bdde3edfed0c57dd Mon Sep 17 00:00:00 2001 From: Deskull Date: Sat, 26 Aug 2017 21:43:39 +0900 Subject: [PATCH] =?utf8?q?#37449=E3=80=80(2.2.0.60)=20=E3=82=A6=E3=82=A3?= =?utf8?q?=E3=82=B6=E3=83=BC=E3=83=89=E3=83=A2=E3=83=BC=E3=83=89=E3=83=A1?= =?utf8?q?=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=81=AB=E3=83=81=E3=83=BC?= =?utf8?q?=E3=83=88=E3=82=AA=E3=83=97=E3=82=B7=E3=83=A7=E3=83=B3=E6=AF=8E?= =?utf8?q?=E3=81=AE=E6=8E=A5=E9=A0=AD=E9=83=A8=E3=82=92=E8=BF=BD=E5=8A=A0?= =?utf8?q?=E3=80=82=20/=20Add=20pre-code=20wizard=20mode=20massage=20by=20?= =?utf8?q?cheat=20option=20type.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/defines.h | 9 ++++++++- src/util.c | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/defines.h b/src/defines.h index b5306cc65..2bb4504b2 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 59 /*!< ゲームのバージョン番号定義(エクストラ番号) */ +#define FAKE_VER_EXTRA 60 /*!< ゲームのバージョン番号定義(エクストラ番号) */ /*! @@ -5660,3 +5660,10 @@ extern int PlayerUID; #define DICE_MULT 6 #define DICE_DIV 7 #define BASE_DAM 8 + +/* Cheat Info Type */ +#define CHEAT_OBJECT 0 +#define CHEAT_MONSTER 1 +#define CHEAT_DUNGEON 2 +#define CHEAT_MISC 3 + diff --git a/src/util.c b/src/util.c index bba685e6e..7eeb72b44 100644 --- a/src/util.c +++ b/src/util.c @@ -2970,8 +2970,9 @@ void msg_print(cptr msg) void msg_print_wizard(int cheat_type, cptr msg) { + cptr cheat_mes[] = {"ITEM", "MONS", "DUNG", "MISC"}; char buf[1024]; - sprintf(buf, "WIZ%2d:%s", cheat_type, msg); + sprintf(buf, "WIZ-%s:%s", cheat_mes[cheat_type], msg); msg_print(buf); } -- 2.11.0