OSDN Git Service

patch src/
[jnethack/source.git] / src / monmove.c
index 50329ce..8a74c06 100644 (file)
@@ -2,6 +2,11 @@
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
+/* JNetHack Copyright */
+/* (c) Issei Numata, Naoki Hamada, Shigehiro Miyashita, 1994-2000  */
+/* For 3.4-, Copyright (c) SHIRAKATA Kentaro, 2002-2016            */
+/* JNetHack may be freely redistributed.  See license for details. */
+
 #include "hack.h"
 #include "mfndpos.h"
 #include "artifact.h"
@@ -23,9 +28,15 @@ struct monst *mtmp;
 {
     if (flags.verbose) {
         if (cansee(mtmp->mx, mtmp->my) && !Unaware)
+/*JP
             pline("KABOOM!!  You see a door explode.");
+*/
+            pline("\82¿\82ã\82Ç\81[\82ñ\81I\83h\83A\82ª\94\9a\94­\82·\82é\82Ì\82ð\8c©\82½\81D");
         else if (!Deaf)
+/*JP
             You_hear("a distant explosion.");
+*/
+            You_hear("\89\93\95û\82Å\94\9a\94­\82·\82é\89¹\82ð\95·\82¢\82½\81D");
     }
     wake_nearto(mtmp->mx, mtmp->my, 7 * 7);
     mtmp->mstun = 1;
@@ -57,9 +68,15 @@ struct monst *mon;
 const char *shout;
 {
     if (canspotmon(mon))
+/*JP
         pline("%s yells:", Amonnam(mon));
+*/
+        pline("%s\82Í\8b©\82ñ\82¾\81F", Amonnam(mon));
     else
+/*JP
         You_hear("someone yell:");
+*/
+        pline("\89½\8eÒ\82©\82Í\8b©\82ñ\82¾\81F");
     verbalize1(shout);
 }
 
@@ -75,10 +92,16 @@ register struct monst *mtmp;
             && (levl[x][y].doormask & D_LOCKED)) {
             if (couldsee(mtmp->mx, mtmp->my)) {
                 if (levl[x][y].looted & D_WARNED) {
+/*JP
                     mon_yells(mtmp, "Halt, thief!  You're under arrest!");
+*/
+                    verbalize("\91Ò\82Ä\81I\82Ê\82·\82Á\82Æ\81I\82¨\82Ü\82¦\82ð\91ß\95ß\82·\82é\81I");
                     (void) angry_guards(!!Deaf);
                 } else {
+/*JP
                     mon_yells(mtmp, "Hey, stop picking that lock!");
+*/
+                    verbalize("\82¨\82¢\81C\8c®\82ð\8f\9f\8eè\82É\8aJ\82¯\82é\82ñ\82\82á\82È\82¢\81I");
                     levl[x][y].looted |= D_WARNED;
                 }
                 stop_occupation();
@@ -225,7 +248,10 @@ struct monst *mon;
             expels(mon, mon->data, TRUE);
         } else if (!sticks(youmonst.data)) {
             unstuck(mon); /* let go */
+/*JP
             You("get released!");
+*/
+            You("\89ð\95ú\82³\82ê\82½\81I");
         }
     }
 }
@@ -265,9 +291,15 @@ boolean fleemsg;
                sleep and temporary paralysis, so both conditions
                receive the same alternate message */
             if (!mtmp->mcanmove || !mtmp->data->mmove)
+/*JP
                 pline("%s seems to flinch.", Adjmonnam(mtmp, "immobile"));
+*/
+                pline("%s\82Í\82µ\82è\82²\82Ý\82µ\82Ä\82¢\82é\82æ\82¤\82¾\81D", Monnam(mtmp));
             else
+/*JP
                 pline("%s turns to flee.", Monnam(mtmp));
+*/
+                pline("%s\82Í\82¨\82Ñ\82¦\82Ä\93¦\82°\8fo\82µ\82½\81I", Monnam(mtmp));
         }
         mtmp->mflee = 1;
     }
