OSDN Git Service

#37449 (2.2.0.69) モンスターダメージ処理のWizardログを整形。 / Rearrange wizard logs of damage process...
authorDeskull <desull@users.sourceforge.jp>
Wed, 30 Aug 2017 14:41:17 +0000 (23:41 +0900)
committerDeskull <desull@users.sourceforge.jp>
Wed, 30 Aug 2017 14:41:17 +0000 (23:41 +0900)
src/cmd1.c
src/cmd2.c
src/defines.h

index af63de2..a78dce6 100644 (file)
@@ -1501,10 +1501,9 @@ static void natural_attack(s16b m_idx, int attack, bool *fear, bool *mdeath)
                k = mon_damage_mod(m_ptr, k, FALSE);
 
                /* Complex message */
-               if (p_ptr->wizard)
-               {
-                       msg_format(_("%d/%d のダメージを与えた。", "You do %d (out of %d) damage."), k, m_ptr->hp);
-               }
+               msg_format_wizard(CHEAT_MONSTER,
+                       _("%dのダメージを与えた。(残りHP %d/%d(%d))", "You do %d damage. (left HP %d/%d(%d))"),
+                       k, m_ptr->hp - k, m_ptr->maxhp, m_ptr->max_maxhp);
 
                /* Anger the monster */
                if (k > 0) anger_monster(m_ptr);
@@ -2103,11 +2102,9 @@ static void py_attack_aux(int y, int x, bool *fear, bool *mdeath, s16b hand, int
                                }
                        }
 
-                       /* Complex message */
-                       if (p_ptr->wizard || cheat_xtra)
-                       {
-                               msg_format(_("%d/%d のダメージを与えた。", "You do %d (out of %d) damage."), k, m_ptr->hp);
-                       }
+                       msg_format_wizard(CHEAT_MONSTER,
+                               _("%dのダメージを与えた。(残りHP %d/%d(%d))", "You do %d damage. (left HP %d/%d(%d))"), k,
+                               m_ptr->hp - k, m_ptr->maxhp, m_ptr->max_maxhp);
 
                        if (k <= 0) can_drain = FALSE;
 
index 6fc56c1..0bb1503 100644 (file)
@@ -3572,11 +3572,9 @@ void do_cmd_fire_aux(int item, object_type *j_ptr)
                                        tdam = mon_damage_mod(m_ptr, tdam, FALSE);
                                }
 
-                               /* Complex message */
-                               if (p_ptr->wizard || cheat_xtra)
-                               {
-                                       msg_format(_("%d/%d のダメージを与えた。", "You do %d (out of %d) damage."), tdam, m_ptr->hp);
-                               }
+                               msg_format_wizard(CHEAT_MONSTER,
+                                       _("%dのダメージを与えた。(残りHP %d/%d(%d))", "You do %d damage. (left HP %d/%d(%d))"),
+                                       tdam, m_ptr->hp - tdam, m_ptr->maxhp, m_ptr->max_maxhp);
 
                                /* Sniper */
                                if (snipe_type == SP_EXPLODE)
@@ -4213,11 +4211,8 @@ bool do_cmd_throw_aux(int mult, bool boomerang, int shuriken)
                                /* Modify the damage */
                                tdam = mon_damage_mod(m_ptr, tdam, FALSE);
 
-                               /* Complex message */
-                               if (p_ptr->wizard)
-                               {
-                                       msg_format(_("%d/%dのダメージを与えた。", "You do %d (out of %d) damage."), tdam, m_ptr->hp);
-                               }
+                               msg_format_wizard(CHEAT_MONSTER, _("%dのダメージを与えた。(残りHP %d/%d(%d))", "You do %d damage. (left HP %d/%d(%d))"),
+                                       tdam, m_ptr->hp - tdam, m_ptr->maxhp, m_ptr->max_maxhp);
 
                                /* Hit the monster, check for death */
                                if (mon_take_hit(c_ptr->m_idx, tdam, &fear, extract_note_dies(real_r_ptr(m_ptr))))
index 198abd2..09bb8b5 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 68 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 69 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!