From 17f3be66b3d7e3b2e10705bbdbb1fb533c76d9f2 Mon Sep 17 00:00:00 2001 From: Deskull Date: Mon, 24 Sep 2018 13:28:41 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E3=82=BD=E3=83=BC?= =?utf8?q?=E3=82=B9=E6=95=B4=E5=BD=A2=E3=80=82=20Refactor=20sources.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/chest.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/chest.c b/src/chest.c index eb6482039..e4135eaf3 100644 --- a/src/chest.c +++ b/src/chest.c @@ -149,28 +149,16 @@ void chest_trap(POSITION y, POSITION x, KIND_OBJECT_IDX o_idx) /* Lose strength */ if (trap & (CHEST_LOSE_STR)) { -#ifdef JP - msg_print("ŽdŠ|‚¯‚ç‚ê‚Ä‚¢‚½¬‚³‚Ȑj‚ÉŽh‚³‚ê‚Ä‚µ‚Ü‚Á‚½I"); - take_hit(DAMAGE_NOESCAPE, damroll(1, 4), "“Őj", -1); -#else - msg_print("A small needle has pricked you!"); - take_hit(DAMAGE_NOESCAPE, damroll(1, 4), "a poison needle", -1); -#endif - + msg_print(_("ŽdŠ|‚¯‚ç‚ê‚Ä‚¢‚½¬‚³‚Ȑj‚ÉŽh‚³‚ê‚Ä‚µ‚Ü‚Á‚½I", "A small needle has pricked you!")); + take_hit(DAMAGE_NOESCAPE, damroll(1, 4), _("“Őj", "a poison needle"), -1); (void)do_dec_stat(A_STR); } /* Lose constitution */ if (trap & (CHEST_LOSE_CON)) { -#ifdef JP - msg_print("ŽdŠ|‚¯‚ç‚ê‚Ä‚¢‚½¬‚³‚Ȑj‚ÉŽh‚³‚ê‚Ä‚µ‚Ü‚Á‚½I"); - take_hit(DAMAGE_NOESCAPE, damroll(1, 4), "“Őj", -1); -#else - msg_print("A small needle has pricked you!"); - take_hit(DAMAGE_NOESCAPE, damroll(1, 4), "a poison needle", -1); -#endif - + msg_print(_("ŽdŠ|‚¯‚ç‚ê‚Ä‚¢‚½¬‚³‚Ȑj‚ÉŽh‚³‚ê‚Ä‚µ‚Ü‚Á‚½I", "A small needle has pricked you!")); + take_hit(DAMAGE_NOESCAPE, damroll(1, 4), _("“Őj", "a poison needle"), -1); (void)do_dec_stat(A_CON); } -- 2.11.0