@@ -434,8 +466,13 @@ register struct monst *mtmp;
     if (nearby && mdat->msound == MS_BRIBE && mtmp->mpeaceful && !mtmp->mtame
         && !u.uswallow) {
         if (mtmp->mux != u.ux || mtmp->muy != u.uy) {
+#if 0 /*JP*/
             pline("%s whispers at thin air.",
                   cansee(mtmp->mux, mtmp->muy) ? Monnam(mtmp) : "It");
+#else
+            pline("%s\82ª\82³\82³\82â\82¢\82½\81D",
+                  cansee(mtmp->mux, mtmp->muy) ? Monnam(mtmp) : "\89½\82©");
+#endif
 
             if (is_demon(youmonst.data)) {
                 /* "Good hunting, brother" */
@@ -444,7 +481,10 @@ register struct monst *mtmp;
             } else {
                 mtmp->minvis = mtmp->perminvis = 0;
                 /* Why?  For the same reason in real demon talk */
+/*JP
                 pline("%s gets angry!", Amonnam(mtmp));
+*/
+                pline("%s\82Í\93{\82Á\82½\81I", Amonnam(mtmp));
                 mtmp->mpeaceful = 0;
                 set_malign(mtmp);
                 /* since no way is an image going to pay it off */
@@ -461,27 +501,48 @@ register struct monst *mtmp;
         struct monst *m2, *nmon = (struct monst *) 0;
 
         if (canseemon(mtmp))
+/*JP
             pline("%s concentrates.", Monnam(mtmp));
+*/
+            pline("%s\82Í\90¸\90_\82ð\8fW\92\86\82µ\82Ä\82¢\82é\81D", Monnam(mtmp));
         if (distu(mtmp->mx, mtmp->my) > BOLT_LIM * BOLT_LIM) {
+/*JP
             You("sense a faint wave of psychic energy.");
+*/
+            You("\83T\83C\83R\83G\83l\83\8b\83M\81[\82Ì\94g\93®\82ð\8a´\82\82½\81D");
             goto toofar;
         }
+/*JP
         pline("A wave of psychic energy pours over you!");
+*/
+        pline("\82 \82È\82½\82Í\83T\83C\83R\83G\83l\83\8b\83M\81[\82Ì\94g\93®\82ð\97\81\82Ñ\82½\81I");
         if (mtmp->mpeaceful
             && (!Conflict || resist(mtmp, RING_CLASS, 0, 0))) {
+/*JP
             pline("It feels quite soothing.");
+*/
+            pline("\90S\82ª\82È\82²\82ñ\82¾\81D");
         } else if (!u.uinvulnerable) {
             register boolean m_sen = sensemon(mtmp);
 
             if (m_sen || (Blind_telepat && rn2(2)) || !rn2(10)) {
                 int dmg;
+#if 0 /*JP*/
                 pline("It locks on to your %s!",
                       m_sen ? "telepathy" : Blind_telepat ? "latent telepathy"
                                                           : "mind");
+#else
+                pline("\82»\82ê\82Í\82 \82È\82½\82Ì%s\82ð\92¼\8c\82\82µ\82½\81I",
+                      m_sen ? "\83e\83\8c\83p\83V\81[\94\\97Í" : Blind_telepat ? "\90ö\8dÝ\94\\97Í"
+                                                               : "\90¸\90_");
+#endif
                 dmg = rnd(15);
                 if (Half_spell_damage)
                     dmg = (dmg + 1) / 2;
+/*JP
                 losehp(dmg, "psychic blast", KILLED_BY_AN);
+*/
+                losehp(dmg, "\83T\83C\83R\8dU\8c\82\82Å", KILLED_BY_AN);
             }
         }
         for (m2 = fmon; m2; m2 = nmon) {
@@ -497,7 +558,10 @@ register struct monst *mtmp;
             if ((telepathic(m2->data) && (rn2(2) || m2->mblinded))
                 || !rn2(10)) {
                 if (cansee(m2->mx, m2->my))
+/*JP
                     pline("It locks on to %s.", mon_nam(m2));
+*/
+                    pline("%s\82ð\92¼\8c\82\82µ\82½\81D", mon_nam(m2));
                 m2->mhp -= rnd(15);
                 if (m2->mhp <= 0)
                     monkilled(m2, "", AD_DRIN);
@@ -640,7 +704,10 @@ itsstuck(mtmp)
 register struct monst *mtmp;
 {
     if (sticks(youmonst.data) && mtmp == u.ustuck && !u.uswallow) {
+/*JP
         pline("%s cannot escape from you!", Monnam(mtmp));
+*/
+        pline("%s\82Í\82 \82È\82½\82©\82ç\93¦\82°\82ç\82ê\82È\82¢\81I", Monnam(mtmp));
         return TRUE;
     }
     return FALSE;
@@ -811,7 +878,10 @@ register int after;
 #ifdef MAIL
     if (ptr == &mons[PM_MAIL_DAEMON]) {
         if (!Deaf && canseemon(mtmp))
+/*JP
             verbalize("I'm late!");
+*/
+            verbalize("\92x\82­\82È\82Á\82Ä\82·\82Ü\82È\82¢\81I");
         mongone(mtmp);
         return 2;
     }
@@ -1218,11 +1288,19 @@ postmov:
                         || (!amorphous(ptr) && can_fog(mtmp)
                             && vamp_shift(mtmp, &mons[PM_FOG_CLOUD])))) {
                     if (flags.verbose && canseemon(mtmp))
+#if 0 /*JP*/
                         pline("%s %s under the door.", Monnam(mtmp),
                               (ptr == &mons[PM_FOG_CLOUD]
                                || ptr == &mons[PM_YELLOW_LIGHT])
                                   ? "flows"
                                   : "oozes");
+#else
+                        pline("%s\82Í\94à\82Ì\89º\82©\82ç%s\81D", Monnam(mtmp),
+                              (ptr == &mons[PM_FOG_CLOUD]
+                               || ptr == &mons[PM_YELLOW_LIGHT])
+                                  ? "\97¬\82ê\82Å\82½"
+                                  : "\82É\82\82Ý\82Å\82½");
+#endif
                 } else if (here->doormask & D_LOCKED && can_unlock) {
                     if (btrapped) {
                         here->doormask = D_NODOOR;
@@ -1233,12 +1311,21 @@ postmov:
                     } else {
                         if (flags.verbose) {
                             if (observeit)
+/*JP
                                 pline("%s unlocks and opens a door.",
+*/
+                                pline("%s\82Í\8c®\82ð\82Í\82¸\82µ\82Ä\94à\82ð\8aJ\82¯\82½\81D",
                                       Monnam(mtmp));
                             else if (canseeit)
+/*JP
                                 You_see("a door unlock and open.");
+*/
+                                You("\94à\82Ì\8c®\82ª\82Í\82¸\82ê\81C\8aJ\82­\82Ì\82ð\8c©\82½\81D");
                             else if (!Deaf)
+/*JP
                                 You_hear("a door unlock and open.");
+*/
+                                You_hear("\94à\82Ì\8c®\82ª\82Í\82¸\82ê\81C\8aJ\82­\89¹\82ð\95·\82¢\82½\81D");
                         }
                         here->doormask = D_ISOPEN;
                         /* newsym(mtmp->mx, mtmp->my); */
@@ -1254,11 +1341,20 @@ postmov:
                     } else {
                         if (flags.verbose) {
                             if (observeit)
+/*JP
                                 pline("%s opens a door.", Monnam(mtmp));
+*/
+                                pline("%s\82Í\94à\82ð\8aJ\82¯\82½\81D", Monnam(mtmp));
                             else if (canseeit)
+/*JP
                                 You_see("a door open.");
+*/
+                                You("\94à\82ª\8aJ\82­\82Ì\82ð\8c©\82½\81D");
                             else if (!Deaf)
+/*JP
                                 You_hear("a door open.");
+*/
+                                You_hear("\94à\82ª\8aJ\82­\89¹\82ð\95·\82¢\82½\81D");
                         }
                         here->doormask = D_ISOPEN;
                         /* newsym(mtmp->mx, mtmp->my); */  /* done below */
@@ -1275,12 +1371,21 @@ postmov:
                     } else {
                         if (flags.verbose) {
                             if (observeit)
+/*JP
                                 pline("%s smashes down a door.",
+*/
+                                pline("%s\82Í\94à\82ð\94j\89ó\82µ\82½\81D",
                                       Monnam(mtmp));
                             else if (canseeit)
+/*JP
                                 You_see("a door crash open.");
+*/
+                                You("\94à\82ª\94j\89ó\82³\82ê\82é\82Ì\82ð\8c©\82½\81D");
                             else if (!Deaf)
+/*JP
                                 You_hear("a door crash open.");
+*/
+                                You_hear("\94à\82ª\94j\89ó\82³\82ê\82é\89¹\82ð\95·\82¢\82½\81D");
                         }
                         if (here->doormask & D_LOCKED && !rn2(2))
                             here->doormask = D_NODOOR;
@@ -1297,14 +1402,22 @@ postmov:
                 if (may_dig(mtmp->mx, mtmp->my)
                     && (dmgtype(ptr, AD_RUST) || dmgtype(ptr, AD_CORR))) {
                     if (canseemon(mtmp))
+/*JP
                         pline("%s eats through the iron bars.", Monnam(mtmp));
+*/
+                        pline("%s\82Í\93S\82Ì\96_\82ð\90H\82×\82Ä\92Ê\82è\94²\82¯\82½\81D", Monnam(mtmp));
                     dissolve_bars(mtmp->mx, mtmp->my);
                     return 3;
                 } else if (flags.verbose && canseemon(mtmp))
+#if 0 /*JP*/
                     Norep("%s %s %s the iron bars.", Monnam(mtmp),
                           /* pluralization fakes verb conjugation */
                           makeplural(locomotion(ptr, "pass")),
                           passes_walls(ptr) ? "through" : "between");
+#else
+                    Norep("%s\82Í\93S\82Ì\96_%s\82ð\82·\82è\94²\82¯\82½\81D", Monnam(mtmp),
+                          passes_walls(ptr) ? "" : "\82Ì\8aÔ");
+#endif
             }
 
             /* possibly dig */