OSDN Git Service

#37449 (2.2.0.65) ウィザードモード時のモンスターとアイテムの生成情報を整理。 / Rearrange generation info of monste...
authorDeskull <desull@users.sourceforge.jp>
Mon, 28 Aug 2017 14:32:06 +0000 (23:32 +0900)
committerDeskull <desull@users.sourceforge.jp>
Mon, 28 Aug 2017 14:32:06 +0000 (23:32 +0900)
src/artifact.c
src/defines.h
src/monster2.c
src/object2.c
src/rooms.c

index e08d881..7c27f86 100644 (file)
@@ -2049,14 +2049,10 @@ bool create_artifact(object_type *o_ptr, bool a_scroll)
        /* 平均対邪ダメージが一定以上なら11/12(WEIRD_LUCK)でダメージ抑制処理を行う */
        if(suppression_evil_dam(o_ptr) && !one_in_(WEIRD_LUCK) && object_is_weapon(o_ptr))
        {
-               if(cheat_xtra) msg_format("抑制処理");
+               msg_format_wizard(CHEAT_OBJECT, "アーティファクトの抑制処理を行います。");
                do
                {
-                       if (weakening_artifact(o_ptr) == 0)
-                       {
-                               break;
-                       }
-
+                       if (weakening_artifact(o_ptr) == 0) break;
                } while (suppression_evil_dam(o_ptr));
        }
 
@@ -2102,26 +2098,8 @@ bool create_artifact(object_type *o_ptr, bool a_scroll)
        /* Save the inscription */
        o_ptr->art_name = quark_add(new_name);
 
-       if (cheat_xtra)
-       {
-               char o_name[MAX_NLEN];
-
-               object_aware(o_ptr);
-               object_known(o_ptr);
-
-               /* Mark the item as fully known */
-               o_ptr->ident |= (IDENT_MENTAL);
-
-               /* Description */
-               object_desc(o_name, o_ptr, 0);
-
-#ifdef JP
-               msg_format("パワー %d で 価値%ld のランダムアーティファクト生成 バイアスは「%s」対邪%d:", max_powers, total_flags, artifact_bias_name[artifact_bias], calc_arm_avgdamage(o_ptr));
-#else
-               msg_format("Random artifact generated '%s'. (Power:%d, Value:%ld) :", artifact_bias_name[artifact_bias], max_powers, total_flags);
-#endif
-               msg_format("%s", o_name);
-       }
+       msg_format_wizard(CHEAT_OBJECT, _("パワー %d で 価値%ld のランダムアーティファクト生成 バイアスは「%s」",
+               "Random artifact generated - Power:%d Value:%d Bias:%s."), max_powers, total_flags, artifact_bias_name[artifact_bias]);
 
        if (cheat_diary_output)
        {
index c7d49d5..3d546bc 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 64 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 65 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!
index ea45441..4edae66 100644 (file)
@@ -3146,10 +3146,7 @@ static bool place_monster_one(int who, int y, int x, int r_idx, u32b mode)
                else return FALSE;
        }
 
-       if (cheat_hear)
-       {
-               msg_format(_("WIZ: モンスター (%s)[Lv%d]を生成しました。", "WIZ: Monster (%s)[Lv%d]."), name, r_ptr->level);
-       }
+       msg_format_wizard(CHEAT_MONSTER, _("%s(Lv%d)を生成しました。", "%s(Lv%d) was generated."), name, r_ptr->level);
 
        if ((r_ptr->flags1 & RF1_UNIQUE) || (r_ptr->flags7 & RF7_NAZGUL) || (r_ptr->level < 10)) mode &= ~PM_KAGE;
 
index 38e34de..00bc497 100644 (file)
@@ -2079,28 +2079,15 @@ static void object_mention(object_type *o_ptr)
 {
        char o_name[MAX_NLEN];
 
-       /*!
-        * @note アイテム名取得後アイテムの価値に応じたデバッグメッセージを出力する。
-        * Get Describe and view, Artifact, Random Artifact, Ego-item, and Normal item.
-        */
-       object_desc(o_name, o_ptr, (OD_NAME_ONLY | OD_STORE));
+       object_aware(o_ptr);
+       object_known(o_ptr);
 
-       if (object_is_fixed_artifact(o_ptr))
-       {
-               msg_format(_("WIZ: ★(%s)を生成しました。", "WIZ: Artifact (%s)"), o_name);
-       }
-       else if (o_ptr->art_name)
-       {
-               msg_format(_("WIZ: ☆(%s)を生成しました。", "WIZ: Random Artifact (%s)"), o_name);
-       }
-       else if (object_is_ego(o_ptr))
-       {
-               msg_format(_("WIZ: エゴ(%s)を生成しました。", "WIZ: Ego-item (%s)"), o_name);
-       }
-       else
-       {
-               msg_format(_("WIZ: アイテム(%s)を生成しました。", "WIZ: Object (%s)"), o_name);
-       }
+       /* Mark the item as fully known */
+       o_ptr->ident |= (IDENT_MENTAL);
+
+       /* Description */
+       object_desc(o_name, o_ptr, 0);
+       msg_format_wizard(CHEAT_OBJECT, _("%sを生成しました。", "%s was generated."), o_name);
 }
 
 /*!
index cfe0caa..d9ae160 100644 (file)
@@ -5924,7 +5924,7 @@ static bool build_type13(void)
                }
        }
 
-       msg_format_wizard(CHEAT_DUNGEON, _("WIZ: %s%sの罠ピットが生成されました。", "WIZ: Trapped monster pit (%s%s)"),
+       msg_format_wizard(CHEAT_DUNGEON, _("%s%sの罠ピットが生成されました。", "Trapped monster pit (%s%s)"),
                n_ptr->name, pit_subtype_string(cur_pit_type, FALSE));
 
        /* Select the entries */
@@ -6028,7 +6028,7 @@ static bool build_type14(void)
        c_ptr->mimic = c_ptr->feat;
        c_ptr->feat = trap;
 
-       msg_format_wizard(CHEAT_DUNGEON, _("WIZ: %sの部屋が生成されました。", "WIZ: Room of %s was generated."), f_name + f_info[trap].name);
+       msg_format_wizard(CHEAT_DUNGEON, _("%sの部屋が生成されました。", "Room of %s was generated."), f_name + f_info[trap].name);
 
        return TRUE;
 }