OSDN Git Service

patch src/
[jnethack/source.git] / src / ball.c
index 1a35eea..a55671d 100644 (file)
@@ -16,7 +16,10 @@ boolean showmsg;
 {
     if (carried(uball)) {
         if (showmsg)
+/*JP
             pline("Startled, you drop the iron ball.");
+*/
+            pline("\8bÁ\82¢\82Ä\82 \82È\82½\82Í\93S\8b\85\82ð\97\8e\82µ\82½\81D");
         if (uwep == uball)
             setuwep((struct obj *) 0);
         if (uswapwep == uball)
@@ -39,16 +42,29 @@ ballfall()
     ballrelease(TRUE);
     if (gets_hit) {
         int dmg = rn1(7, 25);
+/*JP
         pline_The("iron ball falls on your %s.", body_part(HEAD));
+*/
+        pline("\93S\8b\85\82Í\82 \82È\82½\82Ì%s\82Ì\8fã\82É\97\8e\82¿\82½\81D", body_part(HEAD));
         if (uarmh) {
             if (is_metallic(uarmh)) {
+/*JP
                 pline("Fortunately, you are wearing a hard helmet.");
+*/
+                pline("\8dK\89^\82É\82à\81C\82 \82È\82½\82Í\8cÅ\82¢\8a\95\82ð\90g\82É\82Â\82¯\82Ä\82¢\82½\81D");
                 dmg = 3;
             } else if (flags.verbose)
+/*JP
                 pline("%s does not protect you.", Yname2(uarmh));
+*/
+                Your("%s\82Å\82Í\8eç\82ê\82È\82¢\81D", Yname2(uarmh));
         }
+#if 0 /*JP*/
         losehp(Maybe_Half_Phys(dmg), "crunched in the head by an iron ball",
                NO_KILLER_PREFIX);
+#else
+        losehp(Maybe_Half_Phys(dmg), "\93S\8b\85\82Å\93ª\82ð\91Å\82Á\82Ä", KILLED_BY);
+#endif
     }
 }
 
@@ -586,8 +602,13 @@ boolean allow_drag;
 drag:
 
     if (near_capacity() > SLT_ENCUMBER && dist2(x, y, u.ux, u.uy) <= 2) {
+#if 0 /*JP*/
         You("cannot %sdrag the heavy iron ball.",
             invent ? "carry all that and also " : "");
+#else
+        You("%s\8fd\82¢\93S\8b\85\82ð\82Ð\82«\82¸\82é\82±\82Æ\82ª\82Å\82«\82È\82¢\81D",
+            invent ? "\82»\82ê\82¾\82¯\82Ì\89×\95¨\82ð\8e\9d\82Á\82½\82Ü\82Ü" : "");
+#endif
         nomul(0);
         return FALSE;
     }
@@ -601,13 +622,19 @@ drag:
             && (t->ttyp == PIT || t->ttyp == SPIKED_PIT || t->ttyp == HOLE
                 || t->ttyp == TRAPDOOR))) {
         if (Levitation) {
+/*JP
             You_feel("a tug from the iron ball.");
+*/
+            You("\93S\8b\85\82É\88ø\82Á\82Ï\82ç\82ê\82½\81D");
             if (t)
                 t->tseen = 1;
         } else {
             struct monst *victim;
 
+/*JP
             You("are jerked back by the iron ball!");
+*/
+            You("\93S\8b\85\82É\82®\82¢\82Æ\88ø\82Á\82Ï\82ç\82ê\82½\81I");
             if ((victim = m_at(uchain->ox, uchain->oy)) != 0) {
                 int tmp;
 
@@ -702,33 +729,63 @@ xchar x, y;
 
     if (x != u.ux || y != u.uy) {
         struct trap *t;
+/*JP
         const char *pullmsg = "The ball pulls you out of the %s!";
+*/
+        const char *pullmsg = "\93S\8b\85\82Í%s\82©\82ç\82 \82È\82½\82ð\88ø\82Á\82Ï\82è\8fo\82µ\82½\81I";
 
         if (u.utrap && u.utraptype != TT_INFLOOR
             && u.utraptype != TT_BURIEDBALL) {
             switch (u.utraptype) {
             case TT_PIT:
+/*JP
                 pline(pullmsg, "pit");
+*/
+                pline(pullmsg, "\97\8e\82µ\8c\8a");
                 break;
             case TT_WEB:
+/*JP
                 pline(pullmsg, "web");
+*/
+                pline(pullmsg, "\82­\82à\82Ì\91\83");
+/*JP
                 pline_The("web is destroyed!");
+*/
+                pline("\82­\82à\82Ì\91\83\82Í\82±\82í\82ê\82½\81I");
                 deltrap(t_at(u.ux, u.uy));
                 break;
             case TT_LAVA:
+/*JP
                 pline(pullmsg, "lava");
+*/
+                pline(pullmsg, "\97n\8aâ");
                 break;
             case TT_BEARTRAP: {
                 register long side = rn2(3) ? LEFT_SIDE : RIGHT_SIDE;
+/*JP
                 pline(pullmsg, "bear trap");
+*/
+                pline(pullmsg, "\8cF\82Ìã©");
                 set_wounded_legs(side, rn1(1000, 500));
                 if (!u.usteed) {
+#if 0 /*JP*/
                     Your("%s %s is severely damaged.",
                          (side == LEFT_SIDE) ? "left" : "right",
                          body_part(LEG));
+#else
+                    Your("%s%s\82Í\82Ð\82Ç\82¢\8f\9d\82ð\95\89\82Á\82½\81D",
+                         (side == LEFT_SIDE) ? "\8d¶" : "\89E",
+                         body_part(LEG));
+#endif
+#if 0 /*JP*/
                     losehp(Maybe_Half_Phys(2),
                            "leg damage from being pulled out of a bear trap",
                            KILLED_BY);
+#else
+                    losehp(Maybe_Half_Phys(2),
+                           "\8cF\82Ìã©\82©\82ç\94²\82¯\82æ\82¤\82Æ\91«\82ð\88ø\82Á\82Ï\82Á\82Ä",
+                           KILLED_BY);
+#endif
                 }
                 break;
             }
@@ -782,7 +839,10 @@ litter()
         nextobj = otmp->nobj;
         if ((otmp != uball) && (rnd(capacity) <= (int) otmp->owt)) {
             if (canletgo(otmp, "")) {
+/*JP
                 pline("%s you down the stairs.", Yobjnam2(otmp, "follow"));
+*/
+                You("%s\82Æ\88ê\8f\8f\82É\8aK\92i\82ð\8d~\82è\82½\81D", xname(otmp));
                 dropx(otmp);
             }
         }
@@ -807,27 +867,48 @@ drag_down()
     forward = carried(uball) && (uwep == uball || !uwep || !rn2(3));
 
     if (carried(uball))
+/*JP
         You("lose your grip on the iron ball.");
+*/
+        You("\93S\8b\85\82ð\8eè\82©\82ç\97\8e\82µ\82Ä\82µ\82Ü\82Á\82½\81D");
 
     if (forward) {
         if (rn2(6)) {
+/*JP
             pline_The("iron ball drags you downstairs!");
+*/
+            You("\93S\8b\85\82É\82æ\82Á\82Ä\8aK\92i\82ð\82±\82ë\82ª\82è\97\8e\82¿\82½\81I");
             losehp(Maybe_Half_Phys(rnd(6)),
+/*JP
                    "dragged downstairs by an iron ball", NO_KILLER_PREFIX);
+*/
+                   "\93S\8b\85\82É\82æ\82è\8aK\92i\82ð\82±\82ë\82ª\82è\97\8e\82¿\82Ä", KILLED_BY);
             litter();
         }
     } else {
         if (rn2(2)) {
+/*JP
             pline_The("iron ball smacks into you!");
+*/
+            pline("\93S\8b\85\82Í\82 \82È\82½\82É\83S\83c\83\93\82Æ\82Ô\82Â\82©\82Á\82½\81I");
+/*JP
             losehp(Maybe_Half_Phys(rnd(20)), "iron ball collision",
+*/
+            losehp(Maybe_Half_Phys(rnd(20)), "\93S\8b\85\82Ì\8fÕ\93Ë\82Å",
                    KILLED_BY_AN);
             exercise(A_STR, FALSE);
             dragchance -= 2;
         }
         if ((int) dragchance >= rnd(6)) {
+/*JP
             pline_The("iron ball drags you downstairs!");
+*/
+            You("\93S\8b\85\82É\82æ\82Á\82Ä\8aK\92i\82ð\82±\82ë\82ª\82è\97\8e\82¿\82½\81I");
             losehp(Maybe_Half_Phys(rnd(3)),
+/*JP
                    "dragged downstairs by an iron ball", NO_KILLER_PREFIX);
+*/
+                   "\93S\8b\85\82É\82æ\82è\8aK\92i\82ð\82±\82ë\82ª\82è\97\8e\82¿\82Ä", KILLED_BY);
             exercise(A_STR, FALSE);
             litter();
         }