OSDN Git Service

version++
[jnethack/source.git] / src / eat.c
index 5026882..8a7a66f 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -194,13 +194,19 @@ eatmupdate()
 
     if (is_obj_mappear(&youmonst,ORANGE) && !Hallucination) {
         /* revert from hallucinatory to "normal" mimicking */
+/*JP
         altmsg = "You now prefer mimicking yourself.";
+*/
+        altmsg = "\82 \82È\82½\82Í\8e©\95ª\8e©\90g\82Ì\82Ü\82Ë\82ð\82·\82é\82±\82Æ\82ð\91I\82ñ\82¾\81D";
         altapp = GOLD_PIECE;
     } else if (is_obj_mappear(&youmonst,GOLD_PIECE) && Hallucination) {
         /* won't happen; anything which might make immobilized
            hero begin hallucinating (black light attack, theft
            of Grayswandir) will terminate the mimicry first */
+/*JP
         altmsg = "Your rind escaped intact.";
+*/
+        altmsg = "\82 \82È\82½\82Ì\94ç\82ª\82»\82Ì\82Ü\82Ü\82Ì\8c`\82Å\93¦\82°\82Ä\82¢\82Á\82½\81D";
         altapp = ORANGE;
     }
 
@@ -519,16 +525,30 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
 
     if (noncorporeal(pd)) {
         if (visflag)
+#if 0 /*JP*/
             pline("%s brain is unharmed.",
                   (mdef == &youmonst) ? "Your" : s_suffix(Monnam(mdef)));
+#else
+            pline("%s\82Ì\94]\82Í\96³\8e\96\82¾\82Á\82½\81D",
+                  (mdef == &youmonst) ? "\82 \82È\82½" : Monnam(mdef));
+#endif
         return MM_MISS; /* side-effects can't occur */
     } else if (magr == &youmonst) {
+/*JP
         You("eat %s brain!", s_suffix(mon_nam(mdef)));
+*/
+        You("%s\82Ì\94]\82ð\90H\82×\82½\81I", mon_nam(mdef));
     } else if (mdef == &youmonst) {
+/*JP
         Your("brain is eaten!");
+*/
+        Your("\94]\82Í\90H\82×\82ç\82ê\82½\81I");
     } else { /* monster against monster */
         if (visflag)
+/*JP
             pline("%s brain is eaten!", s_suffix(Monnam(mdef)));
+*/
+            pline("%s\82Ì\94]\82Í\90H\82×\82ç\82ê\82½\81I", Monnam(mdef));
     }
 
     if (flesh_petrifies(pd)) {
@@ -542,7 +562,10 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
             /* no need to check for poly_when_stoned or Stone_resistance;
                mind flayers don't have those capabilities */
             if (visflag)
+/*JP
                 pline("%s turns to stone!", Monnam(magr));
+*/
+                pline("%s\82Í\90Î\82É\82È\82Á\82½\81I", Monnam(magr));
             monstone(magr);
             if (magr->mhp > 0) {
                 /* life-saved; don't continue eating the brains */
@@ -550,7 +573,10 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
             } else {
                 if (magr->mtame && !visflag)
                     /* parallels mhitm.c's brief_feeling */
+/*JP
                     You("have a sad thought for a moment, then is passes.");
+*/
+                    You("\94ß\82µ\82¢\8dl\82¦\82É\82¨\82»\82í\82ê\82½\82ª\81A\82·\82®\82É\89ß\82¬\82³\82Á\82½\81D");
                 return MM_AGR_DIED;
             }
         }
@@ -562,13 +588,24 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
          */
         eating_conducts(pd);
         if (mindless(pd)) { /* (cannibalism not possible here) */
+/*JP
             pline("%s doesn't notice.", Monnam(mdef));
+*/
+            pline("%s\82Í\8bC\82Ã\82¢\82Ä\82¢\82È\82¢\81D", Monnam(mdef));
             /* all done; no extra harm inflicted upon target */
             return MM_MISS;
         } else if (is_rider(pd)) {
+/*JP
             pline("Ingesting that is fatal.");
+*/
+            pline("\8eæ\82è\8d\9e\82ñ\82¾\82ç\82·\82®\82É\8e\80\82ñ\82Å\82µ\82Ü\82Á\82½\81D");
+#if 0 /*JP*/
             Sprintf(killer.name, "unwisely ate the brain of %s", pd->mname);
             killer.format = NO_KILLER_PREFIX;
+#else
+            Sprintf(killer.name, "\8bð\82©\82É\82à%s\82Ì\91Ì\82ð\90H\82×\82Ä", pd->mname);
+            killer.format = KILLED_BY;
+#endif
             done(DIED);
             /* life-saving needed to reach here */
             exercise(A_WIS, FALSE);
@@ -595,19 +632,28 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
          */
         /* no such thing as mindless players */
         if (ABASE(A_INT) <= ATTRMIN(A_INT)) {
+/*JP
             static NEARDATA const char brainlessness[] = "brainlessness";
+*/
+            static NEARDATA const char brainlessness[] = "\94]\82ð\8e¸\82Á\82Ä";
 
             if (Lifesaved) {
                 Strcpy(killer.name, brainlessness);
                 killer.format = KILLED_BY;
                 done(DIED);
                 /* amulet of life saving has now been used up */
+/*JP
                 pline("Unfortunately your brain is still gone.");
+*/
+                pline("\8ec\94O\82È\82ª\82ç\82 \82È\82½\82É\82Í\94]\82ª\82È\82¢\81D");
                 /* sanity check against adding other forms of life-saving */
                 u.uprops[LIFESAVED].extrinsic =
                     u.uprops[LIFESAVED].intrinsic = 0L;
             } else {
+/*JP
                 Your("last thought fades away.");
+*/
+                Your("\8dÅ\8cã\82Ì\8ev\82¢\82ª\91\96\94n\93\95\82Ì\82æ\82¤\82É\89¡\82¬\82Á\82½\81D");
             }
             Strcpy(killer.name, brainlessness);
             killer.format = KILLED_BY;
@@ -615,7 +661,10 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
             /* can only get here when in wizard or explore mode and user has
                explicitly chosen not to die; arbitrarily boost intelligence */
             ABASE(A_INT) = ATTRMIN(A_INT) + 2;
+/*JP
             You_feel("like a scarecrow.");
+*/
+            You("\82©\82©\82µ\82Ì\82æ\82¤\82È\8bC\8e\9d\82ª\82µ\82½\81D");
         }
         give_nutrit = TRUE; /* in case a conflicted pet is doing this */
         exercise(A_WIS, FALSE);
@@ -627,7 +676,10 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
          */
         if (mindless(pd)) {
             if (visflag)
+/*JP
                 pline("%s doesn't notice.", Monnam(mdef));
+*/
+                pline("%s\82Í\8bC\82Ã\82¢\82Ä\82¢\82È\82¢\81D", Monnam(mdef));
             return MM_MISS;
         } else if (is_rider(pd)) {
             mondied(magr);
@@ -639,7 +691,10 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
             *dmg_p += xtra_dmg;
             give_nutrit = TRUE;
             if (*dmg_p >= mdef->mhp && visflag)
+/*JP
                 pline("%s last thought fades away...",
+*/
+                pline("%s\82Ì\8dÅ\8cã\82Ì\8ev\82¢\82ª\82æ\82¬\82é\81D\81D\81D",
                       s_suffix(Monnam(mdef)));
         }
     }
@@ -1122,7 +1177,10 @@ register int pm;
             if (u.usteed)
                 dismount_steed(DISMOUNT_FELL);
             nomul(-tmp);
+/*JP
             multi_reason = "pretending to be a pile of gold";
+*/
+            multi_reason = "\8bà\89Ý\82Ì\8eR\82Ì\90^\8e\97\82ð\82µ\82Ä\82¢\82é\8e\9e\82É";
             Sprintf(buf,
                     Hallucination
 /*JP
@@ -1175,7 +1233,10 @@ register int pm;
     case PM_DOPPELGANGER:
     case PM_SANDESTIN: /* moot--they don't leave corpses */
         if (Unchanging) {
-            You_feel("momentarily different."); /* same as poly trap */
+#if 0 /*JP*/
+            You_feel("\88ê\8fu\88á\82Á\82½\8a´\82\82ª\82µ\82½\81D"); /* same as poly trap */
+#else
+#endif
         } else {
 /*JP
             You_feel("a change coming over you.");
@@ -1346,6 +1407,7 @@ char *buf;
 */
             Strcat(buf, "\8bó\82Á\82Û\82Ì");
         else {
+#if 0 /*JP*//*\93ú\96{\8cê\82Í\8cã\82Å*/
             if ((obj->cknown || iflags.override_ID) && obj->spe < 0) {
                 if (r == ROTTEN_TIN || r == HOMEMADE_TIN) {
                     /* put these before the word tin */
@@ -1354,19 +1416,32 @@ char *buf;
                 } else {
                     Sprintf(eos(buf), " of %s ", tintxts[r].txt);
                 }
+                Sprintf(eos(buf), "%s", tintxts[r].txt);
             } else {
                 Strcpy(eos(buf), " of ");
             }
+#endif
+#if 1 /*JP*//*\81u\82Ì\81v\82Å\8en\82Ü\82é\82È\82ç\8cã\92u\81A\82»\82ê\88È\8aO\82È\82ç\91O\92u*/
+            if (strstr(tintxts[r].txt, "\82Ì") != tintxts[r].txt) {
+                Strcpy(eos(buf), tintxts[r].txt);
+            }
+#endif
             if (vegetarian(&mons[mnum]))
 /*JP
                 Sprintf(eos(buf), "%s", mons[mnum].mname);
 */
-                Sprintf(eos(buf), "%s\82Ì", mons[mnum].mname);
+                Sprintf(eos(buf), "%s", mons[mnum].mname);
             else
 /*JP
                 Sprintf(eos(buf), "%s meat", mons[mnum].mname);
 */
-                Sprintf(eos(buf), "%s\82Ì\93÷\82Ì", mons[mnum].mname);
+                Sprintf(eos(buf), "%s\82Ì\93÷", mons[mnum].mname);
+#if 1 /*JP*//*\81u\82Ì\81v\82Å\8en\82Ü\82é\82È\82ç\8cã\92u\81A\82»\82ê\88È\8aO\82È\82ç\91O\92u*/
+            if (strstr(tintxts[r].txt, "\82Ì") == tintxts[r].txt) {
+                Strcpy(eos(buf), tintxts[r].txt);
+            }
+            Strcpy(eos(buf), "\82Ì");
+#endif
         }
     }
 }
@@ -1436,7 +1511,10 @@ const char *mesg;
 
     r = tin_variety(tin, FALSE);
     if (tin->otrapped || (tin->cursed && r != HOMEMADE_TIN && !rn2(8))) {
+/*JP
         b_trapped("tin", 0);
+*/
+        b_trapped("\8aÊ", 0);
         costly_tin(COST_DSTROY);
         goto use_up_tin;
     }
@@ -1458,7 +1536,10 @@ const char *mesg;
         which = 0; /* 0=>plural, 1=>as-is, 2=>"the" prefix */
         if ((mnum == PM_COCKATRICE || mnum == PM_CHICKATRICE)
             && (Stone_resistance || Hallucination)) {
+/*JP
             what = "chicken";
+*/
+            what = "\8c{\93÷";
             which = 1; /* suppress pluralization */
         } else if (Hallucination) {
             what = rndmonnam(NULL);
@@ -1657,11 +1738,18 @@ struct obj *otmp;
 */
             mesg = "\8aÊ\82Í\96\82\96@\82Ì\82æ\82¤\82É\8aJ\82¢\82½\81I";
         else
+/*JP
             pline_The("tin seems easy to open.");
+*/
+            pline_The("\8aÊ\82Í\8aÈ\92P\82É\8aJ\82¯\82ç\82ê\82»\82¤\82¾\81D");
     } else if (uwep) {
         switch (uwep->otyp) {
         case TIN_OPENER:
+#if 0 /*JP*/
             mesg = "You easily open the tin."; /* iff tmp==0 */
+#else
+            mesg = "\82 \82È\82½\82Í\8aÈ\92P\82É\8aÊ\82ð\8aJ\82¯\82½\81D"; /* iff tmp==0 */
+#endif
             tmp = rn2(uwep->cursed ? 3 : !uwep->blessed ? 2 : 1);
             break;
         case DAGGER:
@@ -1790,7 +1878,10 @@ struct obj *obj;
         pline("\90¢\8aE\82ª\89ñ\93]\82µ\81C%s%s\81D", where, what);
         incr_itimeout(&HDeaf, duration);
         nomul(-duration);
+/*JP
         multi_reason = "unconscious from rotten food";
+*/
+        multi_reason = "\95\85\82Á\82½\90H\82×\95¨\82Å\88Ó\8e¯\82ð\8e¸\82Á\82Ä\82¢\82é\8aÔ\82É";
 /*JP
         nomovemsg = "You are conscious again.";
 */
@@ -1939,9 +2030,15 @@ struct obj *otmp;
             consume_oeaten(otmp, 2); /* oeaten >>= 2 */
     } else if ((mnum == PM_COCKATRICE || mnum == PM_CHICKATRICE)
                && (Stone_resistance || Hallucination)) {
+/*JP
         pline("This tastes just like chicken!");
+*/
+        pline("\82±\82ê\82Í\8c{\93÷\82Ì\96¡\82¾\81I");
     } else if (mnum == PM_FLOATING_EYE && u.umonnum == PM_RAVEN) {
+/*JP
         You("peck the eyeball with delight.");
+*/
+        You("\96Ú\8bÊ\82ð\82Â\82ñ\82Â\82ñ\82Â\82Â\82¢\82½\81D");
     } else {
         /* [is this right?  omnivores end up always disliking the taste] */
         boolean yummy = vegan(&mons[mnum])
@@ -2046,7 +2143,7 @@ struct obj *otmp;
 /*JP
                                 : "That food really hit the spot!");
 */
-                                : "That food really hit the spot!");
+                                : "\82±\82Ì\90H\82×\95¨\82Í\96{\93\96\82É\90\\82µ\95ª\82È\82¢\81I");
         else if (u.uhunger <= 700)
 /*JP
             pline("That satiated your %s!", body_part(STOMACH));
@@ -2564,11 +2661,20 @@ struct obj *otmp;
                not food, so we substitute cursed; fortunately our hero
                won't have to wait for a prince to be rescued/revived */
             if (Race_if(PM_DWARF) && Hallucination)
+/*JP
                 verbalize("Heigh-ho, ho-hum, I think I'll skip work today.");
+*/
+                verbalize("\83n\83C\83z\81[\81C\83n\83C\83z\81[\81C\8d¡\93ú\82Í\8bx\82Ý\81D");
             else if (Deaf || !flags.acoustics)
+/*JP
                 You("fall asleep.");
+*/
+                You("\96°\82è\82É\97\8e\82¿\82½\81D");
             else
+/*JP
                 You_hear("sinister laughter as you fall asleep...");
+*/
+                You_hear("\96°\82è\82É\97\8e\82¿\82é\82Æ\82«\82É\8e×\88«\82È\8fÎ\82¢\90º\82ð\95·\82¢\82½\81D\81D\81D");
             fall_asleep(-rn1(11, 20), TRUE);
         }
         break;
@@ -2615,7 +2721,11 @@ struct obj *otmp;
     int material = objects[otmp->otyp].oc_material, mnum = otmp->corpsenm;
     long rotted = 0L;
 
+#if 0 /*JP*/
     Strcpy(foodsmell, Tobjnam(otmp, "smell"));
+#else
+    Strcpy(foodsmell, xname(otmp));
+#endif
     Strcpy(it_or_they, (otmp->quan == 1L) ? "it" : "they");
 #if 0 /*JP*/
     Sprintf(eat_it_anyway, "Eat %s anyway?",
@@ -2815,7 +2925,10 @@ doeat()
         pline("\91§\82à\82Å\82«\82È\82¢\82Ì\82É\81C\82Ç\82¤\82â\82Á\82Ä\90H\82×\82½\82ç\82¢\82¢\82ñ\82¾\82¢\81H");
         return 0;
     }
+/*JP
     if (!(otmp = floorfood("eat", 0)))
+*/
+    if (!(otmp = floorfood("\90H\82×\82é", 0)))
         return 0;
     if (check_capacity((char *) 0))
         return 0;
@@ -3280,7 +3393,10 @@ void
 reset_faint()
 {
     if (afternmv == unfaint)
+/*JP
         unmul("You revive.");
+*/
+        unmul("\82 \82È\82½\82Í\8bC\82ª\82Â\82¢\82½\81D");
 }
 
 /* compute and comment on your (new?) hunger status */
@@ -3354,7 +3470,10 @@ boolean incr;
                     selftouch("\97\8e\82¿\82È\82ª\82ç\81C\82 \82È\82½\82Í");
                 incr_itimeout(&HDeaf, duration);
                 nomul(-duration);
+/*JP
                 multi_reason = "fainted from lack of food";
+*/
+                multi_reason = "\8bó\95 \82Å\91²\93|\82µ\82Ä\82¢\82é\8aÔ\82É";
 /*JP
                 nomovemsg = "You regain consciousness.";
 */
@@ -3495,8 +3614,13 @@ int corpsecheck; /* 0, no check, 1, corpses, 2, tinnable corpses */
     register struct obj *otmp;
     char qbuf[QBUFSZ];
     char c;
+#if 0 /*JP*/
     boolean feeding = !strcmp(verb, "eat"),    /* corpsecheck==0 */
         offering = !strcmp(verb, "sacrifice"); /* corpsecheck==1 */
+#else
+    boolean feeding = !strcmp(verb, "\90H\82×\82é"), /* corpsecheck==0 */
+        offering = !strcmp(verb, "\95ù\82°\82é");    /* corpsecheck==1 */
+#endif
 
 #if 1 /*JP*/
     const char *jverb = trans_verb(verb)->jp;
@@ -3612,11 +3736,17 @@ vomit() /* A good idea from David Neves */
     if (cantvomit(youmonst.data))
         /* doesn't cure food poisoning; message assumes that we aren't
            dealing with some esoteric body_part() */
+/*JP
         Your("jaw gapes convulsively.");
+*/
+        Your("\82 \82²\82Í\94­\8dì\93I\82É\91å\82«\82­\8aJ\82¢\82½\81D");
     else
         make_sick(0L, (char *) 0, TRUE, SICK_VOMITABLE);
     nomul(-2);
+/*JP
     multi_reason = "vomiting";
+*/
+    multi_reason = "\9aq\93f\82µ\82Ä\82¢\82é\8dÅ\92\86\82É";
     nomovemsg = You_can_move_again;
 }