From cf8f3e0b34e9f0f3ae666bcb27ed60340759934e Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Sat, 20 Feb 2016 01:19:05 +0900 Subject: [PATCH] add translation for enlightenment --- src/attrib.c | 30 +++ src/cmd.c | 686 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 709 insertions(+), 7 deletions(-) diff --git a/src/attrib.c b/src/attrib.c index 0c83b08..a6f6f71 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -890,8 +890,13 @@ int propidx; /* special cases can have negative values */ /* * Restrict the source of the attributes just to debug mode for now */ +/*JP:u‚ ‚È‚½‚Í‚ ‚È‚½‚́c‚É‚æ‚Á‚āv‚Æ‚È‚é‚Æ•sŽ©‘R‚È‚Ì‚Åsimpleonames()‚ðŽg‚¤*/ +/*JP: –{—ˆ‚Íminimal_xname()‚ðŽg‚¤‚ׂ«‚¾‚ªstatic‚È‚Ì‚Å‘ã—p*/ if (wizard) { +/*JP static NEARDATA const char because_of[] = " because of %s"; +*/ + static NEARDATA const char because_of[] = "%s‚É‚æ‚Á‚Ä"; if (propidx >= 0) { char *p; @@ -899,25 +904,42 @@ int propidx; /* special cases can have negative values */ int innate = is_innate(propidx); if (innate == 2) +/*JP Strcpy(buf, " because of your experience"); +*/ + Strcpy(buf, "ŒoŒ±‚É‚æ‚Á‚Ä"); else if (innate == 1) +/*JP Strcpy(buf, " innately"); +*/ + Strcpy(buf, "¶‚Ü‚ê‚È‚ª‚ç‚É"); else if (wizard && (obj = what_gives(&u.uprops[propidx].extrinsic))) Sprintf(buf, because_of, obj->oartifact ? bare_artifactname(obj) +/*JP : ysimple_name(obj)); +*/ + : simpleonames(obj)); else if (propidx == BLINDED && u.uroleplay.blind) +/*JP Sprintf(buf, " from birth"); +*/ + Sprintf(buf, "¶‚Ü‚ê‚Ä‚©‚炸‚Á‚Æ"); else if (propidx == BLINDED && Blindfolded_only) +/*JP Sprintf(buf, because_of, ysimple_name(ublindf)); +*/ + Sprintf(buf, because_of, simpleonames(ublindf)); +#if 0 /*JP*//*•s—v*/ /* remove some verbosity and/or redundancy */ if ((p = strstri(buf, " pair of ")) != 0) copynchars(p + 1, p + 9, BUFSZ); /* overlapping buffers ok */ else if (propidx == STRANGLED && (p = strstri(buf, " of strangulation")) != 0) *p = '\0'; +#endif } else { /* negative property index */ /* if more blocking capabilities get implemented we'll need to @@ -931,12 +953,20 @@ int propidx; /* special cases can have negative values */ case INVIS: if (u.uprops[INVIS].blocked & W_ARMC) Sprintf(buf, because_of, +#if 0 /*JP*/ ysimple_name(uarmc)); /* mummy wrapping */ +#else + simpleonames(uarmc)); /* mummy wrapping */ +#endif break; case CLAIRVOYANT: if (wizard && (u.uprops[CLAIRVOYANT].blocked & W_ARMH)) Sprintf(buf, because_of, +#if 0 /*JP*/ ysimple_name(uarmh)); /* cornuthaum */ +#else + simpleonames(uarmh)); /* cornuthaum */ +#endif break; } } diff --git a/src/cmd.c b/src/cmd.c index 6664bf7..445b611 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1311,7 +1311,7 @@ static const char have_been[] = "have been ", have_never[] = "have never ", enlght_line(prefix, final ? past : present, suffix, ps) #else #define enl_msg(prefix, present, past, suffix, ps) \ - enlght_line(prefix, suffix, final ? past : present, ps) + enlght_line(prefix, ps, suffix, final ? past : present) #endif #define you_are(attr, ps) enl_msg(You_, are, were, attr, ps) #define you_have(attr, ps) enl_msg(You_, have, had, attr, ps) @@ -1335,7 +1335,7 @@ static const char have_been[] = "have been ", have_never[] = "have never ", enl_msg(something, "‚Ä‚¢‚é", "‚½", "", "") #endif #if 1 /*JP*/ -#define you_are_ing(goodthing) enl_msg(You_, iru, ita, goodthing, "") +#define you_are_ing(goodthing, ps) enl_msg(You_, iru, ita, goodthing, ps) #endif static void @@ -1573,9 +1573,14 @@ int final; /*JP Sprintf(tmpbuf, "%s ", genders[flags.female ? 1 : 0].adj); */ - Sprintf(tmpbuf, "%s", genders[flags.female ? 1 : 0].adj); + Sprintf(tmpbuf, "%s‚Ì", genders[flags.female ? 1 : 0].adj); +#if 0 /*JP*/ Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, uasmon->mname); +#else + Sprintf(buf, "%s%s%s‚ÌŽp", !final ? "¡‚Ì‚Æ‚±‚ë" : "", tmpbuf, + uasmon->mname); +#endif you_are(buf, ""); } @@ -1590,7 +1595,11 @@ int final; Sprintf(tmpbuf, "%s", genders[innategend].adj); buf[0] = '\0'; if (Upolyd) +#if 0 /*JP*/ Strcpy(buf, "actually "); /* "You are actually a ..." */ +#else + Strcpy(buf, "ŽÀÛ‚É‚Í"); /* "‚ ‚È‚½‚ÍŽÀÛ‚É‚Í..." */ +#endif if (!strcmpi(rank_titl, role_titl)) { /* omit role when rank title matches it */ #if 0 /*JP*/ @@ -1626,7 +1635,7 @@ int final; : "", u_gname()); #else - Sprintf(buf, " ‚ ‚È‚½‚Í%s‚Å, %s%s‚Ì‚½‚ß‚Ì”C–±‚ðs‚Á‚Ä%s", + Sprintf(buf, "‚ ‚È‚½‚Í%s‚Å, %s%s‚Ì‚½‚ß‚Ì”C–±‚ðs‚Á‚Ä%sD", align_str(u.ualign.type), /* helm of opposite alignment (might hide conversion) */ (u.ualign.type != u.ualignbase[A_CURRENT]) ? "ˆêŽž“I‚É" @@ -1690,15 +1699,25 @@ int final; + ((u.ualignbase[A_CURRENT] != u.ualignbase[A_ORIGINAL]) ? 2 : 0)); if (difalgn & 1) { /* have temporary alignment so report permanent one */ +/*JP Sprintf(buf, "actually %s", align_str(u.ualignbase[A_CURRENT])); +*/ + Sprintf(buf, "ŽÀÛ‚É‚Í%s", align_str(u.ualignbase[A_CURRENT])); you_are(buf, ""); difalgn &= ~1; /* suppress helm from "started out " message */ } if (difgend || difalgn) { /* sex change or perm align change or both */ +#if 0 /*JP*/ Sprintf(buf, " You started out %s%s%s.", difgend ? genders[flags.initgend].adj : "", (difgend && difalgn) ? " and " : "", difalgn ? align_str(u.ualignbase[A_ORIGINAL]) : ""); +#else + Sprintf(buf, "‚ ‚È‚½‚Í%s%s%s‚ÅŠJŽn‚µ‚½D", + difgend ? genders[flags.initgend].adj : "", + (difgend && difalgn) ? "‚©‚Â" : "", + difalgn ? align_str(u.ualignbase[A_ORIGINAL]) : ""); +#endif putstr(en_win, 0, buf); } } @@ -1750,28 +1769,46 @@ int mode, final, attrindx; } switch (attrindx) { case A_STR: +/*JP attrname = "strength"; +*/ + attrname = "‹­‚³"; if (uarmg && uarmg->otyp == GAUNTLETS_OF_POWER && uarmg->cursed) hide_innate_value = TRUE; break; case A_DEX: +/*JP attrname = "dexterity"; +*/ + attrname = "‘f‘‚³"; break; case A_CON: +/*JP attrname = "constitution"; +*/ + attrname = "‘Ï‹v—Í"; break; case A_INT: +/*JP attrname = "intelligence"; +*/ + attrname = "’m—Í"; if (uarmh && uarmh->otyp == DUNCE_CAP && uarmh->cursed) hide_innate_value = TRUE; break; case A_WIS: +/*JP attrname = "wisdom"; +*/ + attrname = "Œ«‚³"; if (uarmh && uarmh->otyp == DUNCE_CAP && uarmh->cursed) hide_innate_value = TRUE; break; case A_CHA: +/*JP attrname = "charisma"; +*/ + attrname = "–£—Í"; break; default: return; /* impossible */ @@ -1782,7 +1819,10 @@ int mode, final, attrindx; acurrent = ACURR(attrindx); (void) attrval(attrindx, acurrent, valubuf); /* Sprintf(valubuf,"%d",) */ +/*JP Sprintf(subjbuf, "Your %s ", attrname); +*/ + Sprintf(subjbuf, "‚ ‚È‚½‚Ì%s‚Í", attrname); if (!hide_innate_value) { /* show abase, amax, and/or attrmax if acurr doesn't match abase @@ -1799,28 +1839,51 @@ int mode, final, attrindx; interesting_alimit = final ? TRUE /* was originally `(abase != alimit)' */ : (alimit != (attrindx != A_STR ? 18 : STR18(100))); +/*JP paren_pfx = final ? " (" : " (current; "; +*/ + paren_pfx = final ? " (" : " (Œ»Ý; "; if (acurrent != abase) { +#if 0 /*JP*/ Sprintf(eos(valubuf), "%sbase:%s", paren_pfx, attrval(attrindx, abase, valstring)); +#else + Sprintf(eos(valubuf), "%sŠî–{:%s", paren_pfx, + attrval(attrindx, abase, valstring)); +#endif paren_pfx = ", "; } if (abase != apeak) { +#if 0 /*JP*/ Sprintf(eos(valubuf), "%speak:%s", paren_pfx, attrval(attrindx, apeak, valstring)); +#else + Sprintf(eos(valubuf), "%sÅ‘å:%s", paren_pfx, + attrval(attrindx, apeak, valstring)); +#endif paren_pfx = ", "; } if (interesting_alimit) { +#if 0 /*JP*/ Sprintf(eos(valubuf), "%s%slimit:%s", paren_pfx, /* more verbose if exceeding 'limit' due to magic bonus */ (acurrent > alimit) ? "innate " : "", attrval(attrindx, alimit, valstring)); +#else + Sprintf(eos(valubuf), "%s%sãŒÀ:%s", paren_pfx, + /* more verbose if exceeding 'limit' due to magic bonus */ + (acurrent > alimit) ? "–{—ˆ‚Ì" : "", + attrval(attrindx, alimit, valstring)); +#endif /* paren_pfx = ", "; */ } if (acurrent != abase || abase != apeak || interesting_alimit) Strcat(valubuf, ")"); } +/*JP enl_msg(subjbuf, "is ", "was ", valubuf, ""); +*/ + enl_msg(subjbuf, "‚¾", "‚¾‚Á‚½", valubuf, ""); } /* status: selected obvious capabilities, assorted troubles */ @@ -1836,7 +1899,10 @@ int final; /* if hero dies while dismounting, u.usteed will still be set; we want to ignore steed in that situation */ && !(final == ENL_GAMEOVERDEAD +/*JP && !strcmp(killer.name, "riding accident"))); +*/ + && !strcmp(killer.name, "‹RæŽ–ŒÌ‚Å"))); const char *steedname = (!Riding ? (char *) 0 : x_monnam(u.usteed, u.usteed->mtame ? ARTICLE_YOUR : ARTICLE_THE, @@ -1849,83 +1915,162 @@ int final; * should be discernible to the hero hence to the player) \*/ putstr(en_win, 0, ""); /* separator after title or characteristics */ +/*JP putstr(en_win, 0, final ? "Final Status:" : "Current Status:"); +*/ + putstr(en_win, 0, final ? "ÅIó‘Ô:" : "Œ»Ý‚̏ó‘Ô:"); Strcpy(youtoo, You_); /* not a traditional status but inherently obvious to player; more detail given below (attributes section) for magic enlightenment */ if (Upolyd) +/*JP you_are("transformed", ""); +*/ + you_are_ing("•Ï‰»‚µ‚Ä", ""); /* not a trouble, but we want to display riding status before maybe reporting steed as trapped or hero stuck to cursed saddle */ if (Riding) { +#if 0 /*JP*/ Sprintf(buf, "riding %s", steedname); you_are(buf, ""); +#else + Sprintf(buf, "%s‚ɏæ‚Á‚Ä", steedname); + you_are_ing(buf, ""); +#endif +/*JP Sprintf(eos(youtoo), "and %s ", steedname); +*/ + Sprintf(youtoo, "‚ ‚È‚½‚Æ%s‚Í", steedname); } /* other movement situations that hero should always know */ if (Levitation) { if (Lev_at_will && magic) +/*JP you_are("levitating, at will", ""); +*/ + you_are_ing("Ž©•ª‚̈ӎu‚Å•‚—V‚µ‚Ä", ""); else +/*JP enl_msg(youtoo, are, were, "levitating", from_what(LEVITATION)); +*/ + enl_msg(youtoo, "‚¢‚é", "‚¢‚½", "•‚—V‚µ‚Ä", from_what(LEVITATION)); } else if (Flying) { /* can only fly when not levitating */ +/*JP enl_msg(youtoo, are, were, "flying", from_what(FLYING)); +*/ + enl_msg(youtoo, "‚¢‚é", "‚¢‚½", "”ò‚ñ‚Å", from_what(FLYING)); } if (Underwater) { +/*JP you_are("underwater", ""); +*/ + enl_msg(You_, "‚¢‚é", "‚¢‚½", "…–ʉº‚É", ""); } else if (u.uinwater) { +/*JP you_are(Swimming ? "swimming" : "in water", from_what(SWIMMING)); +*/ + enl_msg(You_, Swimming ? "‰j‚¢‚Å" : "…’†‚É", "‚¢‚é", "‚¢‚½", from_what(SWIMMING)); } else if (walking_on_water()) { /* show active Wwalking here, potential Wwalking elsewhere */ +#if 0 /*JP*/ Sprintf(buf, "walking on %s", is_pool(u.ux, u.uy) ? "water" : is_lava(u.ux, u.uy) ? "lava" : surface(u.ux, u.uy)); /* catchall; shouldn't happen */ you_are(buf, from_what(WWALKING)); +#else + Sprintf(buf, "%‚̏ã‚ð•à‚¢‚Ä", + is_pool(u.ux, u.uy) ? "…" + : is_lava(u.ux, u.uy) ? "—nŠâ" + : surface(u.ux, u.uy)); /* catchall; shouldn't happen */ + you_are_ing(buf, from_what(WWALKING)); +#endif } if (Upolyd && (u.uundetected || youmonst.m_ap_type != M_AP_NOTHING)) youhiding(TRUE, final); /* internal troubles, mostly in the order that prayer ranks them */ if (Stoned) +/*JP you_are("turning to stone", ""); +*/ + enl_msg("‚ ‚È‚½‚Í", "‚È‚è‚‚‚ ‚é", "‚È‚Á‚½", "Î‚É", ""); if (Slimed) +/*JP you_are("turning into slime", ""); +*/ + enl_msg("‚ ‚È‚½‚Í", "‚È‚è‚‚‚ ‚é", "‚È‚Á‚½", "ƒXƒ‰ƒCƒ€‚É", ""); if (Strangled) { if (u.uburied) { +/*JP you_are("buried", ""); +*/ + you_are_ing("’‚‘§‚µ‚Ä", ""); } else { +/*JP Strcpy(buf, "being strangled"); +*/ + Strcpy(buf, "Žñ‚ði‚ß‚ç‚ê‚Ä"); if (wizard) Sprintf(eos(buf), " (%ld)", (Strangled & TIMEOUT)); +/*JP you_are(buf, from_what(STRANGLED)); +*/ + enl_msg("‚ ‚È‚½‚Í", "‚¢‚é", "‚¢‚½", buf, from_what(STRANGLED)); } } if (Sick) { /* prayer lumps these together; botl puts Ill before FoodPois */ if (u.usick_type & SICK_NONVOMITABLE) +/*JP you_are("terminally sick from illness", ""); +*/ + enl_msg("‚ ‚È‚½‚Í•a‹C‚Å’v–½“I‚É‹C•ª‚ªˆ«", "‚¢", "‚©‚Á‚½", "", ""); if (u.usick_type & SICK_VOMITABLE) +/*JP you_are("terminally sick from food poisoning", ""); +*/ + enl_msg("‚ ‚È‚½‚͐H’†“Å‚Å’v–½“I‚É‹C•ª‚ªˆ«", "‚¢", "‚©‚Á‚½", "", ""); } if (Vomiting) +/*JP you_are("nauseated", ""); +*/ + enl_msg(You_, "“f‚«‹C‚ª", "‚ ‚é", "‚ ‚Á‚½", ""); if (Stunned) +/*JP you_are("stunned", ""); +*/ + you_are("‚­‚ç‚­‚çó‘Ô", ""); if (Confusion) +/*JP you_are("confused", ""); +*/ + you_are("¬—ó‘Ô", ""); if (Hallucination) +/*JP you_are("hallucinating", ""); +*/ + you_are("Œ¶Šoó‘Ô", ""); if (Blind) { /* from_what() (currently wizard-mode only) checks !haseyes() before u.uroleplay.blind, so we should too */ +#if 0 /*JP*/ Sprintf(buf, "%s blind", !haseyes(youmonst.data) ? "innately" : u.uroleplay.blind ? "permanently" /* better phrasing desperately wanted... */ : Blindfolded_only ? "deliberately" : "temporarily"); +#else + Sprintf(buf, "%s–Ó–Ú", + !haseyes(youmonst.data) ? "¶‚Ü‚ê‚È‚ª‚ç‚É" + : u.uroleplay.blind ? "P‹v“I‚É" + /* better phrasing desperately wanted... */ + : Blindfolded_only ? "ŒÌˆÓ‚É" + : "ˆêŽž“I‚É"); +#endif if (wizard && (Blinded & TIMEOUT) != 0L && !u.uroleplay.blind && haseyes(youmonst.data)) Sprintf(eos(buf), " (%ld)", (Blinded & TIMEOUT)); @@ -1933,17 +2078,29 @@ int final; you_are(buf, !haseyes(youmonst.data) ? "" : from_what(BLINDED)); } if (Deaf) +/*JP you_are("deaf", from_what(DEAF)); +*/ + you_are("Ž¨‚ª•·‚±‚¦‚È‚¢ó‘Ô", from_what(DEAF)); /* external troubles, more or less */ if (Punished) { if (uball) { +/*JP Sprintf(buf, "chained to %s", ansimpleoname(uball)); +*/ + Sprintf(buf, "%s‚ɂ‚Ȃª‚ê‚Ä", ansimpleoname(uball)); } else { impossible("Punished without uball?"); +/*JP Strcpy(buf, "punished"); +*/ + Strcpy(buf, "”±‚ðŽó‚¯‚Ä"); } +/*JP you_are(buf, ""); +*/ + you_are_ing(buf, ""); } if (u.utrap) { char predicament[BUFSZ]; @@ -1951,33 +2108,62 @@ int final; boolean anchored = (u.utraptype == TT_BURIEDBALL); if (anchored) { +/*JP Strcpy(predicament, "tethered to something buried"); +*/ + Strcpy(predicament, "‰½‚©–„‚Ü‚Á‚Ä‚¢‚é‚à‚̂ɂ‚Ȃª‚ê‚Ä"); } else if (u.utraptype == TT_INFLOOR || u.utraptype == TT_LAVA) { +/*JP Sprintf(predicament, "stuck in %s", the(surface(u.ux, u.uy))); +*/ + Sprintf(predicament, "%s‚É–„‚Ü‚Á‚Ä", surface(u.ux, u.uy)); } else { +#if 0 /*JP*/ Strcpy(predicament, "trapped"); if ((t = t_at(u.ux, u.uy)) != 0) Sprintf(eos(predicament), " in %s", an(defsyms[trap_to_defsym(t->ttyp)].explanation)); +#else + predicament[0] = '\0'; + if ((t = t_at(u.ux, u.uy)) != 0) + Sprintf(predicament, "%s‚É", + defsyms[trap_to_defsym(t->ttyp)].explanation); + Strcat(predicament, "‚ЂÁ‚©‚©‚Á‚Ä"); +#endif } if (u.usteed) { /* not `Riding' here */ +#if 0 /*JP*/ Sprintf(buf, "%s%s ", anchored ? "you and " : "", steedname); *buf = highc(*buf); enl_msg(buf, (anchored ? "are " : "is "), (anchored ? "were " : "was "), predicament, ""); +#else + Sprintf(buf, "%s%s‚Í", anchored ? "‚ ‚È‚½‚Æ" : "", steedname); + enl_msg(buf, "‚¢‚é", "‚¢‚½" , predicament, ""); +#endif } else you_are(predicament, ""); } /* (u.utrap) */ if (u.uswallow) { +/*JP Sprintf(buf, "swallowed by %s", a_monnam(u.ustuck)); +*/ + Sprintf(buf, "%s‚Ɉù‚ݍž‚Ü‚ê‚Ä", a_monnam(u.ustuck)); if (wizard) Sprintf(eos(buf), " (%u)", u.uswldtim); you_are(buf, ""); } else if (u.ustuck) { +#if 0 /*JP*/ Sprintf(buf, "%s %s", (Upolyd && sticks(youmonst.data)) ? "holding" : "held by", a_monnam(u.ustuck)); you_are(buf, ""); +#else + Sprintf(buf, "%s%s", + a_monnam(u.ustuck), + (Upolyd && sticks(youmonst.data)) ? "‚ð•ß‚Ü‚¦‚Ä" : "‚É•ß‚Ü‚Á‚Ä"); + you_are_ing(buf, ""); +#endif } if (Riding) { struct obj *saddle = which_armor(u.usteed, W_SADDLE); @@ -1993,49 +2179,79 @@ int final; hero; we only report steed's wounded legs in wizard mode */ if (u.usteed) { /* not `Riding' here */ if (wizard && steedname) { +#if 0 /*JP*/ Strcpy(buf, steedname); *buf = highc(*buf); enl_msg(buf, " has", " had", " wounded legs", ""); +#else + enl_msg(buf, iru, ita, "‚ÍŽˆ‚ð‰ö‰ä‚µ‚Ä", ""); +#endif } } else { +#if 0 /*JP*/ Sprintf(buf, "wounded %s", makeplural(body_part(LEG))); you_have(buf, ""); +#else + Sprintf(buf, "%s‚ð‰ö‰ä‚µ‚Ä", makeplural(body_part(LEG))); + you_are_ing(buf, ""); +#endif } } if (Glib) { +#if 0 /*JP*/ Sprintf(buf, "slippery %s", makeplural(body_part(FINGER))); you_have(buf, ""); +#else + Sprintf(buf, "%s‚ª‚Ê‚é‚ʂ邵‚Ä", body_part(FINGER)); + enl_msg(buf, iru, ita, "", ""); +#endif } if (Fumbling) { if (magic || cause_known(FUMBLING)) +/*JP enl_msg(You_, "fumble", "fumbled", "", from_what(FUMBLING)); +*/ + you_are_ing("•sŠí—p‚É‚È‚Á‚Ä", from_what(FUMBLING)); } if (Sleepy) { if (magic || cause_known(SLEEPY)) { Strcpy(buf, from_what(SLEEPY)); if (wizard) Sprintf(eos(buf), " (%ld)", (HSleepy & TIMEOUT)); +/*JP enl_msg("You ", "fall", "fell", " asleep uncontrollably", buf); +*/ + you_are_ing("–°‚Á‚Ä", buf); } } /* hunger/nutrition */ if (Hunger) { if (magic || cause_known(HUNGER)) +#if 0 /*JP*/ enl_msg(You_, "hunger", "hungered", " rapidly", from_what(HUNGER)); +#else + enl_msg("‚ ‚È‚½‚Í‚·‚®‚É• ‚ªŒ¸‚éó‘Ô", "‚Å‚ ‚é", "‚¾‚Á‚½", "", ""); +#endif } Strcpy(buf, hu_stat[u.uhs]); /* hunger status; omitted if "normal" */ mungspaces(buf); /* strip trailing spaces */ if (*buf) { +#if 0 /*JP*/ *buf = lowc(*buf); /* override capitalization */ if (!strcmp(buf, "weak")) Strcat(buf, " from severe hunger"); else if (!strncmp(buf, "faint", 5)) /* fainting, fainted */ Strcat(buf, " due to starvation"); you_are(buf, ""); +#else + Strcat(buf, "ó‘Ô"); + you_are(buf, ""); +#endif } /* encumbrance */ if ((cap = near_capacity()) > UNENCUMBERED) { +#if 0 /*JP*/ const char *adj = "?_?"; /* (should always get overridden) */ Strcpy(buf, enc_stat[cap]); @@ -2060,14 +2276,22 @@ int final; Sprintf(eos(buf), "; movement %s %s%s", !final ? "is" : "was", adj, (cap < OVERLOADED) ? " slowed" : ""); you_are(buf, ""); +#else + Sprintf(buf, "‰×•¨‚É‚æ‚Á‚Ä%só‘Ô", enc_stat[cap]); + you_are(buf, ""); +#endif } else { /* last resort entry, guarantees Status section is non-empty (no longer needed for that purpose since weapon status added; still useful though) */ +/*JP you_are("unencumbered", ""); +*/ + you_are("‰×•¨‚͎ז‚‚É‚È‚ç‚È‚¢ó‘Ô", ""); } /* report being weaponless; distinguish whether gloves are worn */ if (!uwep) { +#if 0 /*JP*/ you_are(uarmg ? "empty handed" /* gloves imply hands */ : humanoid(youmonst.data) /* hands but no weapon and no gloves */ @@ -2075,15 +2299,22 @@ int final; /* alternate phrasing for paws or lack of hands */ : "not wielding anything", ""); +#else + enl_msg(You_, "‚¢", "‚©‚Á‚½", "•Ší‚ð‘•”õ‚µ‚Ä‚¢‚È", ""); +#endif /* two-weaponing implies a weapon (not other odd stuff) in each hand */ } else if (u.twoweap) { +/*JP you_are("wielding two weapons at once", ""); +*/ + you_are("“ñ“—¬", ""); /* report most weapons by their skill class (so a katana will be described as a long sword, for instance; mattock and hook are exceptions), or wielded non-weapon item by its object class */ } else { const char *what = weapon_descr(uwep); +#if 0 /*JP*/ if (!strcmpi(what, "armor") || !strcmpi(what, "food") || !strcmpi(what, "venom")) Sprintf(buf, "wielding some %s", what); @@ -2091,13 +2322,25 @@ int final; Sprintf(buf, "wielding %s", (uwep->quan == 1L) ? an(what) : makeplural(what)); you_are(buf, ""); +#else + Sprintf(buf, "%s‚ð‘•”õ‚µ‚Ä", what); + enl_msg(You_, "‚¢‚é", "‚¢‚½", buf, ""); +#endif } /* report 'nudity' */ if (!uarm && !uarmu && !uarmc && !uarmg && !uarmf && !uarmh) { if (u.uroleplay.nudist) +#if 0 /*JP*/ enl_msg(You_, "do", "did", " not wear any armor", ""); +#else + enl_msg(You_, "‚¢", "‚©‚Á‚½", "‰½‚ÌŠZ‚à‘•”õ‚µ‚È", ""); +#endif else +#if 0 /*JP*/ you_are("not wearing any armor", ""); +#else + enl_msg(You_, "‚¢", "‚©‚Á‚½", "‰½‚ÌŠZ‚à‘•”õ‚µ‚Ä‚¢‚È", ""); +#endif } } @@ -2116,7 +2359,10 @@ int final; * Attributes \*/ putstr(en_win, 0, ""); +/*JP putstr(en_win, 0, final ? "Final Attributes:" : "Current Attributes:"); +*/ + putstr(en_win, 0, final ? "ÅI‘®«:" : "Œ»Ý‚Ì‘®«:"); if (u.uevent.uhand_of_elbereth) { #if 0 /*JP*/ @@ -2171,17 +2417,17 @@ int final; /*JP you_have("strayed", ""); */ - you_are_ing("M‹Â‚É–À‚¢‚ð‚à‚Á‚Ä"); + you_are_ing("M‹Â‚É–À‚¢‚ð‚à‚Á‚Ä", ""); else if (u.ualign.record >= -8) /*JP you_have("sinned", ""); */ - you_are_ing("ß‚𕉂Á‚Ä"); + you_are_ing("ß‚𕉂Á‚Ä", ""); else /*JP you_have("transgressed", ""); */ - you_are_ing("M‹Â‚©‚çˆí’E‚µ‚Ä"); + you_are_ing("M‹Â‚©‚çˆí’E‚µ‚Ä", ""); if (wizard) { #if 0 /*JP*/ Sprintf(buf, " %d", u.ualign.record); @@ -2194,57 +2440,123 @@ int final; /*** Resistances to troubles ***/ if (Invulnerable) +/*JP you_are("invulnerable", from_what(INVULNERABLE)); +*/ + you_are("•sŽ€g", from_what(INVULNERABLE)); if (Antimagic) +/*JP you_are("magic-protected", from_what(ANTIMAGIC)); +*/ + you_have("–‚–@–hŒä”\—Í", from_what(ANTIMAGIC)); if (Fire_resistance) +/*JP you_are("fire resistant", from_what(FIRE_RES)); +*/ + you_have("‰Î‚ւ̑ϐ«", from_what(FIRE_RES)); if (Cold_resistance) +/*JP you_are("cold resistant", from_what(COLD_RES)); +*/ + you_have("Š¦‚³‚ւ̑ϐ«", from_what(COLD_RES)); if (Sleep_resistance) +/*JP you_are("sleep resistant", from_what(SLEEP_RES)); +*/ + you_have("–°‚è‚ւ̑ϐ«", from_what(SLEEP_RES)); if (Disint_resistance) +/*JP you_are("disintegration-resistant", from_what(DISINT_RES)); +*/ + you_have("•²Ó‚ւ̑ϐ«", from_what(DISINT_RES)); if (Shock_resistance) +/*JP you_are("shock resistant", from_what(SHOCK_RES)); +*/ + you_have("“dŒ‚‚ւ̑ϐ«", from_what(SHOCK_RES)); if (Poison_resistance) +/*JP you_are("poison resistant", from_what(POISON_RES)); +*/ + you_have("“łւ̑ϐ«", from_what(POISON_RES)); if (Acid_resistance) +/*JP you_are("acid resistant", from_what(ACID_RES)); +*/ + you_have("Ž_‚ւ̑ϐ«", from_what(ACID_RES)); if (Drain_resistance) +/*JP you_are("level-drain resistant", from_what(DRAIN_RES)); +*/ + you_have("ƒŒƒxƒ‹ƒ_ƒEƒ“‚ւ̑ϐ«", from_what(DRAIN_RES)); if (Sick_resistance) +/*JP you_are("immune to sickness", from_what(SICK_RES)); +*/ + you_have("•a‹C‚ɑ΂·‚é–Ɖu", from_what(SICK_RES)); if (Stone_resistance) +/*JP you_are("petrification resistant", from_what(STONE_RES)); +*/ + you_have("Î‰»‚ւ̑ϐ«", from_what(STONE_RES)); if (Halluc_resistance) +#if 0 /*JP*/ enl_msg(You_, "resist", "resisted", " hallucinations", from_what(HALLUC_RES)); +#else + you_have("Œ¶Šo‚ւ̑ϐ«", from_what(HALLUC_RES)); +#endif if (u.uedibility) +/*JP you_can("recognize detrimental food", ""); +*/ + you_can("—LŠQ‚ȐH—¿‚ðŽ¯•Ê", ""); /*** Vision and senses ***/ if (!Blind && (Blinded || !haseyes(youmonst.data))) you_can("see", from_what(-BLINDED)); /* Eyes of the Overworld */ if (See_invisible) { if (!Blind) +/*JP enl_msg(You_, "see", "saw", " invisible", from_what(SEE_INVIS)); +*/ + enl_msg("‚ ‚È‚½‚Í“§–¾‚È‚à‚Ì‚ðŒ©‚ç‚ê", "‚é", "‚½", "", from_what(SEE_INVIS)); else +#if 0 /*JP*/ enl_msg(You_, "will see", "would have seen", " invisible when not blind", from_what(SEE_INVIS)); +#else + enl_msg(You_, "‚é", "‚½", + "–Ó–Ú‚Å‚È‚¢‚Æ‚«‚É‚Í“§–¾‚È‚à‚Ì‚ðŒ©‚ç‚ê", from_what(SEE_INVIS)); +#endif } if (Blind_telepat) +/*JP you_are("telepathic", from_what(TELEPAT)); +*/ + you_have("ƒeƒŒƒpƒV[", from_what(TELEPAT)); if (Warning) +/*JP you_are("warned", from_what(WARNING)); +*/ + you_have("Œx‰ú”\—Í", from_what(WARNING)); if (Warn_of_mon && context.warntype.obj) { +#if 0 /*JP*/ Sprintf(buf, "aware of the presence of %s", (context.warntype.obj & M2_ORC) ? "orcs" : (context.warntype.obj & M2_ELF) ? "elves" : (context.warntype.obj & M2_DEMON) ? "demons" : something); you_are(buf, from_what(WARN_OF_MON)); +#else + Sprintf(buf, "%s‚Ì‘¶Ý‚ðŠ´‚¶‚é”\—Í", + (context.warntype.obj & M2_ORC) ? "ƒI[ƒN" + : (context.warntype.obj & M2_ELF) ? "ƒGƒ‹ƒt" + : (context.warntype.obj & M2_DEMON) ? "ˆ«–‚" : something); + you_have(buf, ""); +#endif } if (Warn_of_mon && context.warntype.polyd) { +#if 0 /*JP*/ Sprintf(buf, "aware of the presence of %s", ((context.warntype.polyd & (M2_HUMAN | M2_ELF)) == (M2_HUMAN | M2_ELF)) @@ -2259,31 +2571,79 @@ int final; ? "demons" : "certain monsters"); you_are(buf, ""); +#else + Sprintf(buf, "%s‚Ì‘¶Ý‚ðŠ´‚¶‚é”\—Í", + ((context.warntype.polyd & (M2_HUMAN | M2_ELF)) + == (M2_HUMAN | M2_ELF)) + ? "lŠÔ‚ƃGƒ‹ƒt" + : (context.warntype.polyd & M2_HUMAN) + ? "lŠÔ" + : (context.warntype.polyd & M2_ELF) + ? "ƒGƒ‹ƒt" + : (context.warntype.polyd & M2_ORC) + ? "ƒI[ƒN" + : (context.warntype.polyd & M2_DEMON) + ? "ˆ«–‚" + : "‚ ‚éŽí‚̉ö•¨"); + you_have(buf, ""); +#endif } if (Warn_of_mon && context.warntype.speciesidx) { +#if 0 /*JP*/ Sprintf(buf, "aware of the presence of %s", makeplural(mons[context.warntype.speciesidx].mname)); you_are(buf, from_what(WARN_OF_MON)); +#else + Sprintf(buf, "%s‚Ì‘¶Ý‚ðŠ´‚¶‚é”\—Í", + mons[context.warntype.speciesidx].mname); + you_have(buf, from_what(WARN_OF_MON)); +#endif } if (Undead_warning) +/*JP you_are("warned of undead", from_what(WARN_UNDEAD)); +*/ + you_have("•sŽ€‚̐¶•¨‚Ö‚ÌŒx‰ú”\—Í", from_what(WARN_UNDEAD)); if (Searching) +/*JP you_have("automatic searching", from_what(SEARCHING)); +*/ + you_have("’T¸”\—Í", from_what(SEARCHING)); if (Clairvoyant) +/*JP you_are("clairvoyant", from_what(CLAIRVOYANT)); +*/ + you_have("ç—¢Šá”\—Í", from_what(CLAIRVOYANT)); else if ((HClairvoyant || EClairvoyant) && BClairvoyant) { Strcpy(buf, from_what(-CLAIRVOYANT)); +#if 0 /*JP*/ if (!strncmp(buf, " because of ", 12)) /* overwrite substring; strncpy doesn't add terminator */ (void) strncpy(buf, " if not for ", 12); enl_msg(You_, "could be", "could have been", " clairvoyant", buf); +#else + /*JP:uc‚É‚æ‚Á‚āv*/ + if (!strncmp(buf, "‚É‚æ‚Á‚Ä", 8)) + /*JP:uc‚ª‚È‚¯‚ê‚΁v‚ɏ‘‚«Š·‚¦‚é*/ + strcpy(eos(buf) - 8, "‚ª‚È‚¯‚ê‚Î"); + you_have("ç—¢Šá”\—Í", buf); +#endif } if (Infravision) +/*JP you_have("infravision", from_what(INFRAVISION)); +*/ + you_have("ˆÃˆÅ‚Å•¨‚ðŒ©‚é”\—Í", from_what(INFRAVISION)); if (Detect_monsters) +/*JP you_are("sensing the presence of monsters", ""); +*/ + you_have("‰ö•¨‚ð’T‚·”\—Í", ""); if (u.umconf) +/*JP you_are("going to confuse monsters", ""); +*/ + you_have("‰ö•¨‚ð¬—‚³‚¹‚é”\—Í", ""); /*** Appearance and behavior ***/ if (Adornment) { @@ -2296,43 +2656,84 @@ int final; /* the sum might be 0 (+0 ring or two which negate each other); that yields "you are charismatic" (which isn't pointless because it potentially impacts seduction attacks) */ +#if 0 /*JP*/ Sprintf(buf, "%scharismatic", (adorn > 0) ? "more " : (adorn < 0) ? "less " : ""); you_are(buf, from_what(ADORNED)); +#else + Sprintf(buf, "–£—Í%s‚Ä", + (adorn > 0) ? "‚ª‘‰Á‚µ" : (adorn < 0) ? "‚ªŒ¸­‚µ" : "“I‚É‚È‚Á"); + enl_msg(You_, "‚Ä‚¢‚é", "‚½", buf, ""); +#endif } if (Invisible) +/*JP you_are("invisible", from_what(INVIS)); +*/ + you_are("“§–¾", from_what(INVIS)); else if (Invis) +/*JP you_are("invisible to others", from_what(INVIS)); +*/ + you_are("‘¼l‚ɑ΂µ‚Ä“§–¾", from_what(INVIS)); /* ordinarily "visible" is redundant; this is a special case for the situation when invisibility would be an expected attribute */ else if ((HInvis || EInvis) && BInvis) +/*JP you_are("visible", from_what(-INVIS)); +*/ + you_are("•s“§–¾", from_what(-INVIS)); if (Displaced) +/*JP you_are("displaced", from_what(DISPLACED)); +*/ + you_have("Œ¶‰e”\—Í", from_what(DISPLACED)); if (Stealth) +/*JP you_are("stealthy", from_what(STEALTH)); +*/ + you_have("l–ڂ𓐂ޔ\—Í", from_what(STEALTH)); if (Aggravate_monster) +#if 0 /*JP*/ enl_msg("You aggravate", "", "d", " monsters", from_what(AGGRAVATE_MONSTER)); +#else + you_are_ing("”½Š´‚ð‚©‚Á‚Ä", from_what(AGGRAVATE_MONSTER)); +#endif if (Conflict) +/*JP enl_msg("You cause", "", "d", " conflict", from_what(CONFLICT)); +*/ + you_are_ing("“¬‘ˆ‚ðˆø‚«‹N‚±‚µ‚Ä", from_what(CONFLICT)); /*** Transportation ***/ if (Jumping) +/*JP you_can("jump", from_what(JUMPING)); +*/ + you_can("’µ–ô‚·‚邱‚Æ‚ª", from_what(JUMPING)); if (Teleportation) +/*JP you_can("teleport", from_what(TELEPORT)); +*/ + you_can("uŠÔˆÚ“®‚ª", from_what(TELEPORT)); if (Teleport_control) +/*JP you_have("teleport control", from_what(TELEPORT_CONTROL)); +*/ + you_have("uŠÔˆÚ“®‚̐§Œä”\—Í", from_what(TELEPORT_CONTROL)); /* actively levitating handled earlier as a status condition */ if (BLevitation) { /* levitation is blocked */ long save_BLev = BLevitation; BLevitation = 0L; if (Levitation) +#if 0 /*JP*/ enl_msg(You_, "would levitate", "would have levitated", if_surroundings_permitted, ""); +#else + you_are("•‚—Vó‘Ô", ""); +#endif BLevitation = save_BLev; } /* actively flying handled earlier as a status condition */ @@ -2341,6 +2742,7 @@ int final; BFlying = 0L; if (Flying) +#if 0 /*JP*/ enl_msg(You_, "would fly", "would have flown", Levitation ? "if you weren't levitating" @@ -2349,30 +2751,60 @@ int final; /* both surroundings and [latent] levitation */ : " if circumstances permitted", ""); +#else + you_can("”ò‚Ô‚±‚Æ‚ª", ""); +#endif BFlying = save_BFly; } /* actively walking on water handled earlier as a status condition */ if (Wwalking && !walking_on_water()) +/*JP you_can("walk on water", from_what(WWALKING)); +*/ + you_can("…‚̏ã‚ð•à‚­‚±‚Æ‚ª", from_what(WWALKING)); /* actively swimming (in water but not under it) handled earlier */ if (Swimming && (Underwater || !u.uinwater)) +/*JP you_can("swim", from_what(SWIMMING)); +*/ + you_can("‰j‚®‚±‚Æ‚ª", from_what(SWIMMING)); if (Breathless) +/*JP you_can("survive without air", from_what(MAGICAL_BREATHING)); +*/ + you_can("‹ó‹C‚È‚µ‚Ő¶‚«‰„‚т邱‚Æ‚ª", from_what(MAGICAL_BREATHING)); else if (Amphibious) +/*JP you_can("breathe water", from_what(MAGICAL_BREATHING)); +*/ + you_can("…’†‚Ōċz‚ª", from_what(MAGICAL_BREATHING)); if (Passes_walls) +/*JP you_can("walk through walls", from_what(PASSES_WALLS)); +*/ + you_can("•Ç‚ð’ʂ蔲‚¯‚邱‚Æ‚ª", from_what(PASSES_WALLS)); /*** Physical attributes ***/ if (Regeneration) +/*JP enl_msg("You regenerate", "", "d", "", from_what(REGENERATION)); +*/ + you_have("Ä¶”\—Í", from_what(REGENERATION)); if (Slow_digestion) +/*JP you_have("slower digestion", from_what(SLOW_DIGESTION)); +*/ + enl_msg("H•¨‚̏Á‰»‚ª’x", "‚¢", "‚©‚Á‚½", "", from_what(SLOW_DIGESTION)); if (u.uhitinc) +/*JP you_have(enlght_combatinc("to hit", u.uhitinc, final, buf), ""); +*/ + you_have(enlght_combatinc("–½’†—¦", u.uhitinc, final, buf), ""); if (u.udaminc) +/*JP you_have(enlght_combatinc("damage", u.udaminc, final, buf), ""); +*/ + you_have(enlght_combatinc("ƒ_ƒ[ƒW", u.udaminc, final, buf), ""); if (u.uspellprot || Protection) { int prot = 0; @@ -2384,17 +2816,27 @@ int final; prot += u.ublessed; prot += u.uspellprot; if (prot) +/*JP you_have(enlght_combatinc("defense", prot, final, buf), ""); +*/ + you_have(enlght_combatinc("–hŒä", prot, final, buf), ""); } if ((armpro = magic_negation(&youmonst)) > 0) { /* magic cancellation factor, conferred by worn armor */ static const char *const mc_types[] = { +#if 0 /*JP*/ "" /*ordinary*/, "warded", "guarded", "protected", +#else + "" /*ordinary*/, "‰q‚ç‚ê‚Ä", "Œì‚ç‚ê‚Ä", "Žç‚ç‚ê‚Ä", +#endif }; /* sanity check */ if (armpro >= SIZE(mc_types)) armpro = SIZE(mc_types) - 1; +/*JP you_are(mc_types[armpro], ""); +*/ + you_are_ing(mc_types[armpro], ""); } if (Half_physical_damage) enlght_halfdmg(HALF_PHDAM, final); @@ -2402,40 +2844,74 @@ int final; enlght_halfdmg(HALF_SPDAM, final); /* polymorph and other shape change */ if (Protection_from_shape_changers) +#if 0 /*JP*/ you_are("protected from shape changers", from_what(PROT_FROM_SHAPE_CHANGERS)); +#else + you_have("•Ï‰»‰ö•¨‚ւ̑ϐ«", from_what(PROT_FROM_SHAPE_CHANGERS)); +#endif if (Unchanging) { const char *what = 0; if (!Upolyd) /* Upolyd handled below after current form */ +/*JP you_can("not change from your current form", +*/ + you_are("Œ»Ý‚ÌŽp‚©‚ç•Ï‰»‚Å‚«‚È‚¢ó‘Ô", from_what(UNCHANGING)); /* blocked shape changes */ if (Polymorph) +/*JP what = !final ? "polymorph" : "have polymorphed"; +*/ + what = "•Ï‰»‚µ‚Ä"; else if (u.ulycn >= LOW_PM) +/*JP what = !final ? "change shape" : "have changed shape"; +*/ + what = "Žp‚ð•Ï‚¦‚Ä"; if (what) { +#if 0 /*JP*/ Sprintf(buf, "would %s periodically", what); /* omit from_what(UNCHANGING); too verbose */ enl_msg(You_, buf, buf, " if not locked into your current form", ""); +#else + Sprintf(buf, "‚à‚µŒ»Ý‚ÌŽp‚ɌŒ肳‚ê‚Ä‚¢‚È‚¯‚ê‚Î’èŠú“I‚É%s", what); + you_are_ing(buf, ""); +#endif } } else if (Polymorph) { +/*JP you_are("polymorphing periodically", from_what(POLYMORPH)); +*/ + you_are("’èŠú“I‚ɕω»‚µ‚Ä", from_what(POLYMORPH)); } if (Polymorph_control) +/*JP you_have("polymorph control", from_what(POLYMORPH_CONTROL)); +*/ + you_have("•Ï‰»‚̐§Œä”\—Í", from_what(POLYMORPH_CONTROL)); if (Upolyd && u.umonnum != u.ulycn) { /* foreign shape (except were-form which is handled below) */ +/*JP Sprintf(buf, "polymorphed into %s", an(youmonst.data->mname)); +*/ + Sprintf(buf, "%s‚ɕω»‚µ‚Ä", youmonst.data->mname); if (wizard) Sprintf(eos(buf), " (%d)", u.mtimedone); +/*JP you_are(buf, ""); +*/ + you_are_ing(buf, ""); } if (lays_eggs(youmonst.data) && flags.female) /* Upolyd */ +/*JP you_can("lay eggs", ""); +*/ + you_can("—‘‚ðŽY‚Þ‚±‚Æ‚ª", ""); if (u.ulycn >= LOW_PM) { +#if 0 /*JP*/ /* "you are a werecreature [in beast form]" */ Strcpy(buf, an(mons[u.ulycn].mname)); if (u.umonnum == u.ulycn) { @@ -2443,53 +2919,111 @@ int final; if (wizard) Sprintf(eos(buf), " (%d)", u.mtimedone); } +#else + /*JP:u‚ ‚È‚½‚Í[b‚ÌŽp‚Ì]››lŠÔ‚Å‚ ‚év*/ + buf[0] = '\0'; + if (u.umonnum == u.ulycn) { + Strcpy(buf, "b‚ÌŽp‚Ì"); + if (wizard) + Sprintf(eos(buf), " (%d)", u.mtimedone); + } + Strcat(buf, mons[u.ulycn].mname); +#endif you_are(buf, ""); } if (Unchanging && Upolyd) /* !Upolyd handled above */ +/*JP you_can("not change from your current form", from_what(UNCHANGING)); +*/ + enl_msg("¡‚ÌŽp‚©‚ç•Ï‰»‚·‚邱‚Æ‚ª‚Å‚«‚È", "‚¢", "‚©‚Á‚½", "", from_what(UNCHANGING)); if (Hate_silver) you_are("harmed by silver", ""); /* movement and non-armor-based protection */ if (Fast) +/*JP you_are(Very_fast ? "very fast" : "fast", from_what(FAST)); +*/ + you_have(Very_fast ? "‚Æ‚Ä‚à‘f‘‚­s“®‚·‚é”\—Í" : "‘f‘‚­s“®‚·‚é”\—Í", from_what(FAST)); if (Reflecting) +/*JP you_have("reflection", from_what(REFLECTING)); +*/ + you_have("”½ŽË”\—Í", from_what(REFLECTING)); if (Free_action) +/*JP you_have("free action", from_what(FREE_ACTION)); +*/ + you_have("S‘©‚³‚ê‚È‚¢”\—Í", from_what(FREE_ACTION)); if (Fixed_abil) +/*JP you_have("fixed abilities", from_what(FIXED_ABIL)); +*/ + enl_msg("”\—Í‚ª•Ï‰»‚µ‚È", "‚¢", "‚©‚Á‚½", "", from_what(FIXED_ABIL)); if (Lifesaved) +/*JP enl_msg("Your life ", "will be", "would have been", " saved", ""); +*/ + enl_msg("‚ ‚È‚½‚̐¶–½‚Í•Û‘¶‚³‚ê‚Ä", iru, ita, "", ""); /*** Miscellany ***/ if (Luck) { ltmp = abs((int) Luck); +#if 0 /*JP*/ Sprintf(buf, "%s%slucky", ltmp >= 10 ? "extremely " : ltmp >= 5 ? "very " : "", Luck < 0 ? "un" : ""); +#else + Sprintf(buf, "%s%s", + ltmp >= 10 ? "–Ò—ó‚É" : ltmp >= 5 ? "‚Æ‚Ä‚à" : "", + Luck < 0 ? "•sK" : "K•Ÿ"); +#endif if (wizard) Sprintf(eos(buf), " (%d)", Luck); you_are(buf, ""); } else if (wizard) +/*JP enl_msg("Your luck ", "is", "was", " zero", ""); +*/ + enl_msg("‚ ‚È‚½‚̉^‚̓[ƒ", "‚Å‚ ‚é", "‚¾‚Á‚½", "", ""); if (u.moreluck > 0) +/*JP you_have("extra luck", ""); +*/ + you_have("‚³‚ç‚È‚éK‰^", ""); else if (u.moreluck < 0) +/*JP you_have("reduced luck", ""); +*/ + you_have("‚³‚ç‚È‚é•s‰^", ""); if (carrying(LUCKSTONE) || stone_luck(TRUE)) { ltmp = stone_luck(0); if (ltmp <= 0) +/*JP enl_msg("Bad luck ", "does", "did", " not time out for you", ""); +*/ + enl_msg("•s‰^‚ÍŽžŠÔØ‚ê‚É‚È‚ç‚È", "‚¢", "‚©‚Á‚½", "", ""); if (ltmp >= 0) +/*JP enl_msg("Good luck ", "does", "did", " not time out for you", ""); +*/ + enl_msg("K‰^‚ÍŽžŠÔØ‚ê‚É‚È‚ç‚È", "‚¢", "‚©‚Á‚½", "", ""); } if (u.ugangr) { +#if 0 /*JP*/ Sprintf(buf, " %sangry with you", u.ugangr > 6 ? "extremely " : u.ugangr > 3 ? "very " : ""); +#else + Sprintf(buf, "%s‚Í%s“{‚Á‚Ä%s", u_gname(), + u.ugangr > 6 ? "–Ò—ó‚É" : u.ugangr > 3 ? "‚Æ‚Ä‚à" : "", final ? ita : iru); +#endif if (wizard) Sprintf(eos(buf), " (%d)", u.ugangr); +#if 0 /*JP*/ enl_msg(u_gname(), " is", " was", buf, ""); +#else + enl_msg(buf, "", "", "", ""); +#endif } else { /* * We need to suppress this when the game is over, because death @@ -2525,13 +3059,25 @@ int final; char buf2[BUFSZ]; for (f = ffruit; f; f = f->nextf) { +/*JP Sprintf(buf, "Fruit %d ", ++fcount); +*/ + Sprintf(buf, "fruit %d ‚Í", ++fcount); Sprintf(buf2, "%s (id %d)", f->fname, f->fid); +/*JP enl_msg(buf, "is ", "was ", buf2, ""); +*/ + enl_msg(buf, "‚¾", "‚¾‚Á‚½", buf2, ""); } +/*JP enl_msg("The current fruit ", "is ", "was ", pl_fruit, ""); +*/ + enl_msg("Œ»Ý‚Ì fruit ‚Í", "‚¾", "‚¾‚Á‚½", pl_fruit, ""); Sprintf(buf, "%d", flags.made_fruit); +/*JP enl_msg("The made fruit flag ", "is ", "was ", buf, ""); +*/ + enl_msg("made fruit flag ‚Í", "‚¾", "‚¾‚Á‚½", buf, ""); } { @@ -2634,82 +3180,160 @@ minimal_enlightenment() tmpwin = create_nhwindow(NHW_MENU); start_menu(tmpwin); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings, +/*JP "Starting", FALSE); +*/ + "ŠJŽn", FALSE); /* Starting name, race, role, gender */ +/*JP Sprintf(buf, fmtstr, "name", plname); +*/ + Sprintf(buf, fmtstr, "–¼‘O", plname); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); +/*JP Sprintf(buf, fmtstr, "race", urace.noun); +*/ + Sprintf(buf, fmtstr, "Ží‘°", urace.noun); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); +/*JP Sprintf(buf, fmtstr, "role", +*/ + Sprintf(buf, fmtstr, "E‹Æ", (flags.initgend && urole.name.f) ? urole.name.f : urole.name.m); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); +/*JP Sprintf(buf, fmtstr, "gender", genders[flags.initgend].adj); +*/ + Sprintf(buf, fmtstr, "«•Ê", genders[flags.initgend].adj); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); /* Starting alignment */ +/*JP Sprintf(buf, fmtstr, "alignment", align_str(u.ualignbase[A_ORIGINAL])); +*/ + Sprintf(buf, fmtstr, "‘®«", align_str(u.ualignbase[A_ORIGINAL])); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); /* Current name, race, role, gender */ add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, "", FALSE); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings, +/*JP "Current", FALSE); +*/ + "Œ»Ý", FALSE); +/*JP Sprintf(buf, fmtstr, "race", Upolyd ? youmonst.data->mname : urace.noun); +*/ + Sprintf(buf, fmtstr, "Ží‘°", Upolyd ? youmonst.data->mname : urace.noun); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); if (Upolyd) { +/*JP Sprintf(buf, fmtstr, "role (base)", +*/ + Sprintf(buf, fmtstr, "E‹Æ(Šî–{)", (u.mfemale && urole.name.f) ? urole.name.f : urole.name.m); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); } else { +/*JP Sprintf(buf, fmtstr, "role", +*/ + Sprintf(buf, fmtstr, "E‹Æ", (flags.female && urole.name.f) ? urole.name.f : urole.name.m); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); } /* don't want poly_gender() here; it forces `2' for non-humanoids */ genidx = is_neuter(youmonst.data) ? 2 : flags.female; +/*JP Sprintf(buf, fmtstr, "gender", genders[genidx].adj); +*/ + Sprintf(buf, fmtstr, "«•Ê", genders[genidx].adj); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); if (Upolyd && (int) u.mfemale != genidx) { +/*JP Sprintf(buf, fmtstr, "gender (base)", genders[u.mfemale].adj); +*/ + Sprintf(buf, fmtstr, "«•Ê(Šî–{)", genders[u.mfemale].adj); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); } /* Current alignment */ +/*JP Sprintf(buf, fmtstr, "alignment", align_str(u.ualign.type)); +*/ + Sprintf(buf, fmtstr, "‘®«", align_str(u.ualign.type)); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); /* Deity list */ add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, "", FALSE); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings, +/*JP "Deities", FALSE); +*/ + "_", FALSE); +#if 0 /*JP*/ Sprintf(buf2, deity_fmtstr, align_gname(A_CHAOTIC), (u.ualignbase[A_ORIGINAL] == u.ualign.type && u.ualign.type == A_CHAOTIC) ? " (s,c)" : (u.ualignbase[A_ORIGINAL] == A_CHAOTIC) ? " (s)" : (u.ualign.type == A_CHAOTIC) ? " (c)" : ""); +#else + Sprintf(buf2, deity_fmtstr, align_gname(A_CHAOTIC), + (u.ualignbase[A_ORIGINAL] == u.ualign.type + && u.ualign.type == A_CHAOTIC) ? " (‰CŒ»)" + : (u.ualignbase[A_ORIGINAL] == A_CHAOTIC) ? " (‰)" + : (u.ualign.type == A_CHAOTIC) ? " (Œ»)" : ""); +#endif +/*JP Sprintf(buf, fmtstr, "Chaotic", buf2); +*/ + Sprintf(buf, fmtstr, "¬“×", buf2); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); +#if 0 /*JP*/ Sprintf(buf2, deity_fmtstr, align_gname(A_NEUTRAL), (u.ualignbase[A_ORIGINAL] == u.ualign.type && u.ualign.type == A_NEUTRAL) ? " (s,c)" : (u.ualignbase[A_ORIGINAL] == A_NEUTRAL) ? " (s)" : (u.ualign.type == A_NEUTRAL) ? " (c)" : ""); +#else + Sprintf(buf2, deity_fmtstr, align_gname(A_NEUTRAL), + (u.ualignbase[A_ORIGINAL] == u.ualign.type + && u.ualign.type == A_NEUTRAL) ? " (‰CŒ»)" + : (u.ualignbase[A_ORIGINAL] == A_NEUTRAL) ? " (‰)" + : (u.ualign.type == A_NEUTRAL) ? " (Œ»)" : ""); +#endif +/*JP Sprintf(buf, fmtstr, "Neutral", buf2); +*/ + Sprintf(buf, fmtstr, "’†—§", buf2); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); +#if 0 /*JP*/ Sprintf(buf2, deity_fmtstr, align_gname(A_LAWFUL), (u.ualignbase[A_ORIGINAL] == u.ualign.type && u.ualign.type == A_LAWFUL) ? " (s,c)" : (u.ualignbase[A_ORIGINAL] == A_LAWFUL) ? " (s)" : (u.ualign.type == A_LAWFUL) ? " (c)" : ""); +#else + Sprintf(buf2, deity_fmtstr, align_gname(A_LAWFUL), + (u.ualignbase[A_ORIGINAL] == u.ualign.type + && u.ualign.type == A_LAWFUL) ? " (‰CŒ»)" + : (u.ualignbase[A_ORIGINAL] == A_LAWFUL) ? " (‰)" + : (u.ualign.type == A_LAWFUL) ? " (Œ»)" : ""); +#endif +/*JP Sprintf(buf, fmtstr, "Lawful", buf2); +*/ + Sprintf(buf, fmtstr, "’˜", buf2); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, FALSE); +/*JP end_menu(tmpwin, "Base Attributes"); +*/ + end_menu(tmpwin, "Šî–{‘®«"); n = select_menu(tmpwin, PICK_NONE, &selected); destroy_nhwindow(tmpwin); return (boolean) (n != -1); @@ -2737,44 +3361,81 @@ int msgflag; /* for variant message phrasing */ { char *bp, buf[BUFSZ]; +/*JP Strcpy(buf, "hiding"); +*/ + Strcpy(buf, "‰B‚ê"); if (youmonst.m_ap_type != M_AP_NOTHING) { /* mimic; hero is only able to mimic a strange object or gold or hallucinatory alternative to gold, so we skip the details for the hypothetical furniture and monster cases */ +#if 0 /*JP*//*Œã‚ë‚ɉñ‚·*/ bp = eos(strcpy(buf, "mimicking")); +#endif if (youmonst.m_ap_type == M_AP_OBJECT) { +/*JP Sprintf(bp, " %s", an(simple_typename(youmonst.mappearance))); +*/ + Strcpy(buf, simple_typename(youmonst.mappearance)); } else if (youmonst.m_ap_type == M_AP_FURNITURE) { +/*JP Strcpy(bp, " something"); +*/ + Strcpy(buf, "‰½‚©"); } else if (youmonst.m_ap_type == M_AP_MONSTER) { +/*JP Strcpy(bp, " someone"); +*/ + Strcpy(buf, "‰½ŽÒ‚©"); } else { ; /* something unexpected; leave 'buf' as-is */ } +#if 1 /*JP*//*‚±‚±‚ŒljÁ*/ + Strcat(buf, "‚Ì‚Ó‚è‚ð‚µ"); +#endif } else if (u.uundetected) { bp = eos(buf); /* points past "hiding" */ if (youmonst.data->mlet == S_EEL) { if (is_pool(u.ux, u.uy)) +/*JP Sprintf(bp, " in the %s", waterbody_name(u.ux, u.uy)); +*/ + Sprintf(bp, "%s‚Ì’†‚É", waterbody_name(u.ux, u.uy)); } else if (hides_under(youmonst.data)) { struct obj *o = level.objects[u.ux][u.uy]; if (o) +/*JP Sprintf(bp, " underneath %s", ansimpleoname(o)); +*/ + Sprintf(bp, "%s‚̉º‚É", ansimpleoname(o)); } else if (is_clinger(youmonst.data) || Flying) { /* Flying: 'lurker above' hides on ceiling but doesn't cling */ +/*JP Sprintf(bp, " on the %s", ceiling(u.ux, u.uy)); +*/ + Sprintf(bp, "%s‚É", ceiling(u.ux, u.uy)); } else { /* on floor; is_hider() but otherwise not special: 'trapper' */ if (u.utrap && u.utraptype == TT_PIT) { struct trap *t = t_at(u.ux, u.uy); +#if 0 /*JP*/ Sprintf(bp, " in a %spit", (t && t->ttyp == SPIKED_PIT) ? "spiked " : ""); +#else + Sprintf(bp, "%s—Ž‚µŒŠ‚Ì’†‚É", + (t && t->ttyp == SPIKED_PIT) ? "ƒgƒQ‚¾‚炯‚Ì" : ""); +#endif } else +/*JP Sprintf(bp, " on the %s", surface(u.ux, u.uy)); +*/ + Sprintf(bp, "%s‚É", surface(u.ux, u.uy)); } +#if 1 /*JP*//*‚±‚±‚ŒljÁ*/ + Strcat(buf, "‰B‚ê"); +#endif } else { ; /* shouldn't happen; will result in generic "you are hiding" */ } @@ -2782,10 +3443,21 @@ int msgflag; /* for variant message phrasing */ if (via_enlghtmt) { int final = msgflag; /* 'final' is used by you_are() macro */ +/*JP you_are(buf, ""); +*/ + enl_msg(buf, "‚Ä‚¢‚é", "‚Ä‚¢‚½", "", ""); } else { /* for dohide(), when player uses '#monster' command */ +#if 0 /*JP*/ You("are %s %s.", msgflag ? "already" : "now", buf); +#else + if (msgflag) { + You("‚·‚Å‚É%s‚Ä‚¢‚éD", buf); + } else { + You("%s‚½D", buf); + } +#endif } } -- 2.11.0