OSDN Git Service

[Refactor] #37353 remove_curse()とremove_all_curse()メッセージ整理。 / Refactor remove_curse...
authorDeskull <deskull@users.sourceforge.jp>
Thu, 8 Nov 2018 16:35:32 +0000 (01:35 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Thu, 8 Nov 2018 16:35:32 +0000 (01:35 +0900)
src/cmd-activate.c
src/cmd-read.c
src/cmd-usestaff.c
src/realm-craft.c
src/realm-crusade.c
src/realm-life.c
src/spells3.c

index ad00f25..0106ca5 100644 (file)
@@ -1467,10 +1467,7 @@ bool activate_artifact(object_type *o_ptr)
        case ACT_DISP_CURSE_XTRA:
        {
                msg_format(_("%sが真実を照らし出す...", "The %s exhibits the truth..."), name);
-               if (remove_all_curse())
-               {
-                       msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
-               }
+               (void)remove_all_curse();
                (void)probing();
                break;
        }
index 7a9de6b..348df86 100644 (file)
@@ -208,7 +208,6 @@ void do_cmd_read_scroll_aux(INVENTORY_IDX item, bool known)
                {\r
                        if (remove_curse())\r
                        {\r
-                               msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));\r
                                ident = TRUE;\r
                        }\r
                        break;\r
@@ -218,9 +217,8 @@ void do_cmd_read_scroll_aux(INVENTORY_IDX item, bool known)
                {\r
                        if (remove_all_curse())\r
                        {\r
-                               msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));\r
+                               ident = TRUE;\r
                        }\r
-                       ident = TRUE;\r
                        break;\r
                }\r
 \r
index 0a2a44a..2799dbd 100644 (file)
@@ -80,15 +80,6 @@ int staff_effect(OBJECT_SUBTYPE_VALUE sval, bool *use_charge, bool powerful, boo
                bool result = powerful ? remove_all_curse() : remove_curse();\r
                if (result)\r
                {\r
-                       if (magic)\r
-                       {\r
-                               msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));\r
-                       }\r
-                       else if (!p_ptr->blind)\r
-                       {\r
-                               msg_print(_("杖は一瞬ブルーに輝いた...", "The staff glows blue for a moment..."));\r
-\r
-                       }\r
                        ident = TRUE;\r
                }\r
                break;\r
index ef953a9..3705760 100644 (file)
@@ -170,13 +170,7 @@ cptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (desc) return _("アイテムにかかった弱い呪いを解除する。", "Removes normal curses from equipped items.");
 
                {
-                       if (cast)
-                       {
-                               if (remove_curse())
-                               {
-                                       msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
-                               }
-                       }
+                       if (cast) (void)remove_curse();
                }
                break;
 
@@ -425,13 +419,7 @@ cptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (desc) return _("アイテムにかかった強力な呪いを解除する。", "Removes normal and heavy curse from equipped items.");
 
                {
-                       if (cast)
-                       {
-                               if (remove_all_curse())
-                               {
-                                       msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
-                               }
-                       }
+                       if (cast) (void)remove_all_curse();
                }
                break;
 
index ffdde91..6c07f40 100644 (file)
@@ -188,13 +188,7 @@ cptr do_crusade_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (name) return _("解呪", "Remove Curse");
                if (desc) return _("アイテムにかかった弱い呪いを解除する。", "Removes normal curses from equipped items.");
                {
-                       if (cast)
-                       {
-                               if (remove_curse())
-                               {
-                                       msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
-                               }
-                       }
+                       if (cast) (void)remove_curse();
                }
                break;
 
@@ -432,13 +426,7 @@ cptr do_crusade_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (desc) return _("アイテムにかかった強力な呪いを解除する。", "Removes normal and heavy curse from equipped items.");
 
                {
-                       if (cast)
-                       {
-                               if (remove_all_curse())
-                               {
-                                       msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
-                               }
-                       }
+                       if (cast) (void)remove_all_curse();
                }
                break;
 
index 72b5db6..76285f5 100644 (file)
@@ -134,13 +134,7 @@ cptr do_life_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (name) return _("解呪", "Remove Curse");
                if (desc) return _("アイテムにかかった弱い呪いを解除する。", "Removes normal curses from equipped items.");
                {
-                       if (cast)
-                       {
-                               if (remove_curse())
-                               {
-                                       msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
-                               }
-                       }
+                       if (cast) (void)remove_curse();
                }
                break;
 
@@ -246,15 +240,8 @@ cptr do_life_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 16:
                if (name) return _("*解呪*", "Dispel Curse");
                if (desc) return _("アイテムにかかった強力な呪いを解除する。", "Removes normal and heavy curse from equipped items.");
-
                {
-                       if (cast)
-                       {
-                               if (remove_all_curse())
-                               {
-                                       msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
-                               }
-                       }
+                       if (cast) (void)remove_all_curse();
                }
                break;
 
index 8f8e329..28aeca1 100644 (file)
@@ -1909,6 +1909,10 @@ static int remove_curse_aux(int all)
                cnt++;
        }
 
+       if (cnt)
+       {
+               msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
+       }
        /* Return "something uncursed" */
        return (cnt);
 }