Strcat(rumor_buf, xcrypt(line, xbuf));
} while (
count++ < 50 && exclude_cookie
+#if 0 /*JP*/
&& (strstri(rumor_buf, "fortune") || strstri(rumor_buf, "pity")));
+#else
+ && (strstri(rumor_buf, "\90è") || strstri(rumor_buf, "\82È\82ñ\82Ä\82±\82Æ\82¾")));
+#endif
(void) dlb_fclose(rumors);
if (count >= 50)
impossible("Can't find non-cookie rumor?");
else if (!in_mklev) /* avoid exercizing wisdom for graffiti */
exercise(A_WIS, (adjtruth > 0));
} else {
+/*JP
pline("Can't open rumors file!");
+*/
+ pline("rumors\83t\83@\83C\83\8b\82ª\8aJ\82¯\82È\82¢\81I");
true_rumor_size = -1; /* don't try to open it again */
}
/* this is safe either way, so do it always since we can't get the definition
int mechanism;
{
static const char fortune_msg[] =
+/*JP
"This cookie has a scrap of paper inside.";
+*/
+ "\82±\82Ì\83N\83b\83L\81[\82É\82Í\8e\86\90Ø\82ª\93ü\82Á\82Ä\82¢\82é\81D";
const char *line;
char buf[BUFSZ];
boolean reading = (mechanism == BY_COOKIE || mechanism == BY_PAPER);
else if (Blind) {
if (mechanism == BY_COOKIE)
pline(fortune_msg);
+/*JP
pline("What a pity that you cannot read it!");
+*/
+ pline("\82»\82ê\82ð\93Ç\82ß\82È\82¢\82È\82ñ\82Ä\8bC\82Ì\93Å\82È\81I");
return;
}
}
line = getrumor(truth, buf, reading ? FALSE : TRUE);
if (!*line)
+/*JP
line = "NetHack rumors file closed for renovation.";
+*/
+ line = "\89\\82Ì\90^\91\8a\82Í\8dü\90V\82Ì\82½\82ß\8bx\8a§\82µ\82Ä\82¢\82é\81D";
switch (mechanism) {
case BY_ORACLE:
/* Oracle delivers the rumor */
+#if 0 /*JP*/
pline("True to her word, the Oracle %ssays: ",
(!rn2(4) ? "offhandedly "
: (!rn2(3) ? "casually "
: (rn2(2) ? "nonchalantly " : ""))));
+#else
+ pline("\96ñ\91©\82Ç\82¨\82è\82É\81C\8c«\8eÒ\82Í%s\8fq\82×\82½:",
+ (!rn2(4) ? "\96³\91¢\8dì\82É"
+ : (!rn2(3) ? "\89½\8bC\82È\82"
+ : (rn2(2) ? "\96³\93Ú\92\85\82É" : ""))));
+#endif
verbalize1(line);
/* [WIS exercized by getrumor()] */
return;
pline(fortune_msg);
/* FALLTHRU */
case BY_PAPER:
+/*JP
pline("It reads:");
+*/
+ pline("\82»\82ê\82ð\93Ç\82ñ\82¾:");
break;
}
pline1(line);
if (delphi)
putstr(tmpwin, 0,
special
+/*JP
? "The Oracle scornfully takes all your money and says:"
+*/
+ ? "\8c«\8eÒ\82Í\8cy\95Ì\82µ\82½\82æ\82¤\82É\82 \82È\82½\82Ì\91S\82Ä\82Ì\82¨\8bà\82ð\8eó\82¯\82Æ\82è\81C\8fq\82×\82½\81F"
+/*JP
: "The Oracle meditates for a moment and then intones:");
+*/
+ : "\8c«\8eÒ\82Í\82µ\82Î\82ç\82\96»\91z\82µ\81C\89Ì\82¤\82æ\82¤\82É\98b\82µ\82½\81F");
else
+/*JP
putstr(tmpwin, 0, "The message reads:");
+*/
+ putstr(tmpwin, 0, "\83\81\83b\83Z\81[\83W:");
putstr(tmpwin, 0, "");
while (dlb_fgets(line, COLNO, oracles) && strcmp(line, "---\n")) {
destroy_nhwindow(tmpwin);
(void) dlb_fclose(oracles);
} else {
+/*JP
pline("Can't open oracles file!");
+*/
+ pline("oracles\83t\83@\83C\83\8b\82ð\8aJ\82¯\82È\82¢\81I");
oracle_flg = -1; /* don't try to open it again */
}
}
umoney = money_cnt(invent);
if (!oracl) {
+/*JP
There("is no one here to consult.");
+*/
+ pline("\82±\82±\82É\82Í\90_\91õ\82ð\8fq\82×\82é\90l\82Í\82¢\82È\82¢\81D");
return 0;
} else if (!oracl->mpeaceful) {
+/*JP
pline("%s is in no mood for consultations.", Monnam(oracl));
+*/
+ pline("\8c«\8eÒ\82Í\90_\91õ\82ð\8d\90\82°\82Ä\82\82ê\82é\95µ\88Í\8bC\82Å\82Í\82È\82¢\81D");
return 0;
} else if (!umoney) {
+/*JP
You("have no money.");
+*/
+ You("\82¨\8bà\82ª\82È\82¢\81D");
return 0;
}
+/*JP
Sprintf(qbuf, "\"Wilt thou settle for a minor consultation?\" (%d %s)",
+*/
+ Sprintf(qbuf, "\81u\93ð\81C\92á\88Ê\82Ì\90_\91õ\82ð\8eó\82¯\82é\82©\81H\81v(%d%s)",
minor_cost, currency((long) minor_cost));
switch (ynq(qbuf)) {
default:
return 0;
case 'y':
if (umoney < (long) minor_cost) {
+/*JP
You("don't even have enough money for that!");
+*/
+ You("\82±\82ê\82É\95¥\82¦\82é\82¾\82¯\82Ì\82¨\8bà\82·\82ç\8e\9d\82Á\82Ä\82¢\82È\82¢\81I");
return 0;
}
u_pay = minor_cost;
if (umoney <= (long) minor_cost /* don't even ask */
|| (oracle_cnt == 1 || oracle_flg < 0))
return 0;
- Sprintf(qbuf, "\"Then dost thou desire a major one?\" (%d %s)",
+ Sprintf(qbuf, "\81u\82È\82ç\82Î\93ð\81C\8d\82\88Ê\82Ì\90_\91õ\82ð\8eó\82¯\82é\82©\81H\81v(%d%s)",
major_cost, currency((long) major_cost));
if (yn(qbuf) != 'y')
return 0;