X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fcmd4.c;h=b0f89248e714c27f111aa8b12ab6194f54cedc30;hb=eaecfec55c7d0b370f84b1a613dbb7bd44e533b0;hp=46578b3aaba2b9d3cc568d4bd099308972625a4a;hpb=5903fcf4619483f306e89e7ca24bfda5e0000fc1;p=hengband%2Fhengband.git diff --git a/src/cmd4.c b/src/cmd4.c index 46578b3aa..b0f89248e 100644 --- a/src/cmd4.c +++ b/src/cmd4.c @@ -1,23 +1,18 @@ -/* File: cmd4.c */ - -/* +/*! + * @file cmd4.c + * @brief プレイヤーのインターフェイスに関するコマンドの実装 / Interface commands + * @date 2014/01/02 + * @author + *
  * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
- *
  * This software may be copied and distributed for educational, research,
  * and not for profit purposes provided that this copyright and statement
  * are included in all such copies.  Other copyrights may also apply.
- */
-
-/* Purpose: Interface commands */
-
-#include "angband.h"
-
-
-
-/*
+ * 
+ * @details + *
  * A set of functions to maintain automatic dumps of various kinds.
  * -Mogami-
- *
  * remove_auto_dump(orig_file, mark)
  *     Remove the old automatic dump of type "mark".
  * auto_dump_printf(fmt, ...)
@@ -26,24 +21,29 @@
  *     Open a file, remove old dump, and add new header.
  * close_auto_dump(void)
  *     Add a footer, and close the file.
- *
  *    The dump commands of original Angband simply add new lines to
  * existing files; these files will become bigger and bigger unless
  * an user deletes some or all of these files by hand at some
  * point.
- *
  *     These three functions automatically delete old dumped lines 
  * before adding new ones.  Since there are various kinds of automatic 
  * dumps in a single file, we add a header and a footer with a type 
  * name for every automatic dump, and kill old lines only when the 
  * lines have the correct type of header and footer.
- *
  *     We need to be quite paranoid about correctness; the user might 
  * (mistakenly) edit the file by hand, and see all their work come
  * to nothing on the next auto dump otherwise.  The current code only 
  * detects changes by noting inconsistencies between the actual number 
  * of lines and the number written in the footer.  Note that this will 
  * not catch single-line edits.
+ * 
+ */ + +#include "angband.h" + + + +/* */ /* @@ -59,8 +59,11 @@ static FILE *auto_dump_stream; static cptr auto_dump_mark; static int auto_dump_line_num; -/* + +/*! + * @brief prf出力内容を消去する / * Remove old lines automatically generated before. + * @param orig_file 消去を行うファイル名 */ static void remove_auto_dump(cptr orig_file) { @@ -94,7 +97,7 @@ static void remove_auto_dump(cptr orig_file) if (!tmp_fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", tmp_file); + msg_format("一時ファイル %s を作成できませんでした。", tmp_file); #else msg_format("Failed to create temporary file %s.", tmp_file); #endif @@ -223,8 +226,10 @@ static void remove_auto_dump(cptr orig_file) } -/* +/*! + * @brief prfファイルのフォーマットに従った内容を出力する / * Dump a formatted line, using "vstrnfmt()". + * @param fmt 出力内容 */ static void auto_dump_printf(cptr fmt, ...) { @@ -253,8 +258,12 @@ static void auto_dump_printf(cptr fmt, ...) } -/* - * Open file to append auto dump. +/*! + * @brief prfファイルをファイルオープンする / + * Open file to append auto dump. + * @param buf ファイル名 + * @param mark 出力するヘッダマーク + * @return ファイルポインタを取得できたらTRUEを返す */ static bool open_auto_dump(cptr buf, cptr mark) { @@ -276,7 +285,7 @@ static bool open_auto_dump(cptr buf, cptr mark) /* Failure */ if (!auto_dump_stream) { #ifdef JP - msg_format("%s ¤ò³«¤¯¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", buf); + msg_format("%s を開くことができませんでした。", buf); #else msg_format("Failed to open %s.", buf); #endif @@ -293,8 +302,8 @@ static bool open_auto_dump(cptr buf, cptr mark) auto_dump_line_num = 0; #ifdef JP - auto_dump_printf("# *·Ù¹ð!!* °Ê¹ß¤Î¹Ô¤Ï¼«Æ°À¸À®¤µ¤ì¤¿¤â¤Î¤Ç¤¹¡£\n"); - auto_dump_printf("# *·Ù¹ð!!* ¸å¤Ç¼«Æ°Åª¤Ëºï½ü¤µ¤ì¤ë¤Î¤ÇÊÔ½¸¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£\n"); + auto_dump_printf("# *警告!!* 以降の行は自動生成されたものです。\n"); + auto_dump_printf("# *警告!!* 後で自動的に削除されるので編集しないでください。\n"); #else auto_dump_printf("# *Warning!* The lines below are an automatic dump.\n"); auto_dump_printf("# Don't edit them; changes will be deleted and replaced automatically.\n"); @@ -304,8 +313,10 @@ static bool open_auto_dump(cptr buf, cptr mark) return TRUE; } -/* - * Append foot part and close auto dump. +/*! + * @brief prfファイルをファイルクローズする / + * Append foot part and close auto dump. + * @return なし */ static void close_auto_dump(void) { @@ -315,8 +326,8 @@ static void close_auto_dump(void) sprintf(footer_mark_str, auto_dump_footer, auto_dump_mark); #ifdef JP - auto_dump_printf("# *·Ù¹ð!!* °Ê¾å¤Î¹Ô¤Ï¼«Æ°À¸À®¤µ¤ì¤¿¤â¤Î¤Ç¤¹¡£\n"); - auto_dump_printf("# *·Ù¹ð!!* ¸å¤Ç¼«Æ°Åª¤Ëºï½ü¤µ¤ì¤ë¤Î¤ÇÊÔ½¸¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£\n"); + auto_dump_printf("# *警告!!* 以上の行は自動生成されたものです。\n"); + auto_dump_printf("# *警告!!* 後で自動的に削除されるので編集しないでください。\n"); #else auto_dump_printf("# *Warning!* The lines above are an automatic dump.\n"); auto_dump_printf("# Don't edit them; changes will be deleted and replaced automatically.\n"); @@ -333,8 +344,11 @@ static void close_auto_dump(void) #ifndef JP -/* - * Return suffix of ordinal number + +/*! + * @brief Return suffix of ordinal number + * @param num number + * @return pointer of suffix string. */ cptr get_ordinal_number_suffix(int num) { @@ -354,8 +368,13 @@ cptr get_ordinal_number_suffix(int num) #endif -/* - * Take note to the diary. +/*! + * @brief 日記にメッセージを追加する / + * Take note to the diary. + * @param type 日記内容のID + * @param num 日記内容のIDに応じた数値 + * @param note 日記内容のIDに応じた文字列参照ポインタ + * @return エラーID */ errr do_cmd_write_nikki(int type, int num, cptr note) { @@ -386,7 +405,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) p_ptr->inside_quest = (quest[num].type == QUEST_TYPE_RANDOM) ? 0 : num; /* Get the quest text */ - init_flags = INIT_ASSIGN; + init_flags = INIT_NAME_ONLY; process_dungeon_file("q_info.txt", 0, 0, 0, 0); @@ -413,7 +432,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) if (!fff) { #ifdef JP - msg_format("%s ¤ò³«¤¯¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£¥×¥ì¥¤µ­Ï¿¤ò°ì»þÄä»ß¤·¤Þ¤¹¡£", buf); + msg_format("%s を開くことができませんでした。プレイ記録を一時停止します。", buf); #else msg_format("Failed to open %s. Play-Record is disabled temporally.", buf); #endif @@ -428,27 +447,27 @@ errr do_cmd_write_nikki(int type, int num, cptr note) { if (p_ptr->inside_arena) #ifdef JP - note_level = "¥¢¥ê¡¼¥Ê:"; + note_level = "アリーナ:"; #else note_level = "Arane:"; #endif else if (!dun_level) #ifdef JP - note_level = "ÃϾå:"; + note_level = "地上:"; #else note_level = "Surface:"; #endif else if (q_idx && (is_fixed_quest_idx(q_idx) && !((q_idx == QUEST_OBERON) || (q_idx == QUEST_SERPENT)))) #ifdef JP - note_level = "¥¯¥¨¥¹¥È:"; + note_level = "クエスト:"; #else note_level = "Quest:"; #endif else { #ifdef JP - sprintf(note_level_buf, "%d³¬(%s):", dun_level, d_name+d_info[dungeon_type].name); + sprintf(note_level_buf, "%d階(%s):", dun_level, d_name+d_info[dungeon_type].name); #else sprintf(note_level_buf, "%s L%d:", d_name+d_info[dungeon_type].name, dun_level); #endif @@ -461,8 +480,8 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_HIGAWARI: { #ifdef JP - if (day < MAX_DAYS) fprintf(fff, "%dÆüÌÜ\n", day); - else fputs("*****ÆüÌÜ\n", fff); + if (day < MAX_DAYS) fprintf(fff, "%d日目\n", day); + else fputs("*****日目\n", fff); #else if (day < MAX_DAYS) fprintf(fff, "Day %d\n", day); else fputs("Day *****\n", fff); @@ -484,7 +503,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_ART: { #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤òȯ¸«¤·¤¿¡£\n", hour, min, note_level, note); + fprintf(fff, " %2d:%02d %20s %sを発見した。\n", hour, min, note_level, note); #else fprintf(fff, " %2d:%02d %20s discovered %s.\n", hour, min, note_level, note); #endif @@ -493,7 +512,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_UNIQUE: { #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤òÅݤ·¤¿¡£\n", hour, min, note_level, note); + fprintf(fff, " %2d:%02d %20s %sを倒した。\n", hour, min, note_level, note); #else fprintf(fff, " %2d:%02d %20s defeated %s.\n", hour, min, note_level, note); #endif @@ -503,7 +522,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) { if (quest[num].flags & QUEST_FLAG_SILENT) break; #ifdef JP - fprintf(fff, " %2d:%02d %20s ¥¯¥¨¥¹¥È¡Ö%s¡×¤òãÀ®¤·¤¿¡£\n", hour, min, note_level, quest[num].name); + fprintf(fff, " %2d:%02d %20s クエスト「%s」を達成した。\n", hour, min, note_level, quest[num].name); #else fprintf(fff, " %2d:%02d %20s completed quest '%s'.\n", hour, min, note_level, quest[num].name); #endif @@ -513,7 +532,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) { if (quest[num].flags & QUEST_FLAG_SILENT) break; #ifdef JP - fprintf(fff, " %2d:%02d %20s ¥¯¥¨¥¹¥È¡Ö%s¡×¤«¤éÌ¿¤«¤é¤¬¤éƨ¤²µ¢¤Ã¤¿¡£\n", hour, min, note_level, quest[num].name); + fprintf(fff, " %2d:%02d %20s クエスト「%s」から命からがら逃げ帰った。\n", hour, min, note_level, quest[num].name); #else fprintf(fff, " %2d:%02d %20s run away from quest '%s'.\n", hour, min, note_level, quest[num].name); #endif @@ -524,7 +543,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) char name[80]; strcpy(name, r_name+r_info[quest[num].r_idx].name); #ifdef JP - fprintf(fff, " %2d:%02d %20s ¥é¥ó¥À¥à¥¯¥¨¥¹¥È(%s)¤òãÀ®¤·¤¿¡£\n", hour, min, note_level, name); + fprintf(fff, " %2d:%02d %20s ランダムクエスト(%s)を達成した。\n", hour, min, note_level, name); #else fprintf(fff, " %2d:%02d %20s completed random quest '%s'\n", hour, min, note_level, name); #endif @@ -535,7 +554,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) char name[80]; strcpy(name, r_name+r_info[quest[num].r_idx].name); #ifdef JP - fprintf(fff, " %2d:%02d %20s ¥é¥ó¥À¥à¥¯¥¨¥¹¥È(%s)¤«¤éƨ¤²½Ð¤·¤¿¡£\n", hour, min, note_level, name); + fprintf(fff, " %2d:%02d %20s ランダムクエスト(%s)から逃げ出した。\n", hour, min, note_level, name); #else fprintf(fff, " %2d:%02d %20s ran away from quest '%s'.\n", hour, min, note_level, name); #endif @@ -544,7 +563,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_MAXDEAPTH: { #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤ÎºÇ¿¼³¬%d³¬¤ËÅþ㤷¤¿¡£\n", hour, min, note_level, d_name+d_info[dungeon_type].name, num); + fprintf(fff, " %2d:%02d %20s %sの最深階%d階に到達した。\n", hour, min, note_level, d_name+d_info[dungeon_type].name, num); #else fprintf(fff, " %2d:%02d %20s reached level %d of %s for the first time.\n", hour, min, note_level, num, d_name+d_info[dungeon_type].name); #endif @@ -553,7 +572,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_TRUMP: { #ifdef JP - fprintf(fff, " %2d:%02d %20s %s%s¤ÎºÇ¿¼³¬¤ò%d³¬¤Ë¥»¥Ã¥È¤·¤¿¡£\n", hour, min, note_level, note, d_name + d_info[num].name, max_dlv[num]); + fprintf(fff, " %2d:%02d %20s %s%sの最深階を%d階にセットした。\n", hour, min, note_level, note, d_name + d_info[num].name, max_dlv[num]); #else fprintf(fff, " %2d:%02d %20s reset recall level of %s to %d %s.\n", hour, min, note_level, d_name + d_info[num].name, max_dlv[num], note); #endif @@ -566,7 +585,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) && !((q_idx == QUEST_OBERON) || (q_idx == QUEST_SERPENT)))) { #ifdef JP - to = "ÃϾå"; + to = "地上"; #else to = "the surface"; #endif @@ -574,8 +593,8 @@ errr do_cmd_write_nikki(int type, int num, cptr note) else { #ifdef JP - if (!(dun_level+num)) to = "ÃϾå"; - else to = format("%d³¬", dun_level+num); + if (!(dun_level+num)) to = "地上"; + else to = format("%d階", dun_level+num); #else if (!(dun_level+num)) to = "the surface"; else to = format("level %d", dun_level+num); @@ -583,7 +602,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) } #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤Ø%s¡£\n", hour, min, note_level, to, note); + fprintf(fff, " %2d:%02d %20s %sへ%s。\n", hour, min, note_level, to, note); #else fprintf(fff, " %2d:%02d %20s %s %s.\n", hour, min, note_level, note, to); #endif @@ -593,13 +612,13 @@ errr do_cmd_write_nikki(int type, int num, cptr note) { if (!num) #ifdef JP - fprintf(fff, " %2d:%02d %20s µ¢´Ô¤ò»È¤Ã¤Æ%s¤Î%d³¬¤Ø²¼¤ê¤¿¡£\n", hour, min, note_level, d_name+d_info[dungeon_type].name, max_dlv[dungeon_type]); + fprintf(fff, " %2d:%02d %20s 帰還を使って%sの%d階へ下りた。\n", hour, min, note_level, d_name+d_info[dungeon_type].name, max_dlv[dungeon_type]); #else fprintf(fff, " %2d:%02d %20s recalled to dungeon level %d of %s.\n", hour, min, note_level, max_dlv[dungeon_type], d_name+d_info[dungeon_type].name); #endif else #ifdef JP - fprintf(fff, " %2d:%02d %20s µ¢´Ô¤ò»È¤Ã¤ÆÃϾå¤Ø¤ÈÌá¤Ã¤¿¡£\n", hour, min, note_level); + fprintf(fff, " %2d:%02d %20s 帰還を使って地上へと戻った。\n", hour, min, note_level); #else fprintf(fff, " %2d:%02d %20s recalled from dungeon to surface.\n", hour, min, note_level); #endif @@ -609,7 +628,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) { if (quest[num].flags & QUEST_FLAG_SILENT) break; #ifdef JP - fprintf(fff, " %2d:%02d %20s ¥¯¥¨¥¹¥È¡Ö%s¡×¤Ø¤ÈÆÍÆþ¤·¤¿¡£\n", hour, min, note_level, quest[num].name); + fprintf(fff, " %2d:%02d %20s クエスト「%s」へと突入した。\n", hour, min, note_level, quest[num].name); #else fprintf(fff, " %2d:%02d %20s entered the quest '%s'.\n", hour, min, note_level, quest[num].name); #endif @@ -618,7 +637,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_TELE_LEV: { #ifdef JP - fprintf(fff, " %2d:%02d %20s ¥ì¥Ù¥ë¡¦¥Æ¥ì¥Ý¡¼¥È¤Çæ½Ð¤·¤¿¡£\n", hour, min, note_level); + fprintf(fff, " %2d:%02d %20s レベル・テレポートで脱出した。\n", hour, min, note_level); #else fprintf(fff, " %2d:%02d %20s Got out using teleport level.\n", hour, min, note_level); #endif @@ -627,7 +646,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_BUY: { #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤ò¹ØÆþ¤·¤¿¡£\n", hour, min, note_level, note); + fprintf(fff, " %2d:%02d %20s %sを購入した。\n", hour, min, note_level, note); #else fprintf(fff, " %2d:%02d %20s bought %s.\n", hour, min, note_level, note); #endif @@ -636,7 +655,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_SELL: { #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤òÇäµÑ¤·¤¿¡£\n", hour, min, note_level, note); + fprintf(fff, " %2d:%02d %20s %sを売却した。\n", hour, min, note_level, note); #else fprintf(fff, " %2d:%02d %20s sold %s.\n", hour, min, note_level, note); #endif @@ -647,7 +666,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) if (num < 0) { #ifdef JP - fprintf(fff, " %2d:%02d %20s Æ®µ»¾ì¤Î%d²óÀï¤Ç¡¢%s¤ÎÁ°¤ËÇÔ¤ìµî¤Ã¤¿¡£\n", hour, min, note_level, -num, note); + fprintf(fff, " %2d:%02d %20s 闘技場の%d回戦で、%sの前に敗れ去った。\n", hour, min, note_level, -num, note); #else int n = -num; fprintf(fff, " %2d:%02d %20s beaten by %s in the %d%s fight.\n", hour, min, note_level, note, n, get_ordinal_number_suffix(n)); @@ -655,14 +674,14 @@ errr do_cmd_write_nikki(int type, int num, cptr note) break; } #ifdef JP - fprintf(fff, " %2d:%02d %20s Æ®µ»¾ì¤Î%d²óÀï(%s)¤Ë¾¡Íø¤·¤¿¡£\n", hour, min, note_level, num, note); + fprintf(fff, " %2d:%02d %20s 闘技場の%d回戦(%s)に勝利した。\n", hour, min, note_level, num, note); #else fprintf(fff, " %2d:%02d %20s won the %d%s fight (%s).\n", hour, min, note_level, num, get_ordinal_number_suffix(num), note); #endif if (num == MAX_ARENA_MONS) { #ifdef JP - fprintf(fff, " Æ®µ»¾ì¤Î¤¹¤Ù¤Æ¤ÎŨ¤Ë¾¡Íø¤·¡¢¥Á¥ã¥ó¥Ô¥ª¥ó¤È¤Ê¤Ã¤¿¡£\n"); + fprintf(fff, " 闘技場のすべての敵に勝利し、チャンピオンとなった。\n"); #else fprintf(fff, " won all fight to become a Chanpion.\n"); #endif @@ -673,7 +692,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_HANMEI: { #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤ò¼±Ê̤·¤¿¡£\n", hour, min, note_level, note); + fprintf(fff, " %2d:%02d %20s %sを識別した。\n", hour, min, note_level, note); #else fprintf(fff, " %2d:%02d %20s identified %s.\n", hour, min, note_level, note); #endif @@ -684,19 +703,19 @@ errr do_cmd_write_nikki(int type, int num, cptr note) cptr to; if (!dun_level) #ifdef JP - to = "ÃϾå"; + to = "地上"; #else to = "the surface"; #endif else #ifdef JP - to = format("%d³¬(%s)", dun_level, d_name+d_info[dungeon_type].name); + to = format("%d階(%s)", dun_level, d_name+d_info[dungeon_type].name); #else to = format("level %d of %s", dun_level, d_name+d_info[dungeon_type].name); #endif #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤Ø¤È¥¦¥£¥¶¡¼¥É¡¦¥Æ¥ì¥Ý¡¼¥È¤Ç°ÜÆ°¤·¤¿¡£\n", hour, min, note_level, to); + fprintf(fff, " %2d:%02d %20s %sへとウィザード・テレポートで移動した。\n", hour, min, note_level, to); #else fprintf(fff, " %2d:%02d %20s wizard-teleport to %s.\n", hour, min, note_level, to); #endif @@ -707,19 +726,19 @@ errr do_cmd_write_nikki(int type, int num, cptr note) cptr to; if (!dun_level) #ifdef JP - to = "ÃϾå"; + to = "地上"; #else to = "the surface"; #endif else #ifdef JP - to = format("%d³¬(%s)", dun_level, d_name+d_info[dungeon_type].name); + to = format("%d階(%s)", dun_level, d_name+d_info[dungeon_type].name); #else to = format("level %d of %s", dun_level, d_name+d_info[dungeon_type].name); #endif #ifdef JP - fprintf(fff, " %2d:%02d %20s %s¤Ø¤È¥Ñ¥¿¡¼¥ó¤ÎÎϤǰÜÆ°¤·¤¿¡£\n", hour, min, note_level, to); + fprintf(fff, " %2d:%02d %20s %sへとパターンの力で移動した。\n", hour, min, note_level, to); #else fprintf(fff, " %2d:%02d %20s used Pattern to teleport to %s.\n", hour, min, note_level, to); #endif @@ -728,7 +747,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note) case NIKKI_LEVELUP: { #ifdef JP - fprintf(fff, " %2d:%02d %20s ¥ì¥Ù¥ë¤¬%d¤Ë¾å¤¬¤Ã¤¿¡£\n", hour, min, note_level, num); + fprintf(fff, " %2d:%02d %20s レベルが%dに上がった。\n", hour, min, note_level, num); #else fprintf(fff, " %2d:%02d %20s reached player level %d.\n", hour, min, note_level, num); #endif @@ -753,105 +772,105 @@ errr do_cmd_write_nikki(int type, int num, cptr note) { case RECORD_NAMED_PET_NAME: #ifdef JP - fprintf(fff, "%s¤òι¤Îͧ¤Ë¤¹¤ë¤³¤È¤Ë·è¤á¤¿¡£\n", note); + fprintf(fff, "%sを旅の友にすることに決めた。\n", note); #else fprintf(fff, "decided to travel together with %s.\n", note); #endif break; case RECORD_NAMED_PET_UNNAME: #ifdef JP - fprintf(fff, "%s¤Î̾Á°¤ò¾Ã¤·¤¿¡£\n", note); + fprintf(fff, "%sの名前を消した。\n", note); #else fprintf(fff, "unnamed %s.\n", note); #endif break; case RECORD_NAMED_PET_DISMISS: #ifdef JP - fprintf(fff, "%s¤ò²òÊü¤·¤¿¡£\n", note); + fprintf(fff, "%sを解放した。\n", note); #else fprintf(fff, "dismissed %s.\n", note); #endif break; case RECORD_NAMED_PET_DEATH: #ifdef JP - fprintf(fff, "%s¤¬»à¤ó¤Ç¤·¤Þ¤Ã¤¿¡£\n", note); + fprintf(fff, "%sが死んでしまった。\n", note); #else fprintf(fff, "%s died.\n", note); #endif break; case RECORD_NAMED_PET_MOVED: #ifdef JP - fprintf(fff, "%s¤ò¤ª¤¤¤ÆÊ̤ΥޥåפذÜÆ°¤·¤¿¡£\n", note); + fprintf(fff, "%sをおいて別のマップへ移動した。\n", note); #else fprintf(fff, "moved to another map leaving %s behind.\n", note); #endif break; case RECORD_NAMED_PET_LOST_SIGHT: #ifdef JP - fprintf(fff, "%s¤È¤Ï¤°¤ì¤Æ¤·¤Þ¤Ã¤¿¡£\n", note); + fprintf(fff, "%sとはぐれてしまった。\n", note); #else fprintf(fff, "lost sight of %s.\n", note); #endif break; case RECORD_NAMED_PET_DESTROY: #ifdef JP - fprintf(fff, "%s¤¬*Ç˲õ*¤Ë¤è¤Ã¤Æ¾Ã¤¨µî¤Ã¤¿¡£\n", note); + fprintf(fff, "%sが*破壊*によって消え去った。\n", note); #else fprintf(fff, "%s was made disappeared by *destruction*.\n", note); #endif break; case RECORD_NAMED_PET_EARTHQUAKE: #ifdef JP - fprintf(fff, "%s¤¬´äÀФ˲¡¤·ÄÙ¤µ¤ì¤¿¡£\n", note); + fprintf(fff, "%sが岩石に押し潰された。\n", note); #else fprintf(fff, "%s was crushed by falling rocks.\n", note); #endif break; case RECORD_NAMED_PET_GENOCIDE: #ifdef JP - fprintf(fff, "%s¤¬Ëõ»¦¤Ë¤è¤Ã¤Æ¾Ã¤¨µî¤Ã¤¿¡£\n", note); + fprintf(fff, "%sが抹殺によって消え去った。\n", note); #else fprintf(fff, "%s was made disappeared by genocide.\n", note); #endif break; case RECORD_NAMED_PET_WIZ_ZAP: #ifdef JP - fprintf(fff, "%s¤¬¥Ç¥Ð¥Ã¥°¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¾Ã¤¨µî¤Ã¤¿¡£\n", note); + fprintf(fff, "%sがデバッグコマンドによって消え去った。\n", note); #else fprintf(fff, "%s was removed by debug command.\n", note); #endif break; case RECORD_NAMED_PET_TELE_LEVEL: #ifdef JP - fprintf(fff, "%s¤¬¥Æ¥ì¥Ý¡¼¥È¡¦¥ì¥Ù¥ë¤Ë¤è¤Ã¤Æ¾Ã¤¨µî¤Ã¤¿¡£\n", note); + fprintf(fff, "%sがテレポート・レベルによって消え去った。\n", note); #else fprintf(fff, "%s was made disappeared by teleport level.\n", note); #endif break; case RECORD_NAMED_PET_BLAST: #ifdef JP - fprintf(fff, "%s¤òÇúÇˤ·¤¿¡£\n", note); + fprintf(fff, "%sを爆破した。\n", note); #else fprintf(fff, "blasted %s.\n", note); #endif break; case RECORD_NAMED_PET_HEAL_LEPER: #ifdef JP - fprintf(fff, "%s¤Îɵ¤¤¬¼£¤ê餫¤é³°¤ì¤¿¡£\n", note); + fprintf(fff, "%sの病気が治り旅から外れた。\n", note); #else fprintf(fff, "%s was healed and left.\n", note); #endif break; case RECORD_NAMED_PET_COMPACT: #ifdef JP - fprintf(fff, "%s¤¬¥â¥ó¥¹¥¿¡¼¾ðÊ󰵽̤ˤè¤Ã¤Æ¾Ã¤¨µî¤Ã¤¿¡£\n", note); + fprintf(fff, "%sがモンスター情報圧縮によって消え去った。\n", note); #else fprintf(fff, "%s was made disappeared by compacting monsters.\n", note); #endif break; case RECORD_NAMED_PET_LOSE_PARENT: #ifdef JP - fprintf(fff, "%s¤Î¾¤´­¼Ô¤¬´û¤Ë¤¤¤Ê¤¤¤¿¤á¾Ã¤¨µî¤Ã¤¿¡£\n", note); + fprintf(fff, "%sの召喚者が既にいないため消え去った。\n", note); #else fprintf(fff, "%s disappeared because there does not exist summoner.\n", note); #endif @@ -876,6 +895,10 @@ errr do_cmd_write_nikki(int type, int num, cptr note) #define MAX_SUBTITLE (sizeof(subtitle)/sizeof(subtitle[0])) +/*! + * @brief 日記のタイトル表記と内容出力 / + * @return なし + */ static void do_cmd_disp_nikki(void) { char nikki_title[256]; @@ -883,36 +906,36 @@ static void do_cmd_disp_nikki(void) char buf[1024]; char tmp[80]; #ifdef JP - static const char subtitle[][30] = {"ºÇ¶¯¤ÎÆùÂΤòµá¤á¤Æ", - "¿ÍÀ¸¤½¤ì¤Ï¤Ï¤«¤Ê¤¤", - "ÌÀÆü¤Ë¸þ¤«¤Ã¤Æ", - "꤫¤é¤Ü¤¿¤â¤Á", - "¤¢¤È¤Îº×¤ê", - "¤½¤ì¤Ï¤¤¤¤¹Í¤¨¤À", - "²¿¤È¤Ç¤â¸À¤¨", - "ÅƤˤâ³Ñ¤Ë¤â", - "¥¦¥½¤À¤±¤É", - "¤â¤Ï¤ä¤³¤ì¤Þ¤Ç", - "¤Ê¤ó¤Ç¤³¤¦¤Ê¤ë¤Î", - "¤½¤ì¤Ï̵Íý¤À", - "Åݤ¹¤Ù¤­Å¨¤Ï¥²¡û¥Ä", - "¤ó¡Á¡©Ê¹¤³¤¨¤ó¤Ê¤¡", - "¥ª¥ì¤Î̾¤ò¸À¤Ã¤Æ¤ß¤í", - "Ƭ¤¬ÊѤˤʤäÁ¤ã¤Ã¤¿", - "¸ß´¹¤·¤Þ¤»¤ó", - "¤»¤Ã¤«¤¯¤À¤«¤é", - "¤Þ¤À¤Þ¤À´Å¤¤¤Í", - "¤à¤´¤¤¤à¤´¤¹¤®¤ë", - "¤³¤ó¤Ê¤â¤ó¤¸¤ã¤Ê¤¤", - "¤À¤á¤À¤³¤ê¤ã", - "¼¡¤¤¤Ã¤Æ¤ß¤è¤¦", - "¤Á¤ç¤Ã¤È¤À¤±¤è", - "°¥¤·¤­ËÁ¸±¼Ô", - "Ìî˾¤Î²Ì¤Æ", - "̵¸ÂÃϹö", - "¿À¤Ë·ö²Þ¤òÇä¤ë¼Ô", - "̤ÃΤÎÀ¤³¦¤Ø", - "ºÇ¹â¤ÎƬǾ¤òµá¤á¤Æ"}; + static const char subtitle[][30] = {"最強の肉体を求めて", + "人生それははかない", + "明日に向かって", + "棚からぼたもち", + "あとの祭り", + "それはいい考えだ", + "何とでも言え", + "兎にも角にも", + "ウソだけど", + "もはやこれまで", + "なんでこうなるの", + "それは無理だ", + "倒すべき敵はゲ○ツ", + "ん~?聞こえんなぁ", + "オレの名を言ってみろ", + "頭が変になっちゃった", + "互換しません", + "せっかくだから", + "まだまだ甘いね", + "むごいむごすぎる", + "こんなもんじゃない", + "だめだこりゃ", + "次いってみよう", + "ちょっとだけよ", + "哀しき冒険者", + "野望の果て", + "無限地獄", + "神に喧嘩を売る者", + "未知の世界へ", + "最高の頭脳を求めて"}; #else static const char subtitle[][51] ={"Quest of The World's Toughest Body", "Attack is the best form of defence.", @@ -964,8 +987,8 @@ static void do_cmd_disp_nikki(void) else strcpy(tmp,subtitle[randint0(MAX_SUBTITLE-2)+1]); #ifdef JP - sprintf(nikki_title, "¡Ö%s%s%s¤ÎÅÁÀâ -%s-¡×", - ap_ptr->title, ap_ptr->no ? "¤Î" : "", player_name, tmp); + sprintf(nikki_title, "「%s%s%sの伝説 -%s-」", + ap_ptr->title, ap_ptr->no ? "の" : "", player_name, tmp); #else sprintf(nikki_title, "Legend of %s %s '%s'", ap_ptr->title, player_name, tmp); @@ -975,13 +998,17 @@ static void do_cmd_disp_nikki(void) show_file(FALSE, buf, nikki_title, -1, 0); } +/*! + * @brief 日記に任意の内容を表記するコマンドのメインルーチン / + * @return なし + */ static void do_cmd_bunshou(void) { char tmp[80] = "\0"; char bunshou[80] = "\0"; #ifdef JP - if (get_string("ÆâÍÆ: ", tmp, 79)) + if (get_string("内容: ", tmp, 79)) #else if (get_string("diary note: ", tmp, 79)) #endif @@ -992,6 +1019,10 @@ static void do_cmd_bunshou(void) } } +/*! + * @brief 最後に取得したアイテムの情報を日記に追加するメインルーチン / + * @return なし + */ static void do_cmd_last_get(void) { char buf[256]; @@ -1000,7 +1031,7 @@ static void do_cmd_last_get(void) if (record_o_name[0] == '\0') return; #ifdef JP - sprintf(buf,"%s¤ÎÆþ¼ê¤òµ­Ï¿¤·¤Þ¤¹¡£",record_o_name); + sprintf(buf,"%sの入手を記録します。",record_o_name); #else sprintf(buf,"Do you really want to record getting %s? ",record_o_name); #endif @@ -1009,7 +1040,7 @@ static void do_cmd_last_get(void) turn_tmp = turn; turn = record_turn; #ifdef JP - sprintf(buf,"%s¤ò¼ê¤ËÆþ¤ì¤¿¡£", record_o_name); + sprintf(buf,"%sを手に入れた。", record_o_name); #else sprintf(buf,"descover %s.", record_o_name); #endif @@ -1024,7 +1055,7 @@ static void do_cmd_erase_nikki(void) FILE *fff = NULL; #ifdef JP - if (!get_check("ËÜÅö¤Ëµ­Ï¿¤ò¾Ãµî¤·¤Þ¤¹¤«¡©")) return; + if (!get_check("本当に記録を消去しますか?")) return; #else if (!get_check("Do you really want to delete all your record? ")) return; #endif @@ -1045,13 +1076,13 @@ static void do_cmd_erase_nikki(void) if(fff){ my_fclose(fff); #ifdef JP - msg_format("µ­Ï¿¤ò¾Ãµî¤·¤Þ¤·¤¿¡£"); + msg_format("記録を消去しました。"); #else msg_format("deleted record."); #endif }else{ #ifdef JP - msg_format("%s ¤Î¾Ãµî¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£", buf); + msg_format("%s の消去に失敗しました。", buf); #else msg_format("failed to delete %s.", buf); #endif @@ -1059,7 +1090,10 @@ static void do_cmd_erase_nikki(void) msg_print(NULL); } - +/*! + * @brief 日記コマンド + * @return なし + */ void do_cmd_nikki(void) { int i; @@ -1078,7 +1112,7 @@ void do_cmd_nikki(void) /* Ask for a choice */ #ifdef JP - prt("[ µ­Ï¿¤ÎÀßÄê ]", 2, 0); + prt("[ 記録の設定 ]", 2, 0); #else prt("[ Play Record ]", 2, 0); #endif @@ -1086,21 +1120,25 @@ void do_cmd_nikki(void) /* Give some choices */ #ifdef JP - prt("(1) µ­Ï¿¤ò¸«¤ë", 4, 5); - prt("(2) ʸ¾Ï¤òµ­Ï¿¤¹¤ë", 5, 5); - prt("(3) ľÁ°¤ËÆþ¼êËô¤Ï´ÕÄꤷ¤¿¤â¤Î¤òµ­Ï¿¤¹¤ë", 6, 5); - prt("(4) µ­Ï¿¤ò¾Ãµî¤¹¤ë", 7, 5); + prt("(1) 記録を見る", 4, 5); + prt("(2) 文章を記録する", 5, 5); + prt("(3) 直前に入手又は鑑定したものを記録する", 6, 5); + prt("(4) 記録を消去する", 7, 5); + + prt("(R) プレイ動画を記録する/中止する", 9, 5); #else prt("(1) Display your record", 4, 5); prt("(2) Add record", 5, 5); prt("(3) Record item you last get/identify", 6, 5); prt("(4) Delete your record", 7, 5); + + prt("(R) Record playing movie / or stop it", 9, 5); #endif /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É:", 18, 0); + prt("コマンド:", 18, 0); #else prt("Command: ", 18, 0); #endif @@ -1126,6 +1164,10 @@ void do_cmd_nikki(void) case '4': do_cmd_erase_nikki(); break; + case 'r': case 'R': + screen_load(); + prepare_movie_hooks(); + return; default: /* Unknown option */ bell(); } @@ -1138,9 +1180,12 @@ void do_cmd_nikki(void) screen_load(); } -/* +/*! + * @brief 画面を再描画するコマンドのメインルーチン * Hack -- redraw the screen - * + * @return なし + * @details + *
  * This command performs various low level updates, clears all the "extra"
  * windows, does a total redraw of the main window, and requests all of the
  * interesting updates and redraws that I can think of.
@@ -1148,6 +1193,7 @@ void do_cmd_nikki(void)
  * This command is also used to "instantiate" the results of the user
  * selecting various things, such as graphics mode, so it must call
  * the "TERM_XTRA_REACT" hook before redrawing the windows.
+ * 
*/ void do_cmd_redraw(void) { @@ -1217,8 +1263,10 @@ void do_cmd_redraw(void) } -/* +/*! + * @brief 名前を変更するコマンドのメインルーチン * Hack -- change name + * @return なし */ void do_cmd_change_name(void) { @@ -1249,7 +1297,7 @@ void do_cmd_change_name(void) /* Prompt */ #ifdef JP Term_putstr(2, 23, -1, TERM_WHITE, - "['c'¤Ç̾Á°Êѹ¹, 'f'¤Ç¥Õ¥¡¥¤¥ë¤Ø½ñ½Ð, 'h'¤Ç¥â¡¼¥ÉÊѹ¹, ESC¤Ç½ªÎ»]"); + "['c'で名前変更, 'f'でファイルへ書出, 'h'でモード変更, ESCで終了]"); #else Term_putstr(2, 23, -1, TERM_WHITE, "['c' to change name, 'f' to file, 'h' to change mode, or ESC]"); @@ -1276,7 +1324,7 @@ void do_cmd_change_name(void) { sprintf(tmp, "%s.txt", player_base); #ifdef JP - if (get_string("¥Õ¥¡¥¤¥ë̾: ", tmp, 80)) + if (get_string("ファイル名: ", tmp, 80)) #else if (get_string("File name: ", tmp, 80)) #endif @@ -1315,8 +1363,10 @@ void do_cmd_change_name(void) } -/* +/*! + * @brief 最近表示されたメッセージを再表示するコマンドのメインルーチン * Recall the most recent message + * @return なし */ void do_cmd_message_one(void) { @@ -1325,7 +1375,12 @@ void do_cmd_message_one(void) } -/* +/*! + * @brief メッセージのログを表示するコマンドのメインルーチン + * Recall the most recent message + * @return なし + * @details + *
  * Show previous messages to the user	-BEN-
  *
  * The screen format uses line 0 and 23 for headers and prompts,
@@ -1339,13 +1394,16 @@ void do_cmd_message_one(void)
  * "slide" the virtual display to the left or right.
  *
  * Attempt to only hilite the matching portions of the string.
+ * 
*/ void do_cmd_messages(int num_now) { int i, n; - char shower[80]; - char finder[80]; + char shower_str[81]; + char finder_str[81]; + char back_str[81]; + cptr shower = NULL; int wid, hgt; int num_lines; @@ -1356,11 +1414,10 @@ void do_cmd_messages(int num_now) num_lines = hgt - 4; /* Wipe finder */ - strcpy(finder, ""); + strcpy(finder_str, ""); /* Wipe shower */ - strcpy(shower, ""); - + strcpy(shower_str, ""); /* Total messages */ n = message_num(); @@ -1386,10 +1443,10 @@ void do_cmd_messages(int num_now) cptr msg = message_str(i+j); /* Dump the messages, bottom to top */ - c_prt((i+j < num_now ? TERM_WHITE : TERM_SLATE), msg, num_lines + 1 - j, 0); + c_prt((i + j < num_now ? TERM_WHITE : TERM_SLATE), msg, num_lines + 1 - j, 0); /* Hilite "shower" */ - if (shower[0]) + if (shower && shower[0]) { cptr str = msg; @@ -1416,22 +1473,20 @@ void do_cmd_messages(int num_now) /* Display header XXX XXX XXX */ #ifdef JP /* translation */ - prt(format("°ÊÁ°¤Î¥á¥Ã¥»¡¼¥¸ %d-%d Á´Éô¤Ç(%d)", - i, i+j-1, n), 0, 0); + prt(format("以前のメッセージ %d-%d 全部で(%d)", + i, i + j - 1, n), 0, 0); #else prt(format("Message Recall (%d-%d of %d)", - i, i+j-1, n), 0, 0); + i, i + j - 1, n), 0, 0); #endif - /* Display prompt (not very informative) */ #ifdef JP - prt("[ 'p' ¤Ç¹¹¤Ë¸Å¤¤¤â¤Î, 'n' ¤Ç¹¹¤Ë¿·¤·¤¤¤â¤Î, '/' ¤Ç¸¡º÷, ESC ¤ÇÃæÃÇ ]", hgt - 1, 0); + prt("[ 'p' で更に古いもの, 'n' で更に新しいもの, '/' で検索, ESC で中断 ]", hgt - 1, 0); #else prt("[Press 'p' for older, 'n' for newer, ..., or ESCAPE]", hgt - 1, 0); #endif - /* Get a command */ skey = inkey_special(TRUE); @@ -1441,114 +1496,132 @@ void do_cmd_messages(int num_now) /* Hack -- Save the old index */ j = i; - /* Hack -- handle show */ - if (skey == '=') + switch (skey) { + /* Hack -- handle show */ + case '=': /* Prompt */ #ifdef JP - prt("¶¯Ä´: ", hgt - 1, 0); + prt("強調: ", hgt - 1, 0); #else prt("Show: ", hgt - 1, 0); #endif - /* Get a "shower" string, or continue */ - if (!askfor(shower, 80)) continue; + strcpy(back_str, shower_str); + if (askfor(shower_str, 80)) + { + /* Show it */ + shower = shower_str[0] ? shower_str : NULL; + } + else strcpy(shower_str, back_str); /* Okay */ continue; - } /* Hack -- handle find */ - if (skey == '/' || skey == KTRL('s')) - { - int z; + case '/': + case KTRL('s'): + { + int z; - /* Prompt */ + /* Prompt */ #ifdef JP - prt("¸¡º÷: ", hgt - 1, 0); + prt("検索: ", hgt - 1, 0); #else - prt("Find: ", hgt - 1, 0); + prt("Find: ", hgt - 1, 0); #endif + /* Get a "finder" string, or continue */ + strcpy(back_str, finder_str); + if (!askfor(finder_str, 80)) + { + strcpy(finder_str, back_str); + continue; + } + else if (!finder_str[0]) + { + shower = NULL; /* Stop showing */ + continue; + } - /* Get a "finder" string, or continue */ - if (!askfor(finder, 80)) continue; - - /* Show it */ - strcpy(shower, finder); - - /* Scan messages */ - for (z = i + 1; z < n; z++) - { - cptr msg = message_str(z); + /* Show it */ + shower = finder_str; - /* Search for it */ - if (my_strstr(msg, finder)) + /* Scan messages */ + for (z = i + 1; z < n; z++) { - /* New location */ - i = z; + cptr msg = message_str(z); - /* Done */ - break; + /* Search for it */ + if (my_strstr(msg, finder_str)) + { + /* New location */ + i = z; + + /* Done */ + break; + } } } - } + break; /* Recall 1 older message */ - if (skey == SKEY_TOP) - { + case SKEY_TOP: /* Go to the oldest line */ i = n - num_lines; - } + break; /* Recall 1 newer message */ - if (skey == SKEY_BOTTOM) - { + case SKEY_BOTTOM: /* Go to the newest line */ i = 0; - } + break; /* Recall 1 older message */ - if (skey == '8' || skey == SKEY_UP || skey == '\n' || skey == '\r') - { + case '8': + case SKEY_UP: + case '\n': + case '\r': /* Go older if legal */ i = MIN(i + 1, n - num_lines); - } + break; /* Recall 10 older messages */ - if (skey == '+') - { + case '+': /* Go older if legal */ i = MIN(i + 10, n - num_lines); - } + break; /* Recall 20 older messages */ - if (skey == 'p' || skey == KTRL('P') || skey == ' ' || skey == SKEY_PGUP) - { + case 'p': + case KTRL('P'): + case ' ': + case SKEY_PGUP: /* Go older if legal */ i = MIN(i + num_lines, n - num_lines); - } + break; /* Recall 20 newer messages */ - if (skey == 'n' || skey == KTRL('N') || skey == SKEY_PGDOWN) - { + case 'n': + case KTRL('N'): + case SKEY_PGDOWN: /* Go newer (if able) */ i = MAX(0, i - num_lines); - } + break; /* Recall 10 newer messages */ - if (skey == '-') - { + case '-': /* Go newer (if able) */ i = MAX(0, i - 10); - } + break; /* Recall 1 newer messages */ - if (skey == '2' || skey == SKEY_DOWN) - { + case '2': + case SKEY_DOWN: /* Go newer (if able) */ i = MAX(0, i - 1); + break; } /* Hack -- Error of some kind */ @@ -1561,19 +1634,19 @@ void do_cmd_messages(int num_now) -/* - * Number of cheating options +/*! + * チートオプションの最大数 / Number of cheating options */ #define CHEAT_MAX 7 -/* - * Cheating options +/*! + * チーとオプションの定義テーブル / Cheating options */ static option_type cheat_info[CHEAT_MAX] = { { &cheat_peek, FALSE, 255, 0x01, 0x00, #ifdef JP - "cheat_peek", "¥¢¥¤¥Æ¥à¤ÎÀ¸À®¤ò¤Î¤¾¤­¸«¤ë" + "cheat_peek", "アイテムの生成をのぞき見る" #else "cheat_peek", "Peek into object creation" #endif @@ -1581,7 +1654,7 @@ static option_type cheat_info[CHEAT_MAX] = { &cheat_hear, FALSE, 255, 0x02, 0x00, #ifdef JP - "cheat_hear", "¥â¥ó¥¹¥¿¡¼¤ÎÀ¸À®¤ò¤Î¤¾¤­¸«¤ë" + "cheat_hear", "モンスターの生成をのぞき見る" #else "cheat_hear", "Peek into monster creation" #endif @@ -1589,7 +1662,7 @@ static option_type cheat_info[CHEAT_MAX] = { &cheat_room, FALSE, 255, 0x04, 0x00, #ifdef JP - "cheat_room", "¥À¥ó¥¸¥ç¥ó¤ÎÀ¸À®¤ò¤Î¤¾¤­¸«¤ë" + "cheat_room", "ダンジョンの生成をのぞき見る" #else "cheat_room", "Peek into dungeon creation" #endif @@ -1597,7 +1670,7 @@ static option_type cheat_info[CHEAT_MAX] = { &cheat_xtra, FALSE, 255, 0x08, 0x00, #ifdef JP - "cheat_xtra", "¤½¤Î¾¤Î»ö¤ò¤Î¤¾¤­¸«¤ë" + "cheat_xtra", "その他の事をのぞき見る" #else "cheat_xtra", "Peek into something else" #endif @@ -1605,7 +1678,7 @@ static option_type cheat_info[CHEAT_MAX] = { &cheat_know, FALSE, 255, 0x10, 0x00, #ifdef JP - "cheat_know", "´°Á´¤Ê¥â¥ó¥¹¥¿¡¼¤Î»×¤¤½Ð¤òÃΤë" + "cheat_know", "完全なモンスターの思い出を知る" #else "cheat_know", "Know complete monster info" #endif @@ -1613,7 +1686,7 @@ static option_type cheat_info[CHEAT_MAX] = { &cheat_live, FALSE, 255, 0x20, 0x00, #ifdef JP - "cheat_live", "»à¤ò²óÈò¤¹¤ë¤³¤È¤ò²Äǽ¤Ë¤¹¤ë" + "cheat_live", "死を回避することを可能にする" #else "cheat_live", "Allow player to avoid death" #endif @@ -1621,15 +1694,18 @@ static option_type cheat_info[CHEAT_MAX] = { &cheat_save, FALSE, 255, 0x40, 0x00, #ifdef JP - "cheat_save", "»à¤ó¤À»þ¥»¡¼¥Ö¤¹¤ë¤«³Îǧ¤¹¤ë" + "cheat_save", "死んだ時セーブするか確認する" #else "cheat_save", "Ask for saving death" #endif } }; -/* +/*! + * @brief チートオプションを変更するコマンドのメインルーチン * Interact with some options for cheating + * @param info 表示メッセージ + * @return なし */ static void do_cmd_options_cheat(cptr info) { @@ -1650,7 +1726,7 @@ static void do_cmd_options_cheat(cptr info) /* Prompt XXX XXX XXX */ #ifdef JP - sprintf(buf, "%s ( ¥ê¥¿¡¼¥ó¤Ç¼¡¤Ø, y/n ¤Ç¥»¥Ã¥È, ESC ¤Ç·èÄê )", info); + sprintf(buf, "%s ( リターンで次へ, y/n でセット, ESC で決定 )", info); #else sprintf(buf, "%s (RET to advance, y/n to set, ESC to accept) ", info); #endif @@ -1658,11 +1734,11 @@ static void do_cmd_options_cheat(cptr info) prt(buf, 0, 0); #ifdef JP - /* º¾µ½¥ª¥×¥·¥ç¥ó¤ò¤¦¤Ã¤«¤ê¤¤¤¸¤Ã¤Æ¤·¤Þ¤¦¿Í¤¬¤¤¤ë¤è¤¦¤Ê¤Î¤ÇÃí°Õ */ - prt(" << Ãí°Õ >>", 11, 0); - prt(" º¾µ½¥ª¥×¥·¥ç¥ó¤ò°ìÅ٤ǤâÀßÄꤹ¤ë¤È¡¢¥¹¥³¥¢µ­Ï¿¤¬»Ä¤é¤Ê¤¯¤Ê¤ê¤Þ¤¹¡ª", 12, 0); - prt(" ¸å¤Ë²ò½ü¤·¤Æ¤â¥À¥á¤Ç¤¹¤Î¤Ç¡¢¾¡Íø¼Ô¤òÌܻؤ¹Êý¤Ï¤³¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¤¤", 13, 0); - prt(" ¤¸¤é¤Ê¤¤¤è¤¦¤Ë¤·¤Æ²¼¤µ¤¤¡£", 14, 0); + /* 詐欺オプションをうっかりいじってしまう人がいるようなので注意 */ + prt(" << 注意 >>", 11, 0); + prt(" 詐欺オプションを一度でも設定すると、スコア記録が残らなくなります!", 12, 0); + prt(" 後に解除してもダメですので、勝利者を目指す方はここのオプションはい", 13, 0); + prt(" じらないようにして下さい。", 14, 0); #endif /* Display the options */ for (i = 0; i < n; i++) @@ -1676,7 +1752,7 @@ static void do_cmd_options_cheat(cptr info) sprintf(buf, "%-48s: %s (%s)", cheat_info[i].o_desc, #ifdef JP - (*cheat_info[i].o_var ? "¤Ï¤¤ " : "¤¤¤¤¤¨"), + (*cheat_info[i].o_var ? "はい " : "いいえ"), #else (*cheat_info[i].o_var ? "yes" : "no "), #endif @@ -1729,7 +1805,7 @@ static void do_cmd_options_cheat(cptr info) { if(!p_ptr->noscore) #ifdef JP - do_cmd_write_nikki(NIKKI_BUNSHOU, 0, "º¾µ½¥ª¥×¥·¥ç¥ó¤òON¤Ë¤·¤Æ¡¢¥¹¥³¥¢¤ò»Ä¤»¤Ê¤¯¤Ê¤Ã¤¿¡£"); + do_cmd_write_nikki(NIKKI_BUNSHOU, 0, "詐欺オプションをONにして、スコアを残せなくなった。"); #else do_cmd_write_nikki(NIKKI_BUNSHOU, 0, "give up sending score to use cheating options."); #endif @@ -1772,11 +1848,14 @@ static void do_cmd_options_cheat(cptr info) } +/*! + * 自動セーブオプションテーブル + */ static option_type autosave_info[2] = { { &autosave_l, FALSE, 255, 0x01, 0x00, #ifdef JP - "autosave_l", "¿·¤·¤¤³¬¤ËÆþ¤ëÅ٤˼«Æ°¥»¡¼¥Ö¤¹¤ë" }, + "autosave_l", "新しい階に入る度に自動セーブする" }, #else "autosave_l", "Autosave when entering new levels" }, #endif @@ -1784,14 +1863,18 @@ static option_type autosave_info[2] = { &autosave_t, FALSE, 255, 0x02, 0x00, #ifdef JP - "autosave_t", "°ìÄ꥿¡¼¥óËè¤Ë¼«Æ°¥»¡¼¥Ö¤¹¤ë" }, + "autosave_t", "一定ターン毎に自動セーブする" }, #else "autosave_t", "Timed autosave" }, #endif }; - +/*! + * @brief セーブ頻度ターンの次の値を返す + * @param current 現在のセーブ頻度ターン値 + * @return 次のセーブ頻度ターン値 + */ static s16b toggle_frequency(s16b current) { switch (current) @@ -1810,8 +1893,10 @@ static s16b toggle_frequency(s16b current) } -/* - * Interact with some options for cheating +/*! + * @brief 自動セーブオプションを変更するコマンドのメインルーチン + * @param info 表示メッセージ + * @return なし */ static void do_cmd_options_autosave(cptr info) { @@ -1830,7 +1915,7 @@ static void do_cmd_options_autosave(cptr info) { /* Prompt XXX XXX XXX */ #ifdef JP - sprintf(buf, "%s ( ¥ê¥¿¡¼¥ó¤Ç¼¡¤Ø, y/n ¤Ç¥»¥Ã¥È, F ¤ÇÉÑÅÙ¤òÆþÎÏ, ESC ¤Ç·èÄê ) ", info); + sprintf(buf, "%s ( リターンで次へ, y/n でセット, F で頻度を入力, ESC で決定 ) ", info); #else sprintf(buf, "%s (RET to advance, y/n to set, 'F' for frequency, ESC to accept) ", info); #endif @@ -1849,7 +1934,7 @@ static void do_cmd_options_autosave(cptr info) sprintf(buf, "%-48s: %s (%s)", autosave_info[i].o_desc, #ifdef JP - (*autosave_info[i].o_var ? "¤Ï¤¤ " : "¤¤¤¤¤¨"), + (*autosave_info[i].o_var ? "はい " : "いいえ"), #else (*autosave_info[i].o_var ? "yes" : "no "), #endif @@ -1859,7 +1944,7 @@ static void do_cmd_options_autosave(cptr info) } #ifdef JP - prt(format("¼«Æ°¥»¡¼¥Ö¤ÎÉÑÅÙ¡§ %d ¥¿¡¼¥óËè", autosave_freq), 5, 0); + prt(format("自動セーブの頻度: %d ターン毎", autosave_freq), 5, 0); #else prt(format("Timed autosave frequency: every %d turns", autosave_freq), 5, 0); #endif @@ -1920,7 +2005,7 @@ static void do_cmd_options_autosave(cptr info) { autosave_freq = toggle_frequency(autosave_freq); #ifdef JP - prt(format("¼«Æ°¥»¡¼¥Ö¤ÎÉÑÅÙ¡§ %d ¥¿¡¼¥óËè", + prt(format("自動セーブの頻度: %d ターン毎", autosave_freq), 5, 0); #else prt(format("Timed autosave frequency: every %d turns", @@ -1952,8 +2037,12 @@ static void do_cmd_options_autosave(cptr info) } -/* +/*! + * @brief 標準オプションを変更するコマンドのサブルーチン / * Interact with some options + * @param page オプションページ番号 + * @param info 表示メッセージ + * @return なし */ void do_cmd_options_aux(int page, cptr info) { @@ -1986,7 +2075,7 @@ void do_cmd_options_aux(int page, cptr info) /* Prompt XXX XXX XXX */ #ifdef JP - sprintf(buf, "%s (¥ê¥¿¡¼¥ó:¼¡, %sESC:½ªÎ», ?:¥Ø¥ë¥×) ", info, browse_only ? "" : "y/n:Êѹ¹, "); + sprintf(buf, "%s (リターン:次, %sESC:終了, ?:ヘルプ) ", info, browse_only ? "" : "y/n:変更, "); #else sprintf(buf, "%s (RET:next, %s, ?:help) ", info, browse_only ? "ESC:exit" : "y/n:change, ESC:accept"); #endif @@ -1996,7 +2085,7 @@ void do_cmd_options_aux(int page, cptr info) /* HACK -- description for easy-auto-destroy options */ #ifdef JP - if (page == OPT_PAGE_AUTODESTROY) c_prt(TERM_YELLOW, "°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢´Ê°×¼«Æ°Ç˲õ¤ò»ÈÍѤ¹¤ë¤È¤­¤Î¤ßÍ­¸ú", 6, 6); + if (page == OPT_PAGE_AUTODESTROY) c_prt(TERM_YELLOW, "以下のオプションは、簡易自動破壊を使用するときのみ有効", 6, 6); #else if (page == OPT_PAGE_AUTODESTROY) c_prt(TERM_YELLOW, "Following options will protect items from easy auto-destroyer.", 6, 3); #endif @@ -2013,7 +2102,7 @@ void do_cmd_options_aux(int page, cptr info) sprintf(buf, "%-48s: %s (%.19s)", option_info[opt[i]].o_desc, #ifdef JP - (*option_info[opt[i]].o_var ? "¤Ï¤¤ " : "¤¤¤¤¤¨"), + (*option_info[opt[i]].o_var ? "はい " : "いいえ"), #else (*option_info[opt[i]].o_var ? "yes" : "no "), #endif @@ -2115,8 +2204,10 @@ void do_cmd_options_aux(int page, cptr info) } -/* +/*! + * @brief ウィンドウオプションを変更するコマンドのメインルーチン / * Modify the "window" options + * @return なし */ static void do_cmd_options_win(void) { @@ -2148,7 +2239,7 @@ static void do_cmd_options_win(void) { /* Prompt XXX XXX XXX */ #ifdef JP - prt("¥¦¥£¥ó¥É¥¦¡¦¥Õ¥é¥° (<Êý¸þ>¤Ç°ÜÆ°, t¤Ç¥Á¥§¥ó¥¸, y/n ¤Ç¥»¥Ã¥È, ESC)", 0, 0); + prt("ウィンドウ・フラグ (<方向>で移動, tでチェンジ, y/n でセット, ESC)", 0, 0); #else prt("Window Flags (, t, y, n, ESC) ", 0, 0); #endif @@ -2180,7 +2271,7 @@ static void do_cmd_options_win(void) /* Unused option */ #ifdef JP - if (!str) str = "(̤»ÈÍÑ)"; + if (!str) str = "(未使用)"; #else if (!str) str = "(Unused option)"; #endif @@ -2311,17 +2402,71 @@ static void do_cmd_options_win(void) +#define OPT_NUM 15 -/* +static struct opts +{ + char key; + cptr name; + int row; +} +option_fields[OPT_NUM] = +{ +#ifdef JP + { '1', " キー入力 オプション", 3 }, + { '2', " マップ画面 オプション", 4 }, + { '3', " テキスト表示 オプション", 5 }, + { '4', " ゲームプレイ オプション", 6 }, + { '5', " 行動中止関係 オプション", 7 }, + { '6', " 簡易自動破壊 オプション", 8 }, + { 'r', " プレイ記録 オプション", 9 }, + + { 'p', "自動拾いエディタ", 11 }, + { 'd', " 基本ウェイト量 ", 12 }, + { 'h', "低ヒットポイント", 13 }, + { 'm', " 低魔力色閾値 ", 14 }, + { 'a', " 自動セーブ オプション", 15 }, + { 'w', "ウインドウフラグ", 16 }, + + { 'b', " 初期 オプション (参照のみ)", 18 }, + { 'c', " 詐欺 オプション", 19 }, +#else + { '1', "Input Options", 3 }, + { '2', "Map Screen Options", 4 }, + { '3', "Text Display Options", 5 }, + { '4', "Game-Play Options", 6 }, + { '5', "Disturbance Options", 7 }, + { '6', "Easy Auto-Destroyer Options", 8 }, + { 'r', "Play record Options", 9 }, + + { 'p', "Auto-picker/destroyer editor", 11 }, + { 'd', "Base Delay Factor", 12 }, + { 'h', "Hitpoint Warning", 13 }, + { 'm', "Mana Color Threshold", 14 }, + { 'a', "Autosave Options", 15 }, + { 'w', "Window Flags", 16 }, + + { 'b', "Birth Options (Browse Only)", 18 }, + { 'c', "Cheat Options", 19 }, +#endif +}; + + +/*! + * @brief 標準オプションを変更するコマンドのメインルーチン / * Set or unset various options. - * + * @return なし + * @details + *
  * The user must use the "Ctrl-R" command to "adapt" to changes
  * in any options which control "visual" aspects of the game.
+ * 
*/ void do_cmd_options(void) { - int k; - + char k; + int i, d, skey; + int y = 0; /* Save the screen */ screen_save(); @@ -2329,94 +2474,70 @@ void do_cmd_options(void) /* Interact */ while (1) { + int n = OPT_NUM; + + /* Does not list cheat option when cheat option is off */ + if (!p_ptr->noscore && !allow_debug_opts) n--; + /* Clear screen */ Term_clear(); /* Why are we here */ #ifdef JP - prt("[ ¥ª¥×¥·¥ç¥ó¤ÎÀßÄê ]", 1, 0); + prt("[ オプションの設定 ]", 1, 0); #else - prt("Options", 1, 0); + prt("TinyAngband options", 1, 0); #endif - - /* Give some choices */ -#ifdef JP - prt("(1) ¥­¡¼ÆþÎÏ ¥ª¥×¥·¥ç¥ó", 2, 5); - prt("(2) ¥Þ¥Ã¥×²èÌÌ ¥ª¥×¥·¥ç¥ó", 3, 5); - prt("(3) ¥Æ¥­¥¹¥Èɽ¼¨ ¥ª¥×¥·¥ç¥ó", 4, 5); - prt("(4) ¥²¡¼¥à¥×¥ì¥¤ ¥ª¥×¥·¥ç¥ó", 5, 5); - prt("(5) ¹ÔÆ°Ãæ»ß´Ø·¸ ¥ª¥×¥·¥ç¥ó", 6, 5); - prt("(6) ´Ê°×¼«Æ°Ç˲õ ¥ª¥×¥·¥ç¥ó", 7, 5); - prt("(R) ¥×¥ì¥¤µ­Ï¿ ¥ª¥×¥·¥ç¥ó", 8, 5); - - /* Special choices */ - prt("(P) ¼«Æ°½¦¤¤¥¨¥Ç¥£¥¿", 10, 5); - prt("(D) ´ðËÜ¥¦¥§¥¤¥ÈÎÌ", 11, 5); - prt("(H) Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð", 12, 5); - prt("(M) ÄãËâÎÏ¿§ïçÃÍ", 13, 5); - prt("(A) ¼«Æ°¥»¡¼¥Ö ¥ª¥×¥·¥ç¥ó", 14, 5); - /* Window flags */ - prt("(W) ¥¦¥¤¥ó¥É¥¦¥Õ¥é¥°", 15, 5); -#else - prt("(1) Input Options", 2, 5); - prt("(2) Map Screen Options", 3, 5); - prt("(3) Text Display Options", 4, 5); - prt("(4) Game-Play Options", 5, 5); - prt("(5) Disturbance Options", 6, 5); - prt("(6) Easy Auto-Destroyer Options", 7, 5); - prt("(R) Play-record Options", 8, 5); - /* Special choices */ - prt("(P) Auto-picker/destroyer editor", 10, 5); - prt("(D) Base Delay Factor", 11, 5); - prt("(H) Hitpoint Warning", 12, 5); - prt("(M) Mana Color Threshold", 13, 5); - prt("(A) Autosave Options", 14, 5); - /* Window flags */ - prt("(W) Window Flags", 15, 5); -#endif - - if (!p_ptr->wizard || !allow_debug_opts) - { - /* Birth */ -#ifdef JP - prt("(B) ½é´ü ¥ª¥×¥·¥ç¥ó (»²¾È¤Î¤ß)", 16, 5); -#else - prt("(B) Birth Options (Browse Only)", 16, 5); -#endif - } - else + while(1) { - /* Birth */ + /* Give some choices */ + for (i = 0; i < n; i++) + { + byte a = TERM_WHITE; + if (i == y) a = TERM_L_BLUE; + Term_putstr(5, option_fields[i].row, -1, a, + format("(%c) %s", toupper(option_fields[i].key), option_fields[i].name)); + } + #ifdef JP - prt("(B) ½é´ü ¥ª¥×¥·¥ç¥ó", 16, 5); + prt("<方向>で移動, Enterで決定, ESCでキャンセル, ?でヘルプ: ", 21, 0); #else - prt("(B) Birth Options", 16, 5); + prt("Move to , Select to Enter, Cancel to ESC, ? to help: ", 21, 0); #endif - } + /* Get command */ + skey = inkey_special(TRUE); + if (!(skey & SKEY_MASK)) k = (char)skey; + else k = 0; - if (p_ptr->noscore || allow_debug_opts) - { - /* Cheating */ -#ifdef JP - prt("(C) º¾µ½ ¥ª¥×¥·¥ç¥ó", 17, 5); -#else - prt("(C) Cheating Options", 17, 5); -#endif - } + /* Exit */ + if (k == ESCAPE) break; + if (my_strchr("\n\r ", k)) + { + k = option_fields[y].key; + break; + } - /* Prompt */ -#ifdef JP - prt("¥³¥Þ¥ó¥É:", 19, 0); -#else - prt("Command: ", 19, 0); -#endif + for (i = 0; i < n; i++) + { + if (tolower(k) == option_fields[i].key) break; + } + /* Command is found */ + if (i < n) break; - /* Get command */ - k = inkey(); + /* Hack -- browse help */ + if (k == '?') break; + + /* Move cursor */ + d = 0; + if (skey == SKEY_UP) d = 8; + if (skey == SKEY_DOWN) d = 2; + y = (y + ddy[d] + n) % n; + if (!d) bell(); + } /* Exit */ if (k == ESCAPE) break; @@ -2428,11 +2549,10 @@ void do_cmd_options(void) { /* Process the general options */ #ifdef JP - do_cmd_options_aux(OPT_PAGE_INPUT, "¥­¡¼ÆþÎÏ¥ª¥×¥·¥ç¥ó"); + do_cmd_options_aux(OPT_PAGE_INPUT, "キー入力オプション"); #else do_cmd_options_aux(OPT_PAGE_INPUT, "Input Options"); #endif - break; } @@ -2440,11 +2560,10 @@ void do_cmd_options(void) { /* Process the general options */ #ifdef JP - do_cmd_options_aux(OPT_PAGE_MAPSCREEN, "¥Þ¥Ã¥×²èÌÌ¥ª¥×¥·¥ç¥ó"); + do_cmd_options_aux(OPT_PAGE_MAPSCREEN, "マップ画面オプション"); #else do_cmd_options_aux(OPT_PAGE_MAPSCREEN, "Map Screen Options"); #endif - break; } @@ -2452,11 +2571,10 @@ void do_cmd_options(void) { /* Spawn */ #ifdef JP - do_cmd_options_aux(OPT_PAGE_TEXT, "¥Æ¥­¥¹¥Èɽ¼¨¥ª¥×¥·¥ç¥ó"); + do_cmd_options_aux(OPT_PAGE_TEXT, "テキスト表示オプション"); #else do_cmd_options_aux(OPT_PAGE_TEXT, "Text Display Options"); #endif - break; } @@ -2464,11 +2582,10 @@ void do_cmd_options(void) { /* Spawn */ #ifdef JP - do_cmd_options_aux(OPT_PAGE_GAMEPLAY, "¥²¡¼¥à¥×¥ì¥¤¡¦¥ª¥×¥·¥ç¥ó"); + do_cmd_options_aux(OPT_PAGE_GAMEPLAY, "ゲームプレイ・オプション"); #else do_cmd_options_aux(OPT_PAGE_GAMEPLAY, "Game-Play Options"); #endif - break; } @@ -2476,11 +2593,10 @@ void do_cmd_options(void) { /* Spawn */ #ifdef JP - do_cmd_options_aux(OPT_PAGE_DISTURBANCE, "¹ÔÆ°Ãæ»ß´Ø·¸¤Î¥ª¥×¥·¥ç¥ó"); + do_cmd_options_aux(OPT_PAGE_DISTURBANCE, "行動中止関係のオプション"); #else do_cmd_options_aux(OPT_PAGE_DISTURBANCE, "Disturbance Options"); #endif - break; } @@ -2488,7 +2604,7 @@ void do_cmd_options(void) { /* Spawn */ #ifdef JP - do_cmd_options_aux(OPT_PAGE_AUTODESTROY, "´Ê°×¼«Æ°Ç˲õ¥ª¥×¥·¥ç¥ó"); + do_cmd_options_aux(OPT_PAGE_AUTODESTROY, "簡易自動破壊オプション"); #else do_cmd_options_aux(OPT_PAGE_AUTODESTROY, "Easy Auto-Destroyer Options"); #endif @@ -2501,7 +2617,7 @@ void do_cmd_options(void) { /* Spawn */ #ifdef JP - do_cmd_options_aux(OPT_PAGE_PLAYRECORD, "¥×¥ì¥¤µ­Ï¿¥ª¥×¥·¥ç¥ó"); + do_cmd_options_aux(OPT_PAGE_PLAYRECORD, "プレイ記録オプション"); #else do_cmd_options_aux(OPT_PAGE_PLAYRECORD, "Play-record Options"); #endif @@ -2514,11 +2630,10 @@ void do_cmd_options(void) { /* Spawn */ #ifdef JP - do_cmd_options_aux(OPT_PAGE_BIRTH, (!p_ptr->wizard || !allow_debug_opts) ? "½é´ü¥ª¥×¥·¥ç¥ó(»²¾È¤Î¤ß)" : "½é´ü¥ª¥×¥·¥ç¥ó((*)¤Ï¥¹¥³¥¢¤Ë±Æ¶Á)"); + do_cmd_options_aux(OPT_PAGE_BIRTH, (!p_ptr->wizard || !allow_debug_opts) ? "初期オプション(参照のみ)" : "初期オプション((*)はスコアに影響)"); #else do_cmd_options_aux(OPT_PAGE_BIRTH, (!p_ptr->wizard || !allow_debug_opts) ? "Birth Options(browse only)" : "Birth Options((*)s effect score)"); #endif - break; } @@ -2534,11 +2649,10 @@ void do_cmd_options(void) /* Spawn */ #ifdef JP - do_cmd_options_cheat("º¾µ½»Õ¤Ï·è¤·¤Æ¾¡Íø¤Ç¤­¤Ê¤¤¡ª"); + do_cmd_options_cheat("詐欺師は決して勝利できない!"); #else do_cmd_options_cheat("Cheaters never win"); #endif - break; } @@ -2546,11 +2660,10 @@ void do_cmd_options(void) case 'A': { #ifdef JP - do_cmd_options_autosave("¼«Æ°¥»¡¼¥Ö"); + do_cmd_options_autosave("自動セーブ"); #else do_cmd_options_autosave("Autosave"); #endif - break; } @@ -2562,8 +2675,9 @@ void do_cmd_options(void) do_cmd_options_win(); p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_SPELL | PW_PLAYER | PW_MESSAGE | PW_OVERHEAD | - PW_MONSTER | PW_OBJECT | PW_SNAPSHOT | - PW_BORG_1 | PW_BORG_2 | PW_DUNGEON); + PW_MONSTER | PW_OBJECT | PW_SNAPSHOT | + PW_BORG_1 | PW_BORG_2 | PW_DUNGEON | + PW_MONSTER_LIST); break; } @@ -2580,19 +2694,19 @@ void do_cmd_options(void) case 'd': { /* Prompt */ + clear_from(18); #ifdef JP - prt("¥³¥Þ¥ó¥É: ´ðËÜ¥¦¥§¥¤¥ÈÎÌ", 19, 0); + prt("コマンド: 基本ウェイト量", 19, 0); #else prt("Command: Base Delay Factor", 19, 0); #endif - /* Get a new value */ while (1) { int msec = delay_factor * delay_factor * delay_factor; #ifdef JP - prt(format("¸½ºß¤Î¥¦¥§¥¤¥È: %d (%d¥ß¥êÉÃ)", + prt(format("現在のウェイト: %d (%dミリ秒)", delay_factor, msec), 22, 0); #else prt(format("Current base delay factor: %d (%d msec)", @@ -2600,7 +2714,7 @@ void do_cmd_options(void) #endif #ifdef JP - prt("¥¦¥§¥¤¥È (0-9) ESC¤Ç·èÄê: ", 20, 0); + prt("ウェイト (0-9) ESCで決定: ", 20, 0); #else prt("Delay Factor (0-9 or ESC to accept): ", 20, 0); #endif @@ -2628,18 +2742,18 @@ void do_cmd_options(void) case 'h': { /* Prompt */ + clear_from(18); #ifdef JP - prt("¥³¥Þ¥ó¥É: Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð", 19, 0); + prt("コマンド: 低ヒットポイント警告", 19, 0); #else prt("Command: Hitpoint Warning", 19, 0); #endif - /* Get a new value */ while (1) { #ifdef JP - prt(format("¸½ºß¤ÎÄã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð: %d0%%", + prt(format("現在の低ヒットポイント警告: %d0%%", hitpoint_warn), 22, 0); #else prt(format("Current hitpoint warning: %d0%%", @@ -2647,7 +2761,7 @@ void do_cmd_options(void) #endif #ifdef JP - prt("Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð (0-9) ESC¤Ç·èÄê: ", 20, 0); + prt("低ヒットポイント警告 (0-9) ESCで決定: ", 20, 0); #else prt("Hitpoint Warning (0-9 or ESC to accept): ", 20, 0); #endif @@ -2675,18 +2789,18 @@ void do_cmd_options(void) case 'm': { /* Prompt */ + clear_from(18); #ifdef JP - prt("¥³¥Þ¥ó¥É: ÄãËâÎÏ¿§ïçÃÍ", 19, 0); + prt("コマンド: 低魔力色閾値", 19, 0); #else prt("Command: Mana Color Threshold", 19, 0); #endif - /* Get a new value */ while (1) { #ifdef JP - prt(format("¸½ºß¤ÎÄãËâÎÏ¿§ïçÃÍ: %d0%%", + prt(format("現在の低魔力色閾値: %d0%%", mana_warn), 22, 0); #else prt(format("Current mana color threshold: %d0%%", @@ -2694,7 +2808,7 @@ void do_cmd_options(void) #endif #ifdef JP - prt("ÄãËâÎÏïçÃÍ (0-9) ESC¤Ç·èÄê: ", 20, 0); + prt("低魔力閾値 (0-9) ESCで決定: ", 20, 0); #else prt("Mana color Threshold (0-9 or ESC to accept): ", 20, 0); #endif @@ -2749,9 +2863,11 @@ void do_cmd_options(void) -/* +/*! + * @brief prefファイルを選択して処理する / * Ask for a "user pref line" and process it - * + * @return なし + * @details * XXX XXX XXX Allow absolute file names? */ void do_cmd_pref(void) @@ -2763,7 +2879,7 @@ void do_cmd_pref(void) /* Ask for a "user pref command" */ #ifdef JP - if (!get_string("ÀßÄêÊѹ¹¥³¥Þ¥ó¥É: ", buf, 80)) return; + if (!get_string("設定変更コマンド: ", buf, 80)) return; #else if (!get_string("Pref: ", buf, 80)) return; #endif @@ -2773,10 +2889,14 @@ void do_cmd_pref(void) (void)process_pref_file_command(buf); } +/*! + * @brief 自動拾い設定ファイルをロードするコマンドのメインルーチン / + * @return なし + */ void do_cmd_reload_autopick(void) { #ifdef JP - if (!get_check("¼«Æ°½¦¤¤ÀßÄê¥Õ¥¡¥¤¥ë¤ò¥í¡¼¥É¤·¤Þ¤¹¤«? ")) return; + if (!get_check("自動拾い設定ファイルをロードしますか? ")) return; #else if (!get_check("Reload auto-pick preference file? ")) return; #endif @@ -2787,8 +2907,10 @@ void do_cmd_reload_autopick(void) #ifdef ALLOW_MACROS -/* - * Hack -- append all current macros to the given file +/*! + * @brief マクロ情報をprefファイルに保存する / + * @param fname ファイル名 + * @return なし */ static errr macro_dump(cptr fname) { @@ -2809,7 +2931,7 @@ static errr macro_dump(cptr fname) /* Start dumping */ #ifdef JP - auto_dump_printf("\n# ¼«Æ°¥Þ¥¯¥í¥»¡¼¥Ö\n\n"); + auto_dump_printf("\n# 自動マクロセーブ\n\n"); #else auto_dump_printf("\n# Automatic macro dump\n\n"); #endif @@ -2841,12 +2963,17 @@ static errr macro_dump(cptr fname) } -/* +/*! + * @brief マクロのトリガーキーを取得する / * Hack -- ask for a "trigger" (see below) - * + * @param buf キー表記を保管するバッファ + * @return なし + * @details + *
  * Note the complex use of the "inkey()" function from "util.c".
  *
  * Note that both "flush()" calls are extremely important.
+ * 
*/ static void do_cmd_macro_aux(char *buf) { @@ -2896,12 +3023,16 @@ static void do_cmd_macro_aux(char *buf) #endif - -/* +/*! + * @brief マクロのキー表記からアスキーコードを得てターミナルに表示する / * Hack -- ask for a keymap "trigger" (see below) - * + * @param buf キー表記を取得するバッファ + * @return なし + * @details + *
  * Note that both "flush()" calls are extremely important.  This may
  * no longer be true, since "util.c" is much simpler now.  XXX XXX XXX
+ * 
*/ static void do_cmd_macro_aux_keymap(char *buf) { @@ -2929,8 +3060,12 @@ static void do_cmd_macro_aux_keymap(char *buf) } -/* +/*! + * @brief キーマップをprefファイルにダンプする / * Hack -- append all keymaps to the given file + * @param fname ファイルネーム + * @return エラーコード + * @details */ static errr keymap_dump(cptr fname) { @@ -2966,7 +3101,7 @@ static errr keymap_dump(cptr fname) /* Start dumping */ #ifdef JP - auto_dump_printf("\n# ¼«Æ°¥­¡¼ÇÛÃÖ¥»¡¼¥Ö\n\n"); + auto_dump_printf("\n# 自動キー配置セーブ\n\n"); #else auto_dump_printf("\n# Automatic keymap dump\n\n"); #endif @@ -3003,13 +3138,16 @@ static errr keymap_dump(cptr fname) } - -/* +/*! + * @brief マクロを設定するコマンドのメインルーチン / * Interact with "macros" - * + * @return なし + * @details + *
  * Note that the macro "action" must be defined before the trigger.
  *
  * Could use some helpful instructions on this page.  XXX XXX XXX
+ * 
*/ void do_cmd_macros(void) { @@ -3050,7 +3188,7 @@ void do_cmd_macros(void) /* Describe */ #ifdef JP - prt("[ ¥Þ¥¯¥í¤ÎÀßÄê ]", 2, 0); + prt("[ マクロの設定 ]", 2, 0); #else prt("Interact with Macros", 2, 0); #endif @@ -3059,7 +3197,7 @@ void do_cmd_macros(void) /* Describe that action */ #ifdef JP - prt("¥Þ¥¯¥í¹ÔÆ°¤¬(¤â¤·¤¢¤ì¤Ð)²¼¤Ëɽ¼¨¤µ¤ì¤Þ¤¹:", 20, 0); + prt("マクロ行動が(もしあれば)下に表示されます:", 20, 0); #else prt("Current action (if any) shown below:", 20, 0); #endif @@ -3074,22 +3212,22 @@ void do_cmd_macros(void) /* Selections */ #ifdef JP - prt("(1) ¥æ¡¼¥¶¡¼ÀßÄê¥Õ¥¡¥¤¥ë¤Î¥í¡¼¥É", 4, 5); + prt("(1) ユーザー設定ファイルのロード", 4, 5); #else prt("(1) Load a user pref file", 4, 5); #endif #ifdef ALLOW_MACROS #ifdef JP - prt("(2) ¥Õ¥¡¥¤¥ë¤Ë¥Þ¥¯¥í¤òÄɲÃ", 5, 5); - prt("(3) ¥Þ¥¯¥í¤Î³Îǧ", 6, 5); - prt("(4) ¥Þ¥¯¥í¤ÎºîÀ®", 7, 5); - prt("(5) ¥Þ¥¯¥í¤Îºï½ü", 8, 5); - prt("(6) ¥Õ¥¡¥¤¥ë¤Ë¥­¡¼ÇÛÃÖ¤òÄɲÃ", 9, 5); - prt("(7) ¥­¡¼ÇÛÃ֤γÎǧ", 10, 5); - prt("(8) ¥­¡¼ÇÛÃ֤κîÀ®", 11, 5); - prt("(9) ¥­¡¼ÇÛÃ֤κï½ü", 12, 5); - prt("(0) ¥Þ¥¯¥í¹ÔÆ°¤ÎÆþÎÏ", 13, 5); + prt("(2) ファイルにマクロを追加", 5, 5); + prt("(3) マクロの確認", 6, 5); + prt("(4) マクロの作成", 7, 5); + prt("(5) マクロの削除", 8, 5); + prt("(6) ファイルにキー配置を追加", 9, 5); + prt("(7) キー配置の確認", 10, 5); + prt("(8) キー配置の作成", 11, 5); + prt("(9) キー配置の削除", 12, 5); + prt("(0) マクロ行動の入力", 13, 5); #else prt("(2) Append macros to a file", 5, 5); prt("(3) Query a macro", 6, 5); @@ -3106,7 +3244,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ", 16, 0); + prt("コマンド: ", 16, 0); #else prt("Command: ", 16, 0); #endif @@ -3125,7 +3263,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥æ¡¼¥¶¡¼ÀßÄê¥Õ¥¡¥¤¥ë¤Î¥í¡¼¥É", 16, 0); + prt("コマンド: ユーザー設定ファイルのロード", 16, 0); #else prt("Command: Load a user pref file", 16, 0); #endif @@ -3133,7 +3271,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 18, 0); + prt("ファイル: ", 18, 0); #else prt("File: ", 18, 0); #endif @@ -3150,7 +3288,7 @@ void do_cmd_macros(void) if (-2 == err) { #ifdef JP - msg_format("ɸ½à¤ÎÀßÄê¥Õ¥¡¥¤¥ë'%s'¤òÆɤ߹þ¤ß¤Þ¤·¤¿¡£", tmp); + msg_format("標準の設定ファイル'%s'を読み込みました。", tmp); #else msg_format("Loaded default '%s'.", tmp); #endif @@ -3159,7 +3297,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - msg_format("'%s'¤ÎÆɤ߹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡ª", tmp); + msg_format("'%s'の読み込みに失敗しました!", tmp); #else msg_format("Failed to load '%s'!"); #endif @@ -3167,7 +3305,7 @@ void do_cmd_macros(void) else { #ifdef JP - msg_format("'%s'¤òÆɤ߹þ¤ß¤Þ¤·¤¿¡£", tmp); + msg_format("'%s'を読み込みました。", tmp); #else msg_format("Loaded '%s'.", tmp); #endif @@ -3181,7 +3319,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥Þ¥¯¥í¤ò¥Õ¥¡¥¤¥ë¤ËÄɲ乤ë", 16, 0); + prt("コマンド: マクロをファイルに追加する", 16, 0); #else prt("Command: Append macros to a file", 16, 0); #endif @@ -3189,7 +3327,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 18, 0); + prt("ファイル: ", 18, 0); #else prt("File: ", 18, 0); #endif @@ -3206,7 +3344,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - msg_print("¥Þ¥¯¥í¤òÄɲä·¤Þ¤·¤¿¡£"); + msg_print("マクロを追加しました。"); #else msg_print("Appended macros."); #endif @@ -3220,7 +3358,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥Þ¥¯¥í¤Î³Îǧ", 16, 0); + prt("コマンド: マクロの確認", 16, 0); #else prt("Command: Query a macro", 16, 0); #endif @@ -3228,7 +3366,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥È¥ê¥¬¡¼¥­¡¼: ", 18, 0); + prt("トリガーキー: ", 18, 0); #else prt("Trigger: ", 18, 0); #endif @@ -3245,7 +3383,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - msg_print("¤½¤Î¥­¡¼¤Ë¤Ï¥Þ¥¯¥í¤ÏÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£"); + msg_print("そのキーにはマクロは定義されていません。"); #else msg_print("Found no macro."); #endif @@ -3266,7 +3404,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - msg_print("¥Þ¥¯¥í¤ò³Îǧ¤·¤Þ¤·¤¿¡£"); + msg_print("マクロを確認しました。"); #else msg_print("Found a macro."); #endif @@ -3279,7 +3417,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥Þ¥¯¥í¤ÎºîÀ®", 16, 0); + prt("コマンド: マクロの作成", 16, 0); #else prt("Command: Create a macro", 16, 0); #endif @@ -3287,7 +3425,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥È¥ê¥¬¡¼¥­¡¼: ", 18, 0); + prt("トリガーキー: ", 18, 0); #else prt("Trigger: ", 18, 0); #endif @@ -3301,14 +3439,14 @@ void do_cmd_macros(void) /* Help message */ #ifdef JP - c_prt(TERM_L_RED, "¥«¡¼¥½¥ë¥­¡¼¤Îº¸±¦¤Ç¥«¡¼¥½¥ë°ÌÃÖ¤ò°ÜÆ°¡£Backspace¤«Delete¤Ç°ìʸ»úºï½ü¡£", 22, 0); + c_prt(TERM_L_RED, "カーソルキーの左右でカーソル位置を移動。BackspaceかDeleteで一文字削除。", 22, 0); #else c_prt(TERM_L_RED, "Press Left/Right arrow keys to move cursor. Backspace/Delete to delete a char.", 22, 0); #endif /* Prompt */ #ifdef JP - prt("¥Þ¥¯¥í¹ÔÆ°: ", 20, 0); + prt("マクロ行動: ", 20, 0); #else prt("Action: ", 20, 0); #endif @@ -3328,7 +3466,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - msg_print("¥Þ¥¯¥í¤òÄɲä·¤Þ¤·¤¿¡£"); + msg_print("マクロを追加しました。"); #else msg_print("Added a macro."); #endif @@ -3341,7 +3479,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥Þ¥¯¥í¤Îºï½ü", 16, 0); + prt("コマンド: マクロの削除", 16, 0); #else prt("Command: Remove a macro", 16, 0); #endif @@ -3349,7 +3487,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥È¥ê¥¬¡¼¥­¡¼: ", 18, 0); + prt("トリガーキー: ", 18, 0); #else prt("Trigger: ", 18, 0); #endif @@ -3363,7 +3501,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - msg_print("¥Þ¥¯¥í¤òºï½ü¤·¤Þ¤·¤¿¡£"); + msg_print("マクロを削除しました。"); #else msg_print("Removed a macro."); #endif @@ -3375,7 +3513,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥­¡¼ÇÛÃÖ¤ò¥Õ¥¡¥¤¥ë¤ËÄɲ乤ë", 16, 0); + prt("コマンド: キー配置をファイルに追加する", 16, 0); #else prt("Command: Append keymaps to a file", 16, 0); #endif @@ -3383,7 +3521,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 18, 0); + prt("ファイル: ", 18, 0); #else prt("File: ", 18, 0); #endif @@ -3400,7 +3538,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - msg_print("¥­¡¼ÇÛÃÖ¤òÄɲä·¤Þ¤·¤¿¡£"); + msg_print("キー配置を追加しました。"); #else msg_print("Appended keymaps."); #endif @@ -3414,7 +3552,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥­¡¼ÇÛÃ֤γÎǧ", 16, 0); + prt("コマンド: キー配置の確認", 16, 0); #else prt("Command: Query a keymap", 16, 0); #endif @@ -3422,7 +3560,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("²¡¤¹¥­¡¼: ", 18, 0); + prt("押すキー: ", 18, 0); #else prt("Keypress: ", 18, 0); #endif @@ -3439,7 +3577,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - msg_print("¥­¡¼ÇÛÃÖ¤ÏÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£"); + msg_print("キー配置は定義されていません。"); #else msg_print("Found no keymap."); #endif @@ -3460,7 +3598,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - msg_print("¥­¡¼ÇÛÃÖ¤ò³Îǧ¤·¤Þ¤·¤¿¡£"); + msg_print("キー配置を確認しました。"); #else msg_print("Found a keymap."); #endif @@ -3473,7 +3611,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥­¡¼ÇÛÃ֤κîÀ®", 16, 0); + prt("コマンド: キー配置の作成", 16, 0); #else prt("Command: Create a keymap", 16, 0); #endif @@ -3481,7 +3619,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("²¡¤¹¥­¡¼: ", 18, 0); + prt("押すキー: ", 18, 0); #else prt("Keypress: ", 18, 0); #endif @@ -3495,14 +3633,14 @@ void do_cmd_macros(void) /* Help message */ #ifdef JP - c_prt(TERM_L_RED, "¥«¡¼¥½¥ë¥­¡¼¤Îº¸±¦¤Ç¥«¡¼¥½¥ë°ÌÃÖ¤ò°ÜÆ°¡£Backspace¤«Delete¤Ç°ìʸ»úºï½ü¡£", 22, 0); + c_prt(TERM_L_RED, "カーソルキーの左右でカーソル位置を移動。BackspaceかDeleteで一文字削除。", 22, 0); #else c_prt(TERM_L_RED, "Press Left/Right arrow keys to move cursor. Backspace/Delete to delete a char.", 22, 0); #endif /* Prompt */ #ifdef JP - prt("¹ÔÆ°: ", 20, 0); + prt("行動: ", 20, 0); #else prt("Action: ", 20, 0); #endif @@ -3525,7 +3663,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - msg_print("¥­¡¼ÇÛÃÖ¤òÄɲä·¤Þ¤·¤¿¡£"); + msg_print("キー配置を追加しました。"); #else msg_print("Added a keymap."); #endif @@ -3538,7 +3676,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥­¡¼ÇÛÃ֤κï½ü", 16, 0); + prt("コマンド: キー配置の削除", 16, 0); #else prt("Command: Remove a keymap", 16, 0); #endif @@ -3546,7 +3684,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - prt("²¡¤¹¥­¡¼: ", 18, 0); + prt("押すキー: ", 18, 0); #else prt("Keypress: ", 18, 0); #endif @@ -3563,7 +3701,7 @@ void do_cmd_macros(void) /* Prompt */ #ifdef JP - msg_print("¥­¡¼ÇÛÃÖ¤òºï½ü¤·¤Þ¤·¤¿¡£"); + msg_print("キー配置を削除しました。"); #else msg_print("Removed a keymap."); #endif @@ -3575,7 +3713,7 @@ void do_cmd_macros(void) { /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥Þ¥¯¥í¹ÔÆ°¤ÎÆþÎÏ", 16, 0); + prt("コマンド: マクロ行動の入力", 16, 0); #else prt("Command: Enter a new action", 16, 0); #endif @@ -3585,14 +3723,14 @@ void do_cmd_macros(void) /* Help message */ #ifdef JP - c_prt(TERM_L_RED, "¥«¡¼¥½¥ë¥­¡¼¤Îº¸±¦¤Ç¥«¡¼¥½¥ë°ÌÃÖ¤ò°ÜÆ°¡£Backspace¤«Delete¤Ç°ìʸ»úºï½ü¡£", 22, 0); + c_prt(TERM_L_RED, "カーソルキーの左右でカーソル位置を移動。BackspaceかDeleteで一文字削除。", 22, 0); #else c_prt(TERM_L_RED, "Press Left/Right arrow keys to move cursor. Backspace/Delete to delete a char.", 22, 0); #endif /* Prompt */ #ifdef JP - prt("¥Þ¥¯¥í¹ÔÆ°: ", 20, 0); + prt("マクロ行動: ", 20, 0); #else prt("Action: ", 20, 0); #endif @@ -3628,9 +3766,9 @@ void do_cmd_macros(void) static cptr lighting_level_str[F_LIT_MAX] = { #ifdef JP - "ɸ½à¿§", - "ÌÀ¿§", - "°Å¿§", + "標準色", + "明色", + "暗色", #else "standard", "brightly lit", @@ -3666,29 +3804,29 @@ static bool cmd_visuals_aux(int i, int *num, int max) static void print_visuals_menu(cptr choice_msg) { #ifdef JP - prt("²èÌÌɽ¼¨¤ÎÀßÄê", 1, 0); + prt("[ 画面表示の設定 ]", 1, 0); #else prt("Interact with Visuals", 1, 0); #endif /* Give some choices */ #ifdef JP - prt("(0) ¥æ¡¼¥¶¡¼ÀßÄê¥Õ¥¡¥¤¥ë¤Î¥í¡¼¥É", 3, 5); + prt("(0) ユーザー設定ファイルのロード", 3, 5); #else prt("(0) Load a user pref file", 3, 5); #endif #ifdef ALLOW_VISUALS #ifdef JP - prt("(1) ¥â¥ó¥¹¥¿¡¼¤Î ¿§/ʸ»ú ¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤¹", 4, 5); - prt("(2) ¥¢¥¤¥Æ¥à¤Î ¿§/ʸ»ú ¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤¹", 5, 5); - prt("(3) ÃÏ·Á¤Î ¿§/ʸ»ú ¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤¹", 6, 5); - prt("(4) ¥â¥ó¥¹¥¿¡¼¤Î ¿§/ʸ»ú ¤òÊѹ¹¤¹¤ë (¿ôÃÍÁàºî)", 7, 5); - prt("(5) ¥¢¥¤¥Æ¥à¤Î ¿§/ʸ»ú ¤òÊѹ¹¤¹¤ë (¿ôÃÍÁàºî)", 8, 5); - prt("(6) ÃÏ·Á¤Î ¿§/ʸ»ú ¤òÊѹ¹¤¹¤ë (¿ôÃÍÁàºî)", 9, 5); - prt("(7) ¥â¥ó¥¹¥¿¡¼¤Î ¿§/ʸ»ú ¤òÊѹ¹¤¹¤ë (¥·¥ó¥Ü¥ë¥¨¥Ç¥£¥¿)", 10, 5); - prt("(8) ¥¢¥¤¥Æ¥à¤Î ¿§/ʸ»ú ¤òÊѹ¹¤¹¤ë (¥·¥ó¥Ü¥ë¥¨¥Ç¥£¥¿)", 11, 5); - prt("(9) ÃÏ·Á¤Î ¿§/ʸ»ú ¤òÊѹ¹¤¹¤ë (¥·¥ó¥Ü¥ë¥¨¥Ç¥£¥¿)", 12, 5); + prt("(1) モンスターの 色/文字 をファイルに書き出す", 4, 5); + prt("(2) アイテムの 色/文字 をファイルに書き出す", 5, 5); + prt("(3) 地形の 色/文字 をファイルに書き出す", 6, 5); + prt("(4) モンスターの 色/文字 を変更する (数値操作)", 7, 5); + prt("(5) アイテムの 色/文字 を変更する (数値操作)", 8, 5); + prt("(6) 地形の 色/文字 を変更する (数値操作)", 9, 5); + prt("(7) モンスターの 色/文字 を変更する (シンボルエディタ)", 10, 5); + prt("(8) アイテムの 色/文字 を変更する (シンボルエディタ)", 11, 5); + prt("(9) 地形の 色/文字 を変更する (シンボルエディタ)", 12, 5); #else prt("(1) Dump monster attr/chars", 4, 5); prt("(2) Dump object attr/chars", 5, 5); @@ -3704,14 +3842,14 @@ static void print_visuals_menu(cptr choice_msg) #endif /* ALLOW_VISUALS */ #ifdef JP - prt("(R) ²èÌÌɽ¼¨ÊýË¡¤Î½é´ü²½", 13, 5); + prt("(R) 画面表示方法の初期化", 13, 5); #else prt("(R) Reset visuals", 13, 5); #endif /* Prompt */ #ifdef JP - prt(format("¥³¥Þ¥ó¥É: %s", choice_msg ? choice_msg : ""), 15, 0); + prt(format("コマンド: %s", choice_msg ? choice_msg : ""), 15, 0); #else prt(format("Command: %s", choice_msg ? choice_msg : ""), 15, 0); #endif @@ -3761,14 +3899,14 @@ void do_cmd_visuals(void) case '0': /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥æ¡¼¥¶¡¼ÀßÄê¥Õ¥¡¥¤¥ë¤Î¥í¡¼¥É", 15, 0); + prt("コマンド: ユーザー設定ファイルのロード", 15, 0); #else prt("Command: Load a user pref file", 15, 0); #endif /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 17, 0); + prt("ファイル: ", 17, 0); #else prt("File: ", 17, 0); #endif @@ -3794,14 +3932,14 @@ void do_cmd_visuals(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥â¥ó¥¹¥¿¡¼¤Î[¿§/ʸ»ú]¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤¹", 15, 0); + prt("コマンド: モンスターの[色/文字]をファイルに書き出します", 15, 0); #else prt("Command: Dump monster attr/chars", 15, 0); #endif /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 17, 0); + prt("ファイル: ", 17, 0); #else prt("File: ", 17, 0); #endif @@ -3820,7 +3958,7 @@ void do_cmd_visuals(void) /* Start dumping */ #ifdef JP - auto_dump_printf("\n# ¥â¥ó¥¹¥¿¡¼¤Î[¿§/ʸ»ú]¤ÎÀßÄê\n\n"); + auto_dump_printf("\n# モンスターの[色/文字]の設定\n\n"); #else auto_dump_printf("\n# Monster attr/char definitions\n\n"); #endif @@ -3846,7 +3984,7 @@ void do_cmd_visuals(void) /* Message */ #ifdef JP - msg_print("¥â¥ó¥¹¥¿¡¼¤Î[¿§/ʸ»ú]¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤·¤¿¡£"); + msg_print("モンスターの[色/文字]をファイルに書き出しました。"); #else msg_print("Dumped monster attr/chars."); #endif @@ -3861,14 +3999,14 @@ void do_cmd_visuals(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥¢¥¤¥Æ¥à¤Î[¿§/ʸ»ú]¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤¹", 15, 0); + prt("コマンド: アイテムの[色/文字]をファイルに書き出します", 15, 0); #else prt("Command: Dump object attr/chars", 15, 0); #endif /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 17, 0); + prt("ファイル: ", 17, 0); #else prt("File: ", 17, 0); #endif @@ -3887,7 +4025,7 @@ void do_cmd_visuals(void) /* Start dumping */ #ifdef JP - auto_dump_printf("\n# ¥¢¥¤¥Æ¥à¤Î[¿§/ʸ»ú]¤ÎÀßÄê\n\n"); + auto_dump_printf("\n# アイテムの[色/文字]の設定\n\n"); #else auto_dump_printf("\n# Object attr/char definitions\n\n"); #endif @@ -3930,7 +4068,7 @@ void do_cmd_visuals(void) /* Message */ #ifdef JP - msg_print("¥¢¥¤¥Æ¥à¤Î[¿§/ʸ»ú]¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤·¤¿¡£"); + msg_print("アイテムの[色/文字]をファイルに書き出しました。"); #else msg_print("Dumped object attr/chars."); #endif @@ -3945,14 +4083,14 @@ void do_cmd_visuals(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ÃÏ·Á¤Î[¿§/ʸ»ú]¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤¹", 15, 0); + prt("コマンド: 地形の[色/文字]をファイルに書き出します", 15, 0); #else prt("Command: Dump feature attr/chars", 15, 0); #endif /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 17, 0); + prt("ファイル: ", 17, 0); #else prt("File: ", 17, 0); #endif @@ -3971,7 +4109,7 @@ void do_cmd_visuals(void) /* Start dumping */ #ifdef JP - auto_dump_printf("\n# ÃÏ·Á¤Î[¿§/ʸ»ú]¤ÎÀßÄê\n\n"); + auto_dump_printf("\n# 地形の[色/文字]の設定\n\n"); #else auto_dump_printf("\n# Feature attr/char definitions\n\n"); #endif @@ -4002,7 +4140,7 @@ void do_cmd_visuals(void) /* Message */ #ifdef JP - msg_print("ÃÏ·Á¤Î[¿§/ʸ»ú]¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤·¤¿¡£"); + msg_print("地形の[色/文字]をファイルに書き出しました。"); #else msg_print("Dumped feature attr/chars."); #endif @@ -4014,14 +4152,14 @@ void do_cmd_visuals(void) case '4': { #ifdef JP - static cptr choice_msg = "¥â¥ó¥¹¥¿¡¼¤Î[¿§/ʸ»ú]¤òÊѹ¹¤·¤Þ¤¹"; + static cptr choice_msg = "モンスターの[色/文字]を変更します"; #else static cptr choice_msg = "Change monster attr/chars"; #endif static int r = 0; #ifdef JP - prt(format("¥³¥Þ¥ó¥É: %s", choice_msg), 15, 0); + prt(format("コマンド: %s", choice_msg), 15, 0); #else prt(format("Command: %s", choice_msg), 15, 0); #endif @@ -4041,7 +4179,7 @@ void do_cmd_visuals(void) /* Label the object */ #ifdef JP Term_putstr(5, 17, -1, TERM_WHITE, - format("¥â¥ó¥¹¥¿¡¼ = %d, ̾Á° = %-40.40s", + format("モンスター = %d, 名前 = %-40.40s", r, (r_name + r_ptr->name))); #else Term_putstr(5, 17, -1, TERM_WHITE, @@ -4052,7 +4190,7 @@ void do_cmd_visuals(void) /* Label the Default values */ #ifdef JP Term_putstr(10, 19, -1, TERM_WHITE, - format("½é´üÃÍ ¿§ / ʸ»ú = %3u / %3u", da, dc)); + format("初期値 色 / 文字 = %3u / %3u", da, dc)); #else Term_putstr(10, 19, -1, TERM_WHITE, format("Default attr/char = %3u / %3u", da, dc)); @@ -4064,7 +4202,7 @@ void do_cmd_visuals(void) /* Label the Current values */ #ifdef JP Term_putstr(10, 20, -1, TERM_WHITE, - format("¸½ºßÃÍ ¿§ / ʸ»ú = %3u / %3u", ca, cc)); + format("現在値 色 / 文字 = %3u / %3u", ca, cc)); #else Term_putstr(10, 20, -1, TERM_WHITE, format("Current attr/char = %3u / %3u", ca, cc)); @@ -4076,7 +4214,7 @@ void do_cmd_visuals(void) /* Prompt */ #ifdef JP Term_putstr(0, 22, -1, TERM_WHITE, - "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C/v/V/^V): "); + "コマンド (n/N/^N/a/A/^A/c/C/^C/v/V/^V): "); #else Term_putstr(0, 22, -1, TERM_WHITE, "Command (n/N/^N/a/A/^A/c/C/^C/v/V/^V): "); @@ -4137,14 +4275,14 @@ void do_cmd_visuals(void) case '5': { #ifdef JP - static cptr choice_msg = "¥¢¥¤¥Æ¥à¤Î[¿§/ʸ»ú]¤òÊѹ¹¤·¤Þ¤¹"; + static cptr choice_msg = "アイテムの[色/文字]を変更します"; #else static cptr choice_msg = "Change object attr/chars"; #endif static int k = 0; #ifdef JP - prt(format("¥³¥Þ¥ó¥É: %s", choice_msg), 15, 0); + prt(format("コマンド: %s", choice_msg), 15, 0); #else prt(format("Command: %s", choice_msg), 15, 0); #endif @@ -4164,18 +4302,18 @@ void do_cmd_visuals(void) /* Label the object */ #ifdef JP Term_putstr(5, 17, -1, TERM_WHITE, - format("¥¢¥¤¥Æ¥à = %d, ̾Á° = %-40.40s", - k, (k_name + k_ptr->name))); + format("アイテム = %d, 名前 = %-40.40s", + k, k_name + (!k_ptr->flavor ? k_ptr->name : k_ptr->flavor_name))); #else Term_putstr(5, 17, -1, TERM_WHITE, format("Object = %d, Name = %-40.40s", - k, (k_name + k_ptr->name))); + k, k_name + (!k_ptr->flavor ? k_ptr->name : k_ptr->flavor_name))); #endif /* Label the Default values */ #ifdef JP Term_putstr(10, 19, -1, TERM_WHITE, - format("½é´üÃÍ ¿§ / ʸ»ú = %3d / %3d", da, dc)); + format("初期値 色 / 文字 = %3d / %3d", da, dc)); #else Term_putstr(10, 19, -1, TERM_WHITE, format("Default attr/char = %3d / %3d", da, dc)); @@ -4187,7 +4325,7 @@ void do_cmd_visuals(void) /* Label the Current values */ #ifdef JP Term_putstr(10, 20, -1, TERM_WHITE, - format("¸½ºßÃÍ ¿§ / ʸ»ú = %3d / %3d", ca, cc)); + format("現在値 色 / 文字 = %3d / %3d", ca, cc)); #else Term_putstr(10, 20, -1, TERM_WHITE, format("Current attr/char = %3d / %3d", ca, cc)); @@ -4199,7 +4337,7 @@ void do_cmd_visuals(void) /* Prompt */ #ifdef JP Term_putstr(0, 22, -1, TERM_WHITE, - "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C/v/V/^V): "); + "コマンド (n/N/^N/a/A/^A/c/C/^C/v/V/^V): "); #else Term_putstr(0, 22, -1, TERM_WHITE, "Command (n/N/^N/a/A/^A/c/C/^C/v/V/^V): "); @@ -4228,7 +4366,7 @@ void do_cmd_visuals(void) break; } } - while (!k_info[k].name || k_info[k].flavor); + while (!k_info[k].name); } break; case 'a': @@ -4260,7 +4398,7 @@ void do_cmd_visuals(void) case '6': { #ifdef JP - static cptr choice_msg = "ÃÏ·Á¤Î[¿§/ʸ»ú]¤òÊѹ¹¤·¤Þ¤¹"; + static cptr choice_msg = "地形の[色/文字]を変更します"; #else static cptr choice_msg = "Change feature attr/chars"; #endif @@ -4268,7 +4406,7 @@ void do_cmd_visuals(void) static int lighting_level = F_LIT_STANDARD; #ifdef JP - prt(format("¥³¥Þ¥ó¥É: %s", choice_msg), 15, 0); + prt(format("コマンド: %s", choice_msg), 15, 0); #else prt(format("Command: %s", choice_msg), 15, 0); #endif @@ -4289,7 +4427,7 @@ void do_cmd_visuals(void) prt("", 17, 5); #ifdef JP Term_putstr(5, 17, -1, TERM_WHITE, - format("ÃÏ·Á = %d, ̾Á° = %s, ÌÀÅÙ = %s", + format("地形 = %d, 名前 = %s, 明度 = %s", f, (f_name + f_ptr->name), lighting_level_str[lighting_level])); #else Term_putstr(5, 17, -1, TERM_WHITE, @@ -4300,7 +4438,7 @@ void do_cmd_visuals(void) /* Label the Default values */ #ifdef JP Term_putstr(10, 19, -1, TERM_WHITE, - format("½é´üÃÍ ¿§ / ʸ»ú = %3d / %3d", da, dc)); + format("初期値 色 / 文字 = %3d / %3d", da, dc)); #else Term_putstr(10, 19, -1, TERM_WHITE, format("Default attr/char = %3d / %3d", da, dc)); @@ -4313,7 +4451,7 @@ void do_cmd_visuals(void) /* Label the Current values */ #ifdef JP Term_putstr(10, 20, -1, TERM_WHITE, - format("¸½ºßÃÍ ¿§ / ʸ»ú = %3d / %3d", ca, cc)); + format("現在値 色 / 文字 = %3d / %3d", ca, cc)); #else Term_putstr(10, 20, -1, TERM_WHITE, format("Current attr/char = %3d / %3d", ca, cc)); @@ -4325,7 +4463,7 @@ void do_cmd_visuals(void) /* Prompt */ #ifdef JP Term_putstr(0, 22, -1, TERM_WHITE, - "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C/l/L/^L/d/D/^D/v/V/^V): "); + "コマンド (n/N/^N/a/A/^A/c/C/^C/l/L/^L/d/D/^D/v/V/^V): "); #else Term_putstr(0, 22, -1, TERM_WHITE, "Command (n/N/^N/a/A/^A/c/C/^C/l/L/^L/d/D/^D/v/V/^V): "); @@ -4417,7 +4555,7 @@ void do_cmd_visuals(void) /* Message */ #ifdef JP - msg_print("²èÌ̾å¤Î[¿§/ʸ»ú]¤ò½é´üÃͤ˥ꥻ¥Ã¥È¤·¤Þ¤·¤¿¡£"); + msg_print("画面上の[色/文字]を初期値にリセットしました。"); #else msg_print("Visual attr/char tables reset."); #endif @@ -4470,7 +4608,7 @@ void do_cmd_colors(void) /* Ask for a choice */ #ifdef JP - prt("[ ¥«¥é¡¼¤ÎÀßÄê ]", 2, 0); + prt("[ カラーの設定 ]", 2, 0); #else prt("Interact with Colors", 2, 0); #endif @@ -4478,15 +4616,15 @@ void do_cmd_colors(void) /* Give some choices */ #ifdef JP - prt("(1) ¥æ¡¼¥¶¡¼ÀßÄê¥Õ¥¡¥¤¥ë¤Î¥í¡¼¥É", 4, 5); + prt("(1) ユーザー設定ファイルのロード", 4, 5); #else prt("(1) Load a user pref file", 4, 5); #endif #ifdef ALLOW_COLORS #ifdef JP - prt("(2) ¥«¥é¡¼¤ÎÀßÄê¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤¹", 5, 5); - prt("(3) ¥«¥é¡¼¤ÎÀßÄê¤òÊѹ¹¤¹¤ë", 6, 5); + prt("(2) カラーの設定をファイルに書き出す", 5, 5); + prt("(3) カラーの設定を変更する", 6, 5); #else prt("(2) Dump colors", 5, 5); prt("(3) Modify colors", 6, 5); @@ -4496,7 +4634,7 @@ void do_cmd_colors(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ", 8, 0); + prt("コマンド: ", 8, 0); #else prt("Command: ", 8, 0); #endif @@ -4513,7 +4651,7 @@ void do_cmd_colors(void) { /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥æ¡¼¥¶¡¼ÀßÄê¥Õ¥¡¥¤¥ë¤ò¥í¡¼¥É¤·¤Þ¤¹", 8, 0); + prt("コマンド: ユーザー設定ファイルをロードします", 8, 0); #else prt("Command: Load a user pref file", 8, 0); #endif @@ -4521,7 +4659,7 @@ void do_cmd_colors(void) /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 10, 0); + prt("ファイル: ", 10, 0); #else prt("File: ", 10, 0); #endif @@ -4552,7 +4690,7 @@ void do_cmd_colors(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥«¥é¡¼¤ÎÀßÄê¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤¹", 8, 0); + prt("コマンド: カラーの設定をファイルに書き出します", 8, 0); #else prt("Command: Dump colors", 8, 0); #endif @@ -4560,7 +4698,7 @@ void do_cmd_colors(void) /* Prompt */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë: ", 10, 0); + prt("ファイル: ", 10, 0); #else prt("File: ", 10, 0); #endif @@ -4580,7 +4718,7 @@ void do_cmd_colors(void) /* Start dumping */ #ifdef JP - auto_dump_printf("\n# ¥«¥é¡¼¤ÎÀßÄê\n\n"); + auto_dump_printf("\n# カラーの設定\n\n"); #else auto_dump_printf("\n# Color redefinitions\n\n"); #endif @@ -4594,7 +4732,7 @@ void do_cmd_colors(void) int bv = angband_color_table[i][3]; #ifdef JP - cptr name = "̤ÃÎ"; + cptr name = "未知"; #else cptr name = "unknown"; #endif @@ -4608,7 +4746,7 @@ void do_cmd_colors(void) /* Dump a comment */ #ifdef JP - auto_dump_printf("# ¥«¥é¡¼ '%s'\n", name); + auto_dump_printf("# カラー '%s'\n", name); #else auto_dump_printf("# Color '%s'\n", name); #endif @@ -4623,7 +4761,7 @@ void do_cmd_colors(void) /* Message */ #ifdef JP - msg_print("¥«¥é¡¼¤ÎÀßÄê¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤·¤¿¡£"); + msg_print("カラーの設定をファイルに書き出しました。"); #else msg_print("Dumped color redefinitions."); #endif @@ -4637,7 +4775,7 @@ void do_cmd_colors(void) /* Prompt */ #ifdef JP - prt("¥³¥Þ¥ó¥É: ¥«¥é¡¼¤ÎÀßÄê¤òÊѹ¹¤·¤Þ¤¹", 8, 0); + prt("コマンド: カラーの設定を変更します", 8, 0); #else prt("Command: Modify colors", 8, 0); #endif @@ -4664,7 +4802,7 @@ void do_cmd_colors(void) /* Describe the color */ #ifdef JP - name = ((a < 16) ? color_names[a] : "̤ÄêµÁ"); + name = ((a < 16) ? color_names[a] : "未定義"); #else name = ((a < 16) ? color_names[a] : "undefined"); #endif @@ -4673,7 +4811,7 @@ void do_cmd_colors(void) /* Describe the color */ #ifdef JP Term_putstr(5, 10, -1, TERM_WHITE, - format("¥«¥é¡¼ = %d, ̾Á° = %s", a, name)); + format("カラー = %d, 名前 = %s", a, name)); #else Term_putstr(5, 10, -1, TERM_WHITE, format("Color = %d, Name = %s", a, name)); @@ -4691,7 +4829,7 @@ void do_cmd_colors(void) /* Prompt */ #ifdef JP Term_putstr(0, 14, -1, TERM_WHITE, - "¥³¥Þ¥ó¥É (n/N/k/K/r/R/g/G/b/B): "); + "コマンド (n/N/k/K/r/R/g/G/b/B): "); #else Term_putstr(0, 14, -1, TERM_WHITE, "Command (n/N/k/K/r/R/g/G/b/B): "); @@ -4754,7 +4892,7 @@ void do_cmd_note(void) /* Input */ #ifdef JP - if (!get_string("¥á¥â: ", buf, 60)) return; + if (!get_string("メモ: ", buf, 60)) return; #else if (!get_string("Note: ", buf, 60)) return; #endif @@ -4765,7 +4903,7 @@ void do_cmd_note(void) /* Add the note to the message recall */ #ifdef JP - msg_format("¥á¥â: %s", buf); + msg_format("メモ: %s", buf); #else msg_format("Note: %s", buf); #endif @@ -4781,7 +4919,7 @@ void do_cmd_version(void) /* Silly message */ #ifdef JP - msg_format("ÊѶòÈÚÅÜ(Hengband) %d.%d.%d", + msg_format("変愚蛮怒(Hengband) %d.%d.%d", FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH); #else msg_format("You are playing Hengband %d.%d.%d.", @@ -4797,67 +4935,67 @@ void do_cmd_version(void) static cptr do_cmd_feeling_text[11] = { #ifdef JP - "¤³¤Î³¬¤ÎÊ·°Ïµ¤¤ò´¶¤¸¤È¤ì¤Ê¤«¤Ã¤¿...", + "この階の雰囲気を感じとれなかった...", #else "Looks like any other level.", #endif #ifdef JP - "¤³¤Î³¬¤Ë¤Ï²¿¤«ÆÃÊ̤ʤâ¤Î¤¬¤¢¤ë¤è¤¦¤Êµ¤¤¬¤¹¤ë¡£", + "この階には何か特別なものがあるような気がする。", #else "You feel there is something special about this level.", #endif #ifdef JP - "¶²¤í¤·¤¤»à¤Î¸¸¤¬ÌܤËÉ⤫¤Ó¡¢µ¤À䤷¤½¤¦¤Ë¤Ê¤Ã¤¿¡ª", + "恐ろしい死の幻が目に浮かび、気絶しそうになった!", #else "You nearly faint as horrible visions of death fill your mind!", #endif #ifdef JP - "¤³¤Î³¬¤Ï¤È¤Æ¤â´í¸±¤Ê¤è¤¦¤À¡£", + "この階はとても危険なようだ。", #else "This level looks very dangerous.", #endif #ifdef JP - "¤È¤Æ¤â°­¤¤Í½´¶¤¬¤¹¤ë...", + "とても悪い予感がする...", #else "You have a very bad feeling...", #endif #ifdef JP - "°­¤¤Í½´¶¤¬¤¹¤ë...", + "悪い予感がする...", #else "You have a bad feeling...", #endif #ifdef JP - "²¿¤«¶ÛÄ¥¤¹¤ë¡£", + "何か緊張する。", #else "You feel nervous.", #endif #ifdef JP - "¾¯¤·ÉÔ±¿¤Êµ¤¤¬¤¹¤ë...", + "少し不運な気がする...", #else "You feel your luck is turning...", #endif #ifdef JP - "¤³¤Î¾ì½ê¤Ï¹¥¤­¤Ë¤Ê¤ì¤Ê¤¤¡£", + "この場所は好きになれない。", #else "You don't like the look of this place.", #endif #ifdef JP - "¤³¤Î³¬¤Ï¤½¤ì¤Ê¤ê¤Ë°ÂÁ´¤Ê¤è¤¦¤À¡£", + "この階はそれなりに安全なようだ。", #else "This level looks reasonably safe.", #endif #ifdef JP - "¤Ê¤ó¤ÆÂà¶þ¤Ê¤È¤³¤í¤À..." + "なんて退屈なところだ..." #else "What a boring place..." #endif @@ -4867,67 +5005,67 @@ static cptr do_cmd_feeling_text[11] = static cptr do_cmd_feeling_text_combat[11] = { #ifdef JP - "¤³¤Î³¬¤ÎÊ·°Ïµ¤¤ò´¶¤¸¤È¤ì¤Ê¤«¤Ã¤¿...", + "この階の雰囲気を感じとれなかった...", #else "Looks like any other level.", #endif #ifdef JP - "¤³¤Î³¬¤Ë¤Ï²¿¤«ÆÃÊ̤ʤâ¤Î¤¬¤¢¤ë¤è¤¦¤Êµ¤¤¬¤¹¤ë¡£", + "この階には何か特別なものがあるような気がする。", #else "You feel there is something special about this level.", #endif #ifdef JP - "º£Ìë¤â¤Þ¤¿¡¢Ã¯¤«¤¬Ì¿¤òÍî¤È¤¹...", + "今夜もまた、誰かが命を落とす...", #else "You nearly faint as horrible visions of death fill your mind!", #endif #ifdef JP - "¤³¤Î³¬¤Ï¤È¤Æ¤â´í¸±¤Ê¤è¤¦¤À¡£", + "この階はとても危険なようだ。", #else "This level looks very dangerous.", #endif #ifdef JP - "¤È¤Æ¤â°­¤¤Í½´¶¤¬¤¹¤ë...", + "とても悪い予感がする...", #else "You have a very bad feeling...", #endif #ifdef JP - "°­¤¤Í½´¶¤¬¤¹¤ë...", + "悪い予感がする...", #else "You have a bad feeling...", #endif #ifdef JP - "²¿¤«¶ÛÄ¥¤¹¤ë¡£", + "何か緊張する。", #else "You feel nervous.", #endif #ifdef JP - "¾¯¤·ÉÔ±¿¤Êµ¤¤¬¤¹¤ë...", + "少し不運な気がする...", #else "You feel your luck is turning...", #endif #ifdef JP - "¤³¤Î¾ì½ê¤Ï¹¥¤­¤Ë¤Ê¤ì¤Ê¤¤¡£", + "この場所は好きになれない。", #else "You don't like the look of this place.", #endif #ifdef JP - "¤³¤Î³¬¤Ï¤½¤ì¤Ê¤ê¤Ë°ÂÁ´¤Ê¤è¤¦¤À¡£", + "この階はそれなりに安全なようだ。", #else "This level looks reasonably safe.", #endif #ifdef JP - "¤Ê¤ó¤ÆÂà¶þ¤Ê¤È¤³¤í¤À..." + "なんて退屈なところだ..." #else "What a boring place..." #endif @@ -4937,17 +5075,17 @@ static cptr do_cmd_feeling_text_combat[11] = static cptr do_cmd_feeling_text_lucky[11] = { #ifdef JP - "¤³¤Î³¬¤ÎÊ·°Ïµ¤¤ò´¶¤¸¤È¤ì¤Ê¤«¤Ã¤¿...", - "¤³¤Î³¬¤Ë¤Ï²¿¤«ÆÃÊ̤ʤâ¤Î¤¬¤¢¤ë¤è¤¦¤Êµ¤¤¬¤¹¤ë¡£", - "¤³¤Î³¬¤Ï¤³¤Î¾å¤Ê¤¯ÁÇÀ²¤é¤·¤¤´¶¤¸¤¬¤¹¤ë¡£", - "ÁÇÀ²¤é¤·¤¤´¶¤¸¤¬¤¹¤ë...", - "¤È¤Æ¤âÎɤ¤´¶¤¸¤¬¤¹¤ë...", - "Îɤ¤´¶¤¸¤¬¤¹¤ë...", - "¤Á¤ç¤Ã¤È¹¬±¿¤Ê´¶¤¸¤¬¤¹¤ë...", - "¿¾¯¤Ï±¿¤¬¸þ¤¤¤Æ¤­¤¿¤«...", - "¸«¤¿´¶¤¸°­¤¯¤Ï¤Ê¤¤...", - "Á´Á³ÂÌÌܤȤ¤¤¦¤³¤È¤Ï¤Ê¤¤¤¬...", - "¤Ê¤ó¤ÆÂà¶þ¤Ê¤È¤³¤í¤À..." + "この階の雰囲気を感じとれなかった...", + "この階には何か特別なものがあるような気がする。", + "この階はこの上なく素晴らしい感じがする。", + "素晴らしい感じがする...", + "とても良い感じがする...", + "良い感じがする...", + "ちょっと幸運な感じがする...", + "多少は運が向いてきたか...", + "見た感じ悪くはない...", + "全然駄目ということはないが...", + "なんて退屈なところだ..." #else "Looks like any other level.", "You feel there is something special about this level.", @@ -4974,7 +5112,7 @@ void do_cmd_feeling(void) if (p_ptr->inside_quest && !random_quest_number(dun_level)) { #ifdef JP - msg_print("ŵ·¿Åª¤Ê¥¯¥¨¥¹¥È¤Î¥À¥ó¥¸¥ç¥ó¤Î¤è¤¦¤À¡£"); + msg_print("典型的なクエストのダンジョンのようだ。"); #else msg_print("Looks like a typical quest level."); #endif @@ -4986,13 +5124,13 @@ void do_cmd_feeling(void) else if (p_ptr->town_num && !dun_level) { #ifdef JP - if (!strcmp(town[p_ptr->town_num].name, "¹ÓÌî")) + if (!strcmp(town[p_ptr->town_num].name, "荒野")) #else if (!strcmp(town[p_ptr->town_num].name, "wilderness")) #endif { #ifdef JP - msg_print("²¿¤«¤¢¤ê¤½¤¦¤Ê¹ÓÌî¤Î¤è¤¦¤À¡£"); + msg_print("何かありそうな荒野のようだ。"); #else msg_print("Looks like a strange wilderness."); #endif @@ -5002,7 +5140,7 @@ void do_cmd_feeling(void) else { #ifdef JP - msg_print("ŵ·¿Åª¤ÊÄ®¤Î¤è¤¦¤À¡£"); + msg_print("典型的な町のようだ。"); #else msg_print("Looks like a typical town."); #endif @@ -5015,7 +5153,7 @@ void do_cmd_feeling(void) else if (!dun_level) { #ifdef JP - msg_print("ŵ·¿Åª¤Ê¹ÓÌî¤Î¤è¤¦¤À¡£"); + msg_print("典型的な荒野のようだ。"); #else msg_print("Looks like a typical wilderness."); #endif @@ -5041,67 +5179,71 @@ void do_cmd_feeling(void) static cptr monster_group_text[] = { #ifdef JP - "¥æ¥Ë¡¼¥¯", /* "Uniques" */ - "¾èÇϲÄǽ¤Ê¥â¥ó¥¹¥¿¡¼", /* "Riding" */ - "¥¢¥ê", - "¥³¥¦¥â¥ê", - "¥à¥«¥Ç", - "¥É¥é¥´¥ó", - "ÌܶÌ", - "¥Í¥³", - "¥´¡¼¥ì¥à", - "ɸ½à¿Í´Ö·¿À¸Êª", - "¥Ù¥È¥Ù¥È", - "¥¼¥ê¡¼", - "¥³¥Ü¥ë¥É", - "¿åÀ³À¸Êª", - "¥â¥ë¥É", - "¥Ê¡¼¥¬", - "¥ª¡¼¥¯", - "¿Í´Ö", - "»Í­½Ã", - "¥Í¥º¥ß", - "¥¹¥±¥ë¥È¥ó", - "¥Ç¡¼¥â¥ó", - "¥Ü¥ë¥Æ¥Ã¥¯¥¹", - "¥¤¥â¥à¥·/Âç·²", + "ユニーク", /* "Uniques" */ + "乗馬可能なモンスター", /* "Riding" */ + "賞金首", /* "Wanted */ + "アンバーの王族", /* "Ambertite" */ + "アリ", + "コウモリ", + "ムカデ", + "ドラゴン", + "目玉", + "ネコ", + "ゴーレム", + "標準人間型生物", + "ベトベト", + "ゼリー", + "コボルド", + "水棲生物", + "モルド", + "ナーガ", + "オーク", + "人間", + "四足獣", + "ネズミ", + "スケルトン", + "デーモン", + "ボルテックス", + "イモムシ/大群", /* "unused", */ - "¥¤¡¼¥¯", - "¥¾¥ó¥Ó/¥ß¥¤¥é", - "Å·»È", - "Ä»", - "¸¤", - /* "¸ÅÂå¥É¥é¥´¥ó/¥ï¥¤¥¢¡¼¥à", */ - "¥¨¥ì¥á¥ó¥¿¥ë", - "¥È¥ó¥Ü", - "¥´¡¼¥¹¥È", - "»¨¼ï", - "º«Ãî", - "¥Ø¥Ó", - "¥­¥é¡¼¡¦¥Ó¡¼¥È¥ë", - "¥ê¥Ã¥Á", - "¿¼ó¤Îà¨ÃîÎà", - "Ææ¤ÎÀ¸Êª", - "¥ª¡¼¥¬", - "µðÂç¿Í´Ö·¿À¸Êª", - "¥¯¥¤¥ë¥¹¥ë¥°", - "à¨ÃîÎà/ξÀ¸Îà", - "ÃØéá/¥µ¥½¥ê/¥À¥Ë", - "¥È¥í¥ë", - /* "¾åµé¥Ç¡¼¥â¥ó", */ - "¥Ð¥ó¥Ñ¥¤¥¢", - "¥ï¥¤¥È/¥ì¥¤¥¹/Åù", - "¥¾¡¼¥ó/¥¶¥ì¥ó/Åù", - "¥¤¥¨¥Æ¥£", - "¥Ï¥¦¥ó¥É", - "¥ß¥ß¥Ã¥¯", - "ÊÉ/¿¢Êª/µ¤ÂÎ", - "¤ª¤Ð¤±¥­¥Î¥³", - "µåÂÎ", - "¥×¥ì¥¤¥ä¡¼", + "イーク", + "ゾンビ/ミイラ", + "天使", + "é³¥", + "犬", + /* "古代ドラゴン/ワイアーム", */ + "エレメンタル", + "トンボ", + "ゴースト", + "雑種", + "昆虫", + "ヘビ", + "キラー・ビートル", + "リッチ", + "多首の爬虫類", + "謎の生物", + "オーガ", + "巨大人間型生物", + "クイルスルグ", + "爬虫類/両生類", + "蜘蛛/サソリ/ダニ", + "トロル", + /* "上級デーモン", */ + "バンパイア", + "ワイト/レイス/等", + "ゾーン/ザレン/等", + "イエティ", + "ハウンド", + "ミミック", + "壁/植物/気体", + "おばけキノコ", + "球体", + "プレイヤー", #else "Uniques", "Ridable monsters", + "Wanted monsters", + "Ambertite", "Ant", "Bat", "Centipede", @@ -5171,6 +5313,8 @@ static cptr monster_group_char[] = { (char *) -1L, (char *) -2L, + (char *) -3L, + (char *) -4L, "a", "b", "c", @@ -5276,6 +5420,13 @@ static int collect_monsters(int grp_cur, s16b mon_idx[], byte mode) /* XXX Hack -- Check if this is the "Riding" group */ bool grp_riding = (monster_group_char[grp_cur] == (char *) -2L); + /* XXX Hack -- Check if this is the "Wanted" group */ + bool grp_wanted = (monster_group_char[grp_cur] == (char *) -3L); + + /* XXX Hack -- Check if this is the "Amberite" group */ + bool grp_amberite = (monster_group_char[grp_cur] == (char *) -4L); + + /* Check every race */ for (i = 0; i < max_r_idx; i++) { @@ -5298,6 +5449,27 @@ static int collect_monsters(int grp_cur, s16b mon_idx[], byte mode) if (!(r_ptr->flags7 & RF7_RIDING)) continue; } + else if (grp_wanted) + { + bool wanted = FALSE; + int j; + for (j = 0; j < MAX_KUBI; j++) + { + if (kubi_r_idx[j] == i || kubi_r_idx[j] - 10000 == i || + (p_ptr->today_mon && p_ptr->today_mon == i)) + { + wanted = TRUE; + break; + } + } + if (!wanted) continue; + } + + else if (grp_amberite) + { + if (!(r_ptr->flags3 & RF3_AMBERITE)) continue; + } + else { /* Check for race in the group */ @@ -5332,48 +5504,48 @@ static int collect_monsters(int grp_cur, s16b mon_idx[], byte mode) static cptr object_group_text[] = { #ifdef JP - "¥­¥Î¥³", /* "Mushrooms" */ - "Ìô", /* "Potions" */ - "Ìý¤Ä¤Ü", /* "Flasks" */ - "´¬Êª", /* "Scrolls" */ - "»ØÎØ", /* "Rings" */ - "¥¢¥ß¥å¥ì¥Ã¥È", /* "Amulets" */ - "Å«", /* "Whistle" */ - "¸÷¸»", /* "Lanterns" */ - "ËâË¡ËÀ", /* "Wands" */ - "¾ó", /* "Staffs" */ - "¥í¥Ã¥É", /* "Rods" */ - "¥«¡¼¥É", /* "Cards" */ - "¥­¥ã¥×¥Á¥ã¡¼¡¦¥Ü¡¼¥ë", - "ÍÓÈé»æ", - "¤¯¤µ¤Ó", - "È¢", - "¿Í·Á", - "Áü", - "¥´¥ß", - "¶õ¤Î¥Ó¥ó", - "¹ü", - "»àÂÎ", - "Åá·õÎà", /* "Swords" */ - "Æß´ï", /* "Blunt Weapons" */ - "ĹÊÁÉð´ï", /* "Polearms" */ - "ºÎ·¡Æ»¶ñ", /* "Diggers" */ - "Èô¤ÓÆ»¶ñ", /* "Bows" */ - "ÃÆ", - "Ìð", - "¥Ü¥ë¥È", - "·ÚÁõ³»", /* "Soft Armor" */ - "½ÅÁõ³»", /* "Hard Armor" */ - "¥É¥é¥´¥ó³»", /* "Dragon Armor" */ - "½â", /* "Shields" */ - "¥¯¥í¡¼¥¯", /* "Cloaks" */ - "äƼê", /* "Gloves" */ - "¥Ø¥ë¥á¥Ã¥È", /* "Helms" */ - "´§", /* "Crowns" */ - "¥Ö¡¼¥Ä", /* "Boots" */ - "ËâË¡½ñ", - "ºâÊõ", - "²¿¤«", + "キノコ", /* "Mushrooms" */ + "薬", /* "Potions" */ + "油つぼ", /* "Flasks" */ + "巻物", /* "Scrolls" */ + "指輪", /* "Rings" */ + "アミュレット", /* "Amulets" */ + "笛", /* "Whistle" */ + "光源", /* "Lanterns" */ + "魔法棒", /* "Wands" */ + "杖", /* "Staffs" */ + "ロッド", /* "Rods" */ + "カード", /* "Cards" */ + "キャプチャー・ボール", + "羊皮紙", + "くさび", + "ç®±", + "人形", + "像", + "ゴミ", + "空のビン", + "骨", + "死体", + "刀剣類", /* "Swords" */ + "鈍器", /* "Blunt Weapons" */ + "長柄武器", /* "Polearms" */ + "採掘道具", /* "Diggers" */ + "飛び道具", /* "Bows" */ + "å¼¾", + "矢", + "ボルト", + "軽装鎧", /* "Soft Armor" */ + "重装鎧", /* "Hard Armor" */ + "ドラゴン鎧", /* "Dragon Armor" */ + "盾", /* "Shields" */ + "クローク", /* "Cloaks" */ + "籠手", /* "Gloves" */ + "ヘルメット", /* "Helms" */ + "冠", /* "Crowns" */ + "ブーツ", /* "Boots" */ + "魔法書", + "財宝", + "何か", #else "Mushrooms", "Potions", @@ -5520,7 +5692,7 @@ static int collect_objects(int grp_cur, int object_idx[], byte mode) if (TV_LIFE_BOOK == group_tval) { /* Hack -- All spell books */ - if (TV_LIFE_BOOK <= k_ptr->tval && k_ptr->tval <= TV_HISSATSU_BOOK) + if (TV_LIFE_BOOK <= k_ptr->tval && k_ptr->tval <= TV_HEX_BOOK) { /* Add the object */ object_idx[object_cnt++] = i; @@ -5672,7 +5844,7 @@ void do_cmd_load_screen(void) /* Oops */ if (!fff) { #ifdef JP - msg_format("%s ¤ò³«¤¯¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", buf); + msg_format("%s を開くことができませんでした。", buf); #else msg_format("Failed to open %s.", buf); #endif @@ -5751,7 +5923,7 @@ void do_cmd_load_screen(void) /* Message */ #ifdef JP - prt("¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤µ¤ì¤¿²èÌÌ(µ­Ç°»£±Æ)¤ò¥í¡¼¥É¤·¤Þ¤·¤¿¡£", 0, 0); + prt("ファイルに書き出された画面(記念撮影)をロードしました。", 0, 0); #else msg_print("Screen dump loaded."); #endif @@ -5769,16 +5941,16 @@ void do_cmd_load_screen(void) cptr inven_res_label = #ifdef JP - " »ÀÅŲÐÎäÆǸ÷°ÇÇ˹ì¹ö°øÆÙÎô ÌÕÉÝÍðáãÆ©Ì¿´¶¾ÃÉüÉâ"; + " 酸電火冷毒光闇破轟獄因沌劣 盲怖乱痺透命感消復浮"; #else " AcElFiCoPoLiDkShSoNtNxCaDi BlFeCfFaSeHlEpSdRgLv"; #endif #ifdef JP -#define IM_FLAG_STR "¡ö" -#define HAS_FLAG_STR "¡Ü" -#define NO_FLAG_STR "¡¦" +#define IM_FLAG_STR "*" +#define HAS_FLAG_STR "+" +#define NO_FLAG_STR "・" #else #define IM_FLAG_STR "* " #define HAS_FLAG_STR "+ " @@ -5847,7 +6019,7 @@ static void do_cmd_knowledge_inven_aux(FILE *fff, object_type *o_ptr, int *j, by if (!(o_ptr->ident & (IDENT_MENTAL))) { #ifdef JP - fputs("-------ÉÔÌÀ--------------- -------ÉÔÌÀ---------\n", fff); + fputs("-------不明--------------- -------不明---------\n", fff); #else fputs("-------unknown------------ -------unknown------\n", fff); #endif @@ -5877,7 +6049,7 @@ static void do_cmd_knowledge_inven_aux(FILE *fff, object_type *o_ptr, int *j, by print_flag(TR_RES_CONF); print_flag(TR_FREE_ACT); print_flag(TR_SEE_INVIS); - print_flag(TR_HOLD_LIFE); + print_flag(TR_HOLD_EXP); print_flag(TR_TELEPATHY); print_flag(TR_SLOW_DIGEST); print_flag(TR_REGEN); @@ -5916,7 +6088,7 @@ static void do_cmd_knowledge_inven(void) if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -5935,7 +6107,7 @@ static void do_cmd_knowledge_inven(void) } #ifdef JP - strcpy(where, "Áõ"); + strcpy(where, "装"); #else strcpy(where, "E "); #endif @@ -5945,7 +6117,7 @@ static void do_cmd_knowledge_inven(void) } #ifdef JP - strcpy(where, "»ý"); + strcpy(where, "持"); #else strcpy(where, "I "); #endif @@ -5956,7 +6128,7 @@ static void do_cmd_knowledge_inven(void) st_ptr = &town[1].store[STORE_HOME]; #ifdef JP - strcpy(where, "²È"); + strcpy(where, "家"); #else strcpy(where, "H "); #endif @@ -5972,7 +6144,7 @@ static void do_cmd_knowledge_inven(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "*´ÕÄê*ºÑ¤ßÉð´ï/Ëɶñ¤ÎÂÑÀ­¥ê¥¹¥È", 0, 0); + show_file(TRUE, file_name, "*鑑定*済み武器/防具の耐性リスト", 0, 0); #else show_file(TRUE, file_name, "Resistances of *identified* equipment", 0, 0); #endif @@ -6025,7 +6197,7 @@ void do_cmd_save_screen_html_aux(char *filename, int message) if (!fff) { if (message) { #ifdef JP - msg_format("¥Õ¥¡¥¤¥ë %s ¤ò³«¤±¤Þ¤»¤ó¤Ç¤·¤¿¡£", filename); + msg_format("ファイル %s を開けませんでした。", filename); #else msg_format("Failed to open file %s.", filename); #endif @@ -6044,7 +6216,7 @@ void do_cmd_save_screen_html_aux(char *filename, int message) tmpfff = my_fopen(buf, "r"); if (!tmpfff) { for (i = 0; html_head[i]; i++) - fprintf(fff, html_head[i]); + fputs(html_head[i], fff); } else { yomikomu = 0; @@ -6106,7 +6278,7 @@ void do_cmd_save_screen_html_aux(char *filename, int message) if (!tmpfff) { for (i = 0; html_foot[i]; i++) - fprintf(fff, html_foot[i]); + fputs(html_foot[i], fff); } else { rewind(tmpfff); @@ -6134,7 +6306,7 @@ void do_cmd_save_screen_html_aux(char *filename, int message) /* Message */ if (message) { #ifdef JP - msg_print("²èÌÌ(µ­Ç°»£±Æ)¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤·¤¿¡£"); + msg_print("画面(記念撮影)をファイルに書き出しました。"); #else msg_print("Screen dump saved."); #endif @@ -6154,7 +6326,7 @@ static void do_cmd_save_screen_html(void) char buf[1024], tmp[256] = "screen.html"; #ifdef JP - if (!get_string("¥Õ¥¡¥¤¥ë̾: ", tmp, 80)) + if (!get_string("ファイル名: ", tmp, 80)) #else if (!get_string("File name: ", tmp, 80)) #endif @@ -6186,7 +6358,7 @@ void do_cmd_save_screen(void) int wid, hgt; #ifdef JP - prt("µ­Ç°»£±Æ¤·¤Þ¤¹¤«¡© [(y)es/(h)tml/(n)o] ", 0, 0); + prt("記念撮影しますか? [(y)es/(h)tml/(n)o] ", 0, 0); #else prt("Save screen dump? [(y)es/(h)tml/(n)o] ", 0, 0); #endif @@ -6257,7 +6429,7 @@ void do_cmd_save_screen(void) if (!fff) { #ifdef JP - msg_format("¥Õ¥¡¥¤¥ë %s ¤ò³«¤±¤Þ¤»¤ó¤Ç¤·¤¿¡£", buf); + msg_format("ファイル %s を開けませんでした。", buf); #else msg_format("Failed to open file %s.", buf); #endif @@ -6323,7 +6495,7 @@ void do_cmd_save_screen(void) /* Message */ #ifdef JP - msg_print("²èÌÌ(µ­Ç°»£±Æ)¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤·¤Þ¤·¤¿¡£"); + msg_print("画面(記念撮影)をファイルに書き出しました。"); #else msg_print("Screen dump saved."); #endif @@ -6454,7 +6626,7 @@ static void do_cmd_knowledge_artifacts(void) if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -6555,7 +6727,7 @@ static void do_cmd_knowledge_artifacts(void) /* Paranoia */ #ifdef JP - strcpy(base_name, "̤ÃΤÎÅÁÀâ¤Î¥¢¥¤¥Æ¥à"); + strcpy(base_name, "未知の伝説のアイテム"); #else strcpy(base_name, "Unknown Artifact"); #endif @@ -6606,7 +6778,7 @@ static void do_cmd_knowledge_artifacts(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "´ûÃΤÎÅÁÀâ¤Î¥¢¥¤¥Æ¥à", 0, 0); + show_file(TRUE, file_name, "既知の伝説のアイテム", 0, 0); #else show_file(TRUE, file_name, "Artifacts Seen", 0, 0); #endif @@ -6645,7 +6817,7 @@ static void do_cmd_knowledge_uniques(void) if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -6702,7 +6874,7 @@ static void do_cmd_knowledge_uniques(void) if (n_alive_surface) { #ifdef JP - fprintf(fff, " ÃϾå À¸Â¸: %3dÂÎ\n", n_alive_surface); + fprintf(fff, " 地上 生存: %3d体\n", n_alive_surface); #else fprintf(fff, " Surface alive: %3d\n", n_alive_surface); #endif @@ -6711,7 +6883,7 @@ static void do_cmd_knowledge_uniques(void) for (i = 0; i <= max_lev; i++) { #ifdef JP - fprintf(fff, "%3d-%3d³¬ À¸Â¸: %3dÂÎ\n", 1 + i * 10, 10 + i * 10, n_alive[i]); + fprintf(fff, "%3d-%3d階 生存: %3d体\n", 1 + i * 10, 10 + i * 10, n_alive[i]); #else fprintf(fff, "Level %3d-%3d alive: %3d\n", 1 + i * 10, 10 + i * 10, n_alive[i]); #endif @@ -6720,7 +6892,7 @@ static void do_cmd_knowledge_uniques(void) if (n_alive_over100) { #ifdef JP - fprintf(fff, "101- ³¬ À¸Â¸: %3dÂÎ\n", n_alive_over100); + fprintf(fff, "101- 階 生存: %3d体\n", n_alive_over100); #else fprintf(fff, "Level 101- alive: %3d\n", n_alive_over100); #endif @@ -6731,7 +6903,7 @@ static void do_cmd_knowledge_uniques(void) { #ifdef JP fputs("--------- -----------\n", fff); - fprintf(fff, " ¹ç·× À¸Â¸: %3dÂÎ\n\n", n_alive_total); + fprintf(fff, " 合計 生存: %3d体\n\n", n_alive_total); #else fputs("------------- ----------\n", fff); fprintf(fff, " Total alive: %3d\n\n", n_alive_total); @@ -6740,7 +6912,7 @@ static void do_cmd_knowledge_uniques(void) else { #ifdef JP - fputs("¸½ºß¤Ï´ûÃΤÎÀ¸Â¸¥æ¥Ë¡¼¥¯¤Ï¤¤¤Þ¤»¤ó¡£\n", fff); + fputs("現在は既知の生存ユニークはいません。\n", fff); #else fputs("No known uniques alive.\n", fff); #endif @@ -6753,7 +6925,7 @@ static void do_cmd_knowledge_uniques(void) /* Print a message */ #ifdef JP - fprintf(fff, " %s (¥ì¥Ù¥ë%d)\n", r_name + r_ptr->name, r_ptr->level); + fprintf(fff, " %s (レベル%d)\n", r_name + r_ptr->name, r_ptr->level); #else fprintf(fff, " %s (level %d)\n", r_name + r_ptr->name, r_ptr->level); #endif @@ -6767,7 +6939,7 @@ static void do_cmd_knowledge_uniques(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "¤Þ¤ÀÀ¸¤­¤Æ¤¤¤ë¥æ¥Ë¡¼¥¯¡¦¥â¥ó¥¹¥¿¡¼", 0, 0); + show_file(TRUE, file_name, "まだ生きているユニーク・モンスター", 0, 0); #else show_file(TRUE, file_name, "Alive Uniques", 0, 0); #endif @@ -6794,7 +6966,7 @@ static void do_cmd_knowledge_weapon_exp(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -6833,7 +7005,7 @@ static void do_cmd_knowledge_weapon_exp(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "Éð´ï¤Î·Ð¸³ÃÍ", 0, 0); + show_file(TRUE, file_name, "武器の経験値", 0, 0); #else show_file(TRUE, file_name, "Weapon Proficiency", 0, 0); #endif @@ -6844,15 +7016,17 @@ static void do_cmd_knowledge_weapon_exp(void) } -/* +/*! + * @brief 魔法の経験値を表示するコマンドのメインルーチン * Display spell-exp + * @return なし */ static void do_cmd_knowledge_spell_exp(void) { int i = 0, spell_exp, exp_level; FILE *fff; - magic_type *s_ptr; + const magic_type *s_ptr; char file_name[1024]; @@ -6860,7 +7034,7 @@ static void do_cmd_knowledge_spell_exp(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -6871,7 +7045,7 @@ static void do_cmd_knowledge_spell_exp(void) if (p_ptr->realm1 != REALM_NONE) { #ifdef JP - fprintf(fff, "%s¤ÎËâË¡½ñ\n", realm_names[p_ptr->realm1]); + fprintf(fff, "%sの魔法書\n", realm_names[p_ptr->realm1]); #else fprintf(fff, "%s Spellbook\n", realm_names[p_ptr->realm1]); #endif @@ -6905,7 +7079,7 @@ static void do_cmd_knowledge_spell_exp(void) if (p_ptr->realm2 != REALM_NONE) { #ifdef JP - fprintf(fff, "%s¤ÎËâË¡½ñ\n", realm_names[p_ptr->realm2]); + fprintf(fff, "%sの魔法書\n", realm_names[p_ptr->realm2]); #else fprintf(fff, "\n%s Spellbook\n", realm_names[p_ptr->realm2]); #endif @@ -6937,7 +7111,7 @@ static void do_cmd_knowledge_spell_exp(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "ËâË¡¤Î·Ð¸³ÃÍ", 0, 0); + show_file(TRUE, file_name, "魔法の経験値", 0, 0); #else show_file(TRUE, file_name, "Spell Proficiency", 0, 0); #endif @@ -6948,8 +7122,10 @@ static void do_cmd_knowledge_spell_exp(void) } -/* +/*! + * @brief スキル情報を表示するコマンドのメインルーチン / * Display skill-exp + * @return なし */ static void do_cmd_knowledge_skill_exp(void) { @@ -6959,7 +7135,7 @@ static void do_cmd_knowledge_skill_exp(void) char file_name[1024]; #ifdef JP - char skill_name[3][17]={"¥Þ¡¼¥·¥ã¥ë¥¢¡¼¥Ä", "ÆóÅáή ", "¾èÇÏ "}; + char skill_name[3][17]={"マーシャルアーツ", "二刀流 ", "乗馬 "}; #else char skill_name[3][20]={"Martial Arts ", "Dual Wielding ", "Riding "}; #endif @@ -6968,7 +7144,7 @@ static void do_cmd_knowledge_skill_exp(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -6992,7 +7168,7 @@ static void do_cmd_knowledge_skill_exp(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "µ»Ç½¤Î·Ð¸³ÃÍ", 0, 0); + show_file(TRUE, file_name, "技能の経験値", 0, 0); #else show_file(TRUE, file_name, "Miscellaneous Proficiency", 0, 0); #endif @@ -7003,8 +7179,10 @@ static void do_cmd_knowledge_skill_exp(void) } -/* - * Pluralize a monster name +/*! + * @brief 英単語、句、説を複数形を変換する / Pluralize a monster name + * @param Name 変換したい文字列の参照ポインタ + * @return なし */ void plural_aux(char *Name) { @@ -7126,8 +7304,10 @@ void plural_aux(char *Name) } } -/* +/*! + * @brief 現在のペットを表示するコマンドのメインルーチン / * Display current pets + * @return なし */ static void do_cmd_knowledge_pets(void) { @@ -7144,7 +7324,7 @@ static void do_cmd_knowledge_pets(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -7174,8 +7354,8 @@ static void do_cmd_knowledge_pets(void) fprintf(fff, "----------------------------------------------\n"); #ifdef JP - fprintf(fff, " ¹ç·×: %d ÂΤΥڥåÈ\n", t_friends); - fprintf(fff, " °Ý»ý¥³¥¹¥È: %d%% MP\n", show_upkeep); + fprintf(fff, " 合計: %d 体のペット\n", t_friends); + fprintf(fff, " 維持コスト: %d%% MP\n", show_upkeep); #else fprintf(fff, " Total: %d pet%s.\n", t_friends, (t_friends == 1 ? "" : "s")); @@ -7189,7 +7369,7 @@ static void do_cmd_knowledge_pets(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "¸½ºß¤Î¥Ú¥Ã¥È", 0, 0); + show_file(TRUE, file_name, "現在のペット", 0, 0); #else show_file(TRUE, file_name, "Current Pets", 0, 0); #endif @@ -7200,10 +7380,11 @@ static void do_cmd_knowledge_pets(void) } -/* +/*! + * @brief 現在のペットを表示するコマンドのメインルーチン / * Total kill count - * - * Note that the player ghosts are ignored. XXX XXX XXX + * @return なし + * @note the player ghosts are ignored. XXX XXX XXX */ static void do_cmd_knowledge_kill_count(void) { @@ -7223,7 +7404,7 @@ static void do_cmd_knowledge_kill_count(void) if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -7264,15 +7445,15 @@ static void do_cmd_knowledge_kill_count(void) if (Total < 1) #ifdef JP - fprintf(fff,"¤¢¤Ê¤¿¤Ï¤Þ¤ÀŨ¤òÅݤ·¤Æ¤¤¤Ê¤¤¡£\n\n"); + fprintf(fff,"あなたはまだ敵を倒していない。\n\n"); #else fprintf(fff,"You have defeated no enemies yet.\n\n"); #endif else #ifdef JP - fprintf(fff,"¤¢¤Ê¤¿¤Ï%ldÂΤÎŨ¤òÅݤ·¤Æ¤¤¤ë¡£\n\n", Total); + fprintf(fff,"あなたは%ld体の敵を倒している。\n\n", (long int)Total); #else - fprintf(fff,"You have defeated %ld %s.\n\n", Total, (Total == 1) ? "enemy" : "enemies"); + fprintf(fff,"You have defeated %ld %s.\n\n", (long int)Total, (Total == 1) ? "enemy" : "enemies"); #endif } @@ -7318,11 +7499,11 @@ static void do_cmd_knowledge_kill_count(void) if (This > 0) { #ifdef JP - /* p,t¤Ï¿Í¤È¿ô¤¨¤ë by ita */ + /* p,tは人と数える by ita */ if (my_strchr("pt", r_ptr->d_char)) - fprintf(fff, " %3d ¿Í¤Î %s\n", This, r_name + r_ptr->name); + fprintf(fff, " %3d 人の %s\n", This, r_name + r_ptr->name); else - fprintf(fff, " %3d ÂΤΠ%s\n", This, r_name + r_ptr->name); + fprintf(fff, " %3d 体の %s\n", This, r_name + r_ptr->name); #else if (This < 2) { @@ -7352,10 +7533,10 @@ static void do_cmd_knowledge_kill_count(void) fprintf(fff,"----------------------------------------------\n"); #ifdef JP - fprintf(fff," ¹ç·×: %lu ÂΤòÅݤ·¤¿¡£\n", Total); + fprintf(fff," 合計: %lu 体を倒した。\n", (unsigned long int)Total); #else fprintf(fff," Total: %lu creature%s killed.\n", - Total, (Total == 1 ? "" : "s")); + (unsigned long int)Total, (Total == 1 ? "" : "s")); #endif @@ -7367,7 +7548,7 @@ static void do_cmd_knowledge_kill_count(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "Åݤ·¤¿Å¨¤Î¿ô", 0, 0); + show_file(TRUE, file_name, "倒した敵の数", 0, 0); #else show_file(TRUE, file_name, "Kill Count", 0, 0); #endif @@ -7378,8 +7559,18 @@ static void do_cmd_knowledge_kill_count(void) } -/* +/*! + * @brief モンスター情報リスト中のグループを表示する / * Display the object groups. + * @param col 開始行 + * @param row 開始列 + * @param wid 表示文字数幅 + * @param per_page リストの表示行 + * @param grp_idx グループのID配列 + * @param group_text グループ名の文字列配列 + * @param grp_cur 現在の選択ID + * @param grp_top 現在の選択リスト最上部ID + * @return なし */ static void display_group_list(int col, int row, int wid, int per_page, int grp_idx[], cptr group_text[], int grp_cur, int grp_top) @@ -7776,7 +7967,7 @@ static void display_monster_list(int col, int row, int per_page, s16b mon_idx[], /* Display kills */ if (!(r_ptr->flags1 & RF1_UNIQUE)) put_str(format("%5d", r_ptr->r_pkills), row + i, 73); #ifdef JP - else c_put_str((r_ptr->max_num == 0 ? TERM_L_DARK : TERM_WHITE), (r_ptr->max_num == 0 ? "»àË´" : "À¸Â¸"), row + i, 74); + else c_put_str((r_ptr->max_num == 0 ? TERM_L_DARK : TERM_WHITE), (r_ptr->max_num == 0 ? "死亡" : "生存"), row + i, 74); #else else c_put_str((r_ptr->max_num == 0 ? TERM_L_DARK : TERM_WHITE), (r_ptr->max_num == 0 ? " dead" : "alive"), row + i, 73); #endif @@ -7883,12 +8074,12 @@ static void do_cmd_knowledge_monsters(bool *need_redraw, bool visual_only, int d clear_from(0); #ifdef JP - prt(format("%s - ¥â¥ó¥¹¥¿¡¼", !visual_only ? "Ãμ±" : "ɽ¼¨"), 2, 0); - if (direct_r_idx < 0) prt("¥°¥ë¡¼¥×", 4, 0); - prt("̾Á°", 4, max + 3); + prt(format("%s - モンスター", !visual_only ? "知識" : "表示"), 2, 0); + if (direct_r_idx < 0) prt("グループ", 4, 0); + prt("名前", 4, max + 3); if (p_ptr->wizard || visual_only) prt("Idx", 4, 62); - prt("ʸ»ú", 4, 67); - if (!visual_only) prt("»¦³²¿ô", 4, 72); + prt("文字", 4, 67); + if (!visual_only) prt("殺害数", 4, 72); #else prt(format("%s - monsters", !visual_only ? "Knowledge" : "Visuals"), 2, 0); if (direct_r_idx < 0) prt("Group", 4, 0); @@ -7956,10 +8147,10 @@ static void do_cmd_knowledge_monsters(bool *need_redraw, bool visual_only, int d /* Prompt */ #ifdef JP - prt(format("<Êý¸þ>%s%s%s, ESC", - (!visual_list && !visual_only) ? ", 'r'¤Ç»×¤¤½Ð¤ò¸«¤ë" : "", - visual_list ? ", ENTER¤Ç·èÄê" : ", 'v'¤Ç¥·¥ó¥Ü¥ëÊѹ¹", - (attr_idx || char_idx) ? ", 'c', 'p'¤Ç¥Ú¡¼¥¹¥È" : ", 'c'¤Ç¥³¥Ô¡¼"), + prt(format("<方向>%s%s%s, ESC", + (!visual_list && !visual_only) ? ", 'r'で思い出を見る" : "", + visual_list ? ", ENTERで決定" : ", 'v'でシンボル変更", + (attr_idx || char_idx) ? ", 'c', 'p'でペースト" : ", 'c'でコピー"), hgt - 1, 0); #else prt(format("%s%s%s, ESC", @@ -8077,7 +8268,7 @@ static void display_object_list(int col, int row, int per_page, int object_idx[] byte cursor = ((k_ptr->aware || visual_only) ? TERM_L_BLUE : TERM_BLUE); - if (k_ptr->flavor) + if (!visual_only && k_ptr->flavor) { /* Appearance of this object is shuffled */ flavor_k_ptr = &k_info[k_ptr->flavor]; @@ -8092,7 +8283,7 @@ static void display_object_list(int col, int row, int per_page, int object_idx[] attr = ((i + object_top == object_cur) ? cursor : attr); - if (!k_ptr->flavor || k_ptr->aware) + if (!k_ptr->flavor || (!visual_only && k_ptr->aware)) { /* Tidy name */ strip_name(o_name, k_idx); @@ -8162,7 +8353,7 @@ static void desc_obj_fake(int k_idx) if (!screen_object(o_ptr, SCROBJ_FAKE_OBJECT | SCROBJ_FORCE_DETAIL)) { #ifdef JP - msg_print("ÆäËÊѤï¤Ã¤¿¤È¤³¤í¤Ï¤Ê¤¤¤è¤¦¤À¡£"); + msg_print("特に変わったところはないようだ。"); #else msg_print("You see nothing special."); #endif @@ -8236,7 +8427,7 @@ static void do_cmd_knowledge_objects(bool *need_redraw, bool visual_only, int di object_kind *k_ptr = &k_info[direct_k_idx]; object_kind *flavor_k_ptr; - if (k_ptr->flavor) + if (!visual_only && k_ptr->flavor) { /* Appearance of this object is shuffled */ flavor_k_ptr = &k_info[k_ptr->flavor]; @@ -8280,11 +8471,11 @@ static void do_cmd_knowledge_objects(bool *need_redraw, bool visual_only, int di clear_from(0); #ifdef JP - prt(format("%s - ¥¢¥¤¥Æ¥à", !visual_only ? "Ãμ±" : "ɽ¼¨"), 2, 0); - if (direct_k_idx < 0) prt("¥°¥ë¡¼¥×", 4, 0); - prt("̾Á°", 4, max + 3); + prt(format("%s - アイテム", !visual_only ? "知識" : "表示"), 2, 0); + if (direct_k_idx < 0) prt("グループ", 4, 0); + prt("名前", 4, max + 3); if (p_ptr->wizard || visual_only) prt("Idx", 4, 70); - prt("ʸ»ú", 4, 74); + prt("文字", 4, 74); #else prt(format("%s - objects", !visual_only ? "Knowledge" : "Visuals"), 2, 0); if (direct_k_idx < 0) prt("Group", 4, 0); @@ -8352,7 +8543,7 @@ static void do_cmd_knowledge_objects(bool *need_redraw, bool visual_only, int di /* Get the current object */ k_ptr = &k_info[object_idx[object_cur]]; - if (k_ptr->flavor) + if (!visual_only && k_ptr->flavor) { /* Appearance of this object is shuffled */ flavor_k_ptr = &k_info[k_ptr->flavor]; @@ -8365,10 +8556,10 @@ static void do_cmd_knowledge_objects(bool *need_redraw, bool visual_only, int di /* Prompt */ #ifdef JP - prt(format("<Êý¸þ>%s%s%s, ESC", - (!visual_list && !visual_only) ? ", 'r'¤Ç¾ÜºÙ¤ò¸«¤ë" : "", - visual_list ? ", ENTER¤Ç·èÄê" : ", 'v'¤Ç¥·¥ó¥Ü¥ëÊѹ¹", - (attr_idx || char_idx) ? ", 'c', 'p'¤Ç¥Ú¡¼¥¹¥È" : ", 'c'¤Ç¥³¥Ô¡¼"), + prt(format("<方向>%s%s%s, ESC", + (!visual_list && !visual_only) ? ", 'r'で詳細を見る" : "", + visual_list ? ", ENTERで決定" : ", 'v'でシンボル変更", + (attr_idx || char_idx) ? ", 'c', 'p'でペースト" : ", 'c'でコピー"), hgt - 1, 0); #else prt(format("%s%s%s, ESC", @@ -8557,8 +8748,8 @@ static void do_cmd_knowledge_features(bool *need_redraw, bool visual_only, int d byte char_old[F_LIT_MAX]; byte *cur_attr_ptr, *cur_char_ptr; - C_WIPE(attr_old, F_LIT_MAX, byte); - C_WIPE(char_old, F_LIT_MAX, byte); + (void)C_WIPE(attr_old, F_LIT_MAX, byte); + (void)C_WIPE(char_old, F_LIT_MAX, byte); /* Get size */ Term_get_size(&wid, &hgt); @@ -8632,18 +8823,18 @@ static void do_cmd_knowledge_features(bool *need_redraw, bool visual_only, int d clear_from(0); #ifdef JP - prt("ɽ¼¨ - ÃÏ·Á", 2, 0); - if (direct_f_idx < 0) prt("¥°¥ë¡¼¥×", 4, 0); - prt("̾Á°", 4, max + 3); + prt("表示 - 地形", 2, 0); + if (direct_f_idx < 0) prt("グループ", 4, 0); + prt("名前", 4, max + 3); if (use_bigtile) { if (p_ptr->wizard || visual_only) prt("Idx", 4, 62); - prt("ʸ»ú ( l/ d)", 4, 66); + prt("文字 ( l/ d)", 4, 66); } else { if (p_ptr->wizard || visual_only) prt("Idx", 4, 64); - prt("ʸ»ú (l/d)", 4, 68); + prt("文字 (l/d)", 4, 68); } #else prt("Visuals - features", 2, 0); @@ -8719,9 +8910,9 @@ static void do_cmd_knowledge_features(bool *need_redraw, bool visual_only, int d /* Prompt */ #ifdef JP - prt(format("<Êý¸þ>%s, 'd'¤Çɸ½à¸÷¸»¸ú²Ì%s, ESC", - visual_list ? ", ENTER¤Ç·èÄê, 'a'¤ÇÂоÝÌÀÅÙÊѹ¹" : ", 'v'¤Ç¥·¥ó¥Ü¥ëÊѹ¹", - (attr_idx || char_idx) ? ", 'c', 'p'¤Ç¥Ú¡¼¥¹¥È" : ", 'c'¤Ç¥³¥Ô¡¼"), + prt(format("<方向>%s, 'd'で標準光源効果%s, ESC", + visual_list ? ", ENTERで決定, 'a'で対象明度変更" : ", 'v'でシンボル変更", + (attr_idx || char_idx) ? ", 'c', 'p'でペースト" : ", 'c'でコピー"), hgt - 1, 0); #else prt(format("%s, 'd' for default lighting%s, ESC", @@ -8891,7 +9082,7 @@ static void do_cmd_knowledge_kubi(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -8904,9 +9095,9 @@ static void do_cmd_knowledge_kubi(void) bool listed = FALSE; #ifdef JP - fprintf(fff, "º£Æü¤Î¥¿¡¼¥²¥Ã¥È : %s\n", (p_ptr->today_mon ? r_name + r_info[p_ptr->today_mon].name : "ÉÔÌÀ")); + fprintf(fff, "今日のターゲット : %s\n", (p_ptr->today_mon ? r_name + r_info[p_ptr->today_mon].name : "不明")); fprintf(fff, "\n"); - fprintf(fff, "¾Þ¶â¼ó¥ê¥¹¥È\n"); + fprintf(fff, "賞金首リスト\n"); #else fprintf(fff, "Today target : %s\n", (p_ptr->today_mon ? r_name + r_info[p_ptr->today_mon].name : "unknown")); fprintf(fff, "\n"); @@ -8927,7 +9118,7 @@ static void do_cmd_knowledge_kubi(void) if (!listed) { #ifdef JP - fprintf(fff,"\n%s\n", "¾Þ¶â¼ó¤Ï¤â¤¦»Ä¤Ã¤Æ¤¤¤Þ¤»¤ó¡£"); + fprintf(fff,"\n%s\n", "賞金首はもう残っていません。"); #else fprintf(fff,"\n%s\n", "There is no more wanted monster."); #endif @@ -8939,7 +9130,7 @@ static void do_cmd_knowledge_kubi(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "¾Þ¶â¼ó¤Î°ìÍ÷", 0, 0); + show_file(TRUE, file_name, "賞金首の一覧", 0, 0); #else show_file(TRUE, file_name, "Wanted monsters", 0, 0); #endif @@ -8963,7 +9154,7 @@ static void do_cmd_knowledge_virtues(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -8974,7 +9165,7 @@ static void do_cmd_knowledge_virtues(void) if (fff) { #ifdef JP - fprintf(fff, "¸½ºß¤Î°À­ : %s\n\n", your_alignment()); + fprintf(fff, "現在の属性 : %s\n\n", your_alignment()); #else fprintf(fff, "Your alighnment : %s\n\n", your_alignment()); #endif @@ -8986,7 +9177,7 @@ static void do_cmd_knowledge_virtues(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "Ȭ¤Ä¤ÎÆÁ", 0, 0); + show_file(TRUE, file_name, "八つの徳", 0, 0); #else show_file(TRUE, file_name, "Virtues", 0, 0); #endif @@ -9012,7 +9203,7 @@ static void do_cmd_knowledge_dungeon(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -9034,7 +9225,7 @@ static void do_cmd_knowledge_dungeon(void) } else if (max_dlv[i] == d_info[i].maxdepth) seiha = TRUE; #ifdef JP - fprintf(fff,"%c%-12s : %3d ³¬\n", seiha ? '!' : ' ', d_name + d_info[i].name, max_dlv[i]); + fprintf(fff,"%c%-12s : %3d 階\n", seiha ? '!' : ' ', d_name + d_info[i].name, max_dlv[i]); #else fprintf(fff,"%c%-16s : level %3d\n", seiha ? '!' : ' ', d_name + d_info[i].name, max_dlv[i]); #endif @@ -9046,7 +9237,7 @@ static void do_cmd_knowledge_dungeon(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "º£¤Þ¤Ç¤ËÆþ¤Ã¤¿¥À¥ó¥¸¥ç¥ó", 0, 0); + show_file(TRUE, file_name, "今までに入ったダンジョン", 0, 0); #else show_file(TRUE, file_name, "Dungeon", 0, 0); #endif @@ -9071,7 +9262,7 @@ static void do_cmd_knowledge_stat(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -9086,9 +9277,9 @@ static void do_cmd_knowledge_stat(void) ((PY_MAX_LEVEL - 1+3) * (p_ptr->hitdie + 1)))); #ifdef JP - if (p_ptr->knowledge & KNOW_HPRATE) fprintf(fff, "¸½ºß¤ÎÂÎÎÏ¥é¥ó¥¯ : %d/100\n\n", percent); - else fprintf(fff, "¸½ºß¤ÎÂÎÎÏ¥é¥ó¥¯ : ???\n\n"); - fprintf(fff, "ǽÎϤκÇÂçÃÍ\n\n"); + if (p_ptr->knowledge & KNOW_HPRATE) fprintf(fff, "現在の体力ランク : %d/100\n\n", percent); + else fprintf(fff, "現在の体力ランク : ???\n\n"); + fprintf(fff, "能力の最大値\n\n"); #else if (p_ptr->knowledge & KNOW_HPRATE) fprintf(fff, "Your current Life Rating is %d/100.\n\n", percent); else fprintf(fff, "Your current Life Rating is ???.\n\n"); @@ -9108,7 +9299,7 @@ static void do_cmd_knowledge_stat(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "¼«Ê¬¤Ë´Ø¤¹¤ë¾ðÊó", 0, 0); + show_file(TRUE, file_name, "自分に関する情報", 0, 0); #else show_file(TRUE, file_name, "HP-rate & Max stat", 0, 0); #endif @@ -9133,14 +9324,16 @@ static void do_cmd_knowledge_quests_current(FILE *fff) int total = 0; #ifdef JP - fprintf(fff, "¡Ô¿ë¹ÔÃæ¤Î¥¯¥¨¥¹¥È¡Õ\n"); + fprintf(fff, "《遂行中のクエスト》\n"); #else fprintf(fff, "< Current Quest >\n"); #endif for (i = 1; i < max_quests; i++) { - if ((quest[i].status == QUEST_STATUS_TAKEN) || (quest[i].status == QUEST_STATUS_COMPLETED)) + if ((quest[i].status == QUEST_STATUS_TAKEN) || + ((quest[i].status == QUEST_STATUS_STAGE_COMPLETED) && (quest[i].type == QUEST_TYPE_TOWER)) || + (quest[i].status == QUEST_STATUS_COMPLETED)) { /* Set the quest number temporary */ int old_quest = p_ptr->inside_quest; @@ -9169,7 +9362,7 @@ static void do_cmd_knowledge_quests_current(FILE *fff) { char note[80] = "\0"; - if (quest[i].status == QUEST_STATUS_TAKEN) + if (quest[i].status == QUEST_STATUS_TAKEN || quest[i].status == QUEST_STATUS_STAGE_COMPLETED) { switch (quest[i].type) { @@ -9180,7 +9373,7 @@ static void do_cmd_knowledge_quests_current(FILE *fff) if (quest[i].max_num > 1) { #ifdef JP - sprintf(note," - %d ÂΤÎ%s¤òÅݤ¹¡£(¤¢¤È %d ÂÎ)", + sprintf(note," - %d 体の%sを倒す。(あと %d 体)", quest[i].max_num, name, quest[i].max_num - quest[i].cur_num); #else plural_aux(name); @@ -9190,32 +9383,41 @@ static void do_cmd_knowledge_quests_current(FILE *fff) } else #ifdef JP - sprintf(note," - %s¤òÅݤ¹¡£",name); + sprintf(note," - %sを倒す。",name); #else sprintf(note," - kill %s.",name); #endif break; case QUEST_TYPE_FIND_ARTIFACT: - strcpy(name, a_name + a_info[quest[i].k_idx].name); + if (quest[i].k_idx) + { + artifact_type *a_ptr = &a_info[quest[i].k_idx]; + object_type forge; + object_type *q_ptr = &forge; + int k_idx = lookup_kind(a_ptr->tval, a_ptr->sval); + object_prep(q_ptr, k_idx); + q_ptr->name1 = quest[i].k_idx; + q_ptr->ident = IDENT_STORE; + object_desc(name, q_ptr, OD_NAME_ONLY); + } #ifdef JP - sprintf(note," - %s¤ò¸«¤Ä¤±½Ð¤¹¡£", name); + sprintf(note,"\n - %sを見つけ出す。", name); #else - sprintf(note," - Find out %s.", name); + sprintf(note,"\n - Find out %s.", name); #endif break; - case QUEST_TYPE_FIND_EXIT: #ifdef JP - sprintf(note," - õº÷¤¹¤ë¡£"); + sprintf(note," - 出口に到達する。"); #else - sprintf(note," - Search."); + sprintf(note," - Reach to Exit."); #endif break; case QUEST_TYPE_KILL_NUMBER: #ifdef JP - sprintf(note," - %d ÂΤΥâ¥ó¥¹¥¿¡¼¤òÅݤ¹¡£(¤¢¤È %d ÂÎ)", + sprintf(note," - %d 体のモンスターを倒す。(あと %d 体)", quest[i].max_num, quest[i].max_num - quest[i].cur_num); #else sprintf(note," - Kill %d monsters, have killed %d.", @@ -9224,8 +9426,9 @@ static void do_cmd_knowledge_quests_current(FILE *fff) break; case QUEST_TYPE_KILL_ALL: + case QUEST_TYPE_TOWER: #ifdef JP - sprintf(note," - Á´¤Æ¤Î¥â¥ó¥¹¥¿¡¼¤òÅݤ¹¡£"); + sprintf(note," - 全てのモンスターを倒す。"); #else sprintf(note," - Kill all monsters."); #endif @@ -9235,23 +9438,23 @@ static void do_cmd_knowledge_quests_current(FILE *fff) /* Print the quest info */ #ifdef JP - sprintf(tmp_str, " %s (´í¸±ÅÙ:%d³¬ÁêÅö)%s\n", + sprintf(tmp_str, " %s (危険度:%d階相当)%s\n", quest[i].name, quest[i].level, note); #else sprintf(tmp_str, " %s (Danger level: %d)%s\n", quest[i].name, quest[i].level, note); #endif - fprintf(fff, tmp_str); + fputs(tmp_str, fff); if (quest[i].status == QUEST_STATUS_COMPLETED) { #ifdef JP - sprintf(tmp_str, " ¥¯¥¨¥¹¥ÈãÀ® - ¤Þ¤ÀÊó½·¤ò¼õ¤±¤È¤Ã¤Æ¤Ê¤¤¡£\n"); + sprintf(tmp_str, " クエスト達成 - まだ報酬を受けとってない。\n"); #else sprintf(tmp_str, " Quest Completed - Unrewarded\n"); #endif - fprintf(fff, tmp_str); + fputs(tmp_str, fff); } else { @@ -9278,7 +9481,7 @@ static void do_cmd_knowledge_quests_current(FILE *fff) if (quest[i].max_num > 1) { #ifdef JP - sprintf(rand_tmp_str," %s (%d ³¬) - %d ÂΤÎ%s¤òÅݤ¹¡£(¤¢¤È %d ÂÎ)\n", + sprintf(rand_tmp_str," %s (%d 階) - %d 体の%sを倒す。(あと %d 体)\n", quest[i].name, quest[i].level, quest[i].max_num, name, quest[i].max_num - quest[i].cur_num); #else @@ -9292,7 +9495,7 @@ static void do_cmd_knowledge_quests_current(FILE *fff) else { #ifdef JP - sprintf(rand_tmp_str," %s (%d ³¬) - %s¤òÅݤ¹¡£\n", + sprintf(rand_tmp_str," %s (%d 階) - %sを倒す。\n", quest[i].name, quest[i].level, name); #else sprintf(rand_tmp_str," %s (Dungeon level: %d)\n Kill %s.\n", @@ -9305,102 +9508,106 @@ static void do_cmd_knowledge_quests_current(FILE *fff) } /* Print the current random quest */ - if (rand_tmp_str[0]) fprintf(fff, rand_tmp_str); + if (rand_tmp_str[0]) fputs(rand_tmp_str, fff); #ifdef JP - if (!total) fprintf(fff, " ¤Ê¤·\n"); + if (!total) fprintf(fff, " なし\n"); #else if (!total) fprintf(fff, " Nothing.\n"); #endif } -/* - * Print all finished quests - */ -void do_cmd_knowledge_quests_completed(FILE *fff, int quest_num[]) +static bool do_cmd_knowledge_quests_aux(FILE *fff, int q_idx) { char tmp_str[120]; - int i; - int total = 0; + char playtime_str[16]; + quest_type* const q_ptr = &quest[q_idx]; -#ifdef JP - fprintf(fff, "¡ÔãÀ®¤·¤¿¥¯¥¨¥¹¥È¡Õ\n"); -#else - fprintf(fff, "< Completed Quest >\n"); -#endif - for (i = 1; i < max_quests; i++) + if (is_fixed_quest_idx(q_idx)) { - int q_idx = quest_num[i]; + /* Set the quest number temporary */ + int old_quest = p_ptr->inside_quest; - if (quest[q_idx].status == QUEST_STATUS_FINISHED) - { - if (is_fixed_quest_idx(q_idx)) - { - /* Set the quest number temporary */ - int old_quest = p_ptr->inside_quest; + p_ptr->inside_quest = q_idx; - p_ptr->inside_quest = q_idx; + /* Get the quest */ + init_flags = INIT_NAME_ONLY; + + process_dungeon_file("q_info.txt", 0, 0, 0, 0); + + /* Reset the old quest number */ + p_ptr->inside_quest = old_quest; - /* Get the quest */ - init_flags = INIT_ASSIGN; + /* No info from "silent" quests */ + if (q_ptr->flags & QUEST_FLAG_SILENT) return FALSE; + } - process_dungeon_file("q_info.txt", 0, 0, 0, 0); + strnfmt(playtime_str, sizeof(playtime_str), "%02d:%02d:%02d", + q_ptr->comptime/(60*60), (q_ptr->comptime/60)%60, q_ptr->comptime%60); - /* Reset the old quest number */ - p_ptr->inside_quest = old_quest; + if (!is_fixed_quest_idx(q_idx) && q_ptr->r_idx) + { + /* Print the quest info */ + if (q_ptr->complev == 0) + { + sprintf(tmp_str, + _(" %-35s (%3d階) - 不戦勝 - %s\n", + " %-35s (Dungeon level: %3d) - Unearned - %s\n") , + r_name+r_info[q_ptr->r_idx].name, + q_ptr->level, playtime_str); + } + else + { + sprintf(tmp_str, + _(" %-35s (%3d階) - レベル%2d - %s\n", + " %-35s (Dungeon level: %3d) - level %2d - %s\n") , + r_name+r_info[q_ptr->r_idx].name, + q_ptr->level, + q_ptr->complev, + playtime_str); + } + } + else + { + /* Print the quest info */ + sprintf(tmp_str, + _(" %-35s (危険度:%3d階相当) - レベル%2d - %s\n", + " %-35s (Danger level: %3d) - level %2d - %s\n") , + q_ptr->name, q_ptr->level, q_ptr->complev, playtime_str); + } - /* No info from "silent" quests */ - if (quest[q_idx].flags & QUEST_FLAG_SILENT) continue; - } + fputs(tmp_str, fff); - total++; + return TRUE; +} - if (!is_fixed_quest_idx(q_idx) && quest[q_idx].r_idx) - { - /* Print the quest info */ +/* + * Print all finished quests + */ +void do_cmd_knowledge_quests_completed(FILE *fff, int quest_num[]) +{ + int i; + int total = 0; - if (quest[q_idx].complev == 0) - { - sprintf(tmp_str, -#ifdef JP - " %-40s (%3d³¬) - ÉÔÀᄀ\n", -#else - " %-40s (Dungeon level: %3d) - (Cancelled)\n", -#endif - r_name+r_info[quest[q_idx].r_idx].name, - quest[q_idx].level); - } - else - { - sprintf(tmp_str, -#ifdef JP - " %-40s (%3d³¬) - ¥ì¥Ù¥ë%2d\n", -#else - " %-40s (Dungeon level: %3d) - level %2d\n", -#endif - r_name+r_info[quest[q_idx].r_idx].name, - quest[q_idx].level, - quest[q_idx].complev); - } - } - else - { - /* Print the quest info */ #ifdef JP - sprintf(tmp_str, " %-40s (´í¸±ÅÙ:%3d³¬ÁêÅö) - ¥ì¥Ù¥ë%2d\n", - quest[q_idx].name, quest[q_idx].level, quest[q_idx].complev); + fprintf(fff, "《達成したクエスト》\n"); #else - sprintf(tmp_str, " %-40s (Danger level: %3d) - level %2d\n", - quest[q_idx].name, quest[q_idx].level, quest[q_idx].complev); + fprintf(fff, "< Completed Quest >\n"); #endif - } + for (i = 1; i < max_quests; i++) + { + int q_idx = quest_num[i]; + quest_type* const q_ptr = &quest[q_idx]; - fprintf(fff, tmp_str); + if (q_ptr->status == QUEST_STATUS_FINISHED && + do_cmd_knowledge_quests_aux(fff, q_idx)) + { + ++ total; } } #ifdef JP - if (!total) fprintf(fff, " ¤Ê¤·\n"); + if (!total) fprintf(fff, " なし\n"); #else if (!total) fprintf(fff, " Nothing.\n"); #endif @@ -9412,69 +9619,27 @@ void do_cmd_knowledge_quests_completed(FILE *fff, int quest_num[]) */ void do_cmd_knowledge_quests_failed(FILE *fff, int quest_num[]) { - char tmp_str[120]; int i; int total = 0; #ifdef JP - fprintf(fff, "¡Ô¼ºÇÔ¤·¤¿¥¯¥¨¥¹¥È¡Õ\n"); + fprintf(fff, "《失敗したクエスト》\n"); #else fprintf(fff, "< Failed Quest >\n"); #endif for (i = 1; i < max_quests; i++) { int q_idx = quest_num[i]; + quest_type* const q_ptr = &quest[q_idx]; - if ((quest[q_idx].status == QUEST_STATUS_FAILED_DONE) || (quest[q_idx].status == QUEST_STATUS_FAILED)) + if (((q_ptr->status == QUEST_STATUS_FAILED_DONE) || (q_ptr->status == QUEST_STATUS_FAILED)) && + do_cmd_knowledge_quests_aux(fff, q_idx)) { - if (is_fixed_quest_idx(q_idx)) - { - /* Set the quest number temporary */ - int old_quest = p_ptr->inside_quest; - - p_ptr->inside_quest = q_idx; - - /* Get the quest text */ - init_flags = INIT_ASSIGN; - - process_dungeon_file("q_info.txt", 0, 0, 0, 0); - - /* Reset the old quest number */ - p_ptr->inside_quest = old_quest; - - /* No info from "silent" quests */ - if (quest[q_idx].flags & QUEST_FLAG_SILENT) continue; - } - - total++; - - if (!is_fixed_quest_idx(q_idx) && quest[q_idx].r_idx) - { - /* Print the quest info */ -#ifdef JP - sprintf(tmp_str, " %-40s (%3d³¬) - ¥ì¥Ù¥ë%2d\n", - r_name+r_info[quest[q_idx].r_idx].name, quest[q_idx].level, quest[q_idx].complev); -#else - sprintf(tmp_str, " %-40s (Dungeon level: %3d) - level %2d\n", - r_name+r_info[quest[q_idx].r_idx].name, quest[q_idx].level, quest[q_idx].complev); -#endif - } - else - { - /* Print the quest info */ -#ifdef JP - sprintf(tmp_str, " %-40s (´í¸±ÅÙ:%3d³¬ÁêÅö) - ¥ì¥Ù¥ë%2d\n", - quest[q_idx].name, quest[q_idx].level, quest[q_idx].complev); -#else - sprintf(tmp_str, " %-40s (Danger level: %3d) - level %2d\n", - quest[q_idx].name, quest[q_idx].level, quest[q_idx].complev); -#endif - } - fprintf(fff, tmp_str); + ++ total; } } #ifdef JP - if (!total) fprintf(fff, " ¤Ê¤·\n"); + if (!total) fprintf(fff, " なし\n"); #else if (!total) fprintf(fff, " Nothing.\n"); #endif @@ -9491,7 +9656,7 @@ static void do_cmd_knowledge_quests_wiz_random(FILE *fff) int total = 0; #ifdef JP - fprintf(fff, "¡Ô»Ä¤ê¤Î¥é¥ó¥À¥à¥¯¥¨¥¹¥È¡Õ\n"); + fprintf(fff, "《残りのランダムクエスト》\n"); #else fprintf(fff, "< Remaining Random Quest >\n"); #endif @@ -9506,17 +9671,17 @@ static void do_cmd_knowledge_quests_wiz_random(FILE *fff) /* Print the quest info */ #ifdef JP - sprintf(tmp_str, " %s (%d³¬, %s)\n", + sprintf(tmp_str, " %s (%d階, %s)\n", quest[i].name, quest[i].level, r_name+r_info[quest[i].r_idx].name); #else sprintf(tmp_str, " %s (%d, %s)\n", quest[i].name, quest[i].level, r_name+r_info[quest[i].r_idx].name); #endif - fprintf(fff, tmp_str); + fputs(tmp_str, fff); } } #ifdef JP - if (!total) fprintf(fff, " ¤Ê¤·\n"); + if (!total) fprintf(fff, " なし\n"); #else if (!total) fprintf(fff, " Nothing.\n"); #endif @@ -9532,10 +9697,7 @@ bool ang_sort_comp_quest_num(vptr u, vptr v, int a, int b) /* Unused */ (void)v; - if (qa->complev < qb->complev) return TRUE; - if (qa->complev > qb->complev) return FALSE; - if (qa->level <= qb->level) return TRUE; - return FALSE; + return (qa->comptime <= qb->comptime); } void ang_sort_swap_quest_num(vptr u, vptr v, int a, int b) @@ -9566,7 +9728,7 @@ static void do_cmd_knowledge_quests(void) if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -9600,7 +9762,7 @@ static void do_cmd_knowledge_quests(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "¥¯¥¨¥¹¥ÈãÀ®¾õ¶·", 0, 0); + show_file(TRUE, file_name, "クエスト達成状況", 0, 0); #else show_file(TRUE, file_name, "Quest status", 0, 0); #endif @@ -9632,7 +9794,7 @@ static void do_cmd_knowledge_home(void) fff = my_fopen_temp(file_name, 1024); if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -9653,7 +9815,7 @@ static void do_cmd_knowledge_home(void) #endif /* Header with name of the town */ #ifdef JP - fprintf(fff, " [ ²æ¤¬²È¤Î¥¢¥¤¥Æ¥à ]\n"); + fprintf(fff, " [ 我が家のアイテム ]\n"); #else fprintf(fff, " [Home Inventory]\n"); #endif @@ -9662,7 +9824,7 @@ static void do_cmd_knowledge_home(void) for (i = 0; i < st_ptr->stock_num; i++) { #ifdef JP - if ((i % 12) == 0) fprintf(fff, "\n ( %d ¥Ú¡¼¥¸ )\n", x++); + if ((i % 12) == 0) fprintf(fff, "\n ( %d ページ )\n", x++); object_desc(o_name, &st_ptr->stock[i], 0); if (strlen(o_name) <= 80-3) { @@ -9674,7 +9836,7 @@ static void do_cmd_knowledge_home(void) char *t; for (n = 0, t = o_name; n < 80-3; n++, t++) if(iskanji(*t)) {t++; n++;} - if (n == 81-3) n = 79-3; /* ºÇ¸å¤¬´Á»úȾʬ */ + if (n == 81-3) n = 79-3; /* 最後が漢字半分 */ fprintf(fff, "%c%s %.*s\n", I2A(i%12), paren, n, o_name); fprintf(fff, " %.77s\n", o_name+n); @@ -9696,7 +9858,7 @@ static void do_cmd_knowledge_home(void) /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "²æ¤¬²È¤Î¥¢¥¤¥Æ¥à", 0, 0); + show_file(TRUE, file_name, "我が家のアイテム", 0, 0); #else show_file(TRUE, file_name, "Home Inventory", 0, 0); #endif @@ -9722,7 +9884,7 @@ static void do_cmd_knowledge_autopick(void) if (!fff) { #ifdef JP - msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name); + msg_format("一時ファイル %s を作成できませんでした。", file_name); #else msg_format("Failed to create temporary file %s.", file_name); #endif @@ -9733,7 +9895,7 @@ static void do_cmd_knowledge_autopick(void) if (!max_autopick) { #ifdef JP - fprintf(fff, "¼«Æ°Ç˲õ/½¦¤¤¤Ë¤Ï²¿¤âÅÐÏ¿¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£"); + fprintf(fff, "自動破壊/拾いには何も登録されていません。"); #else fprintf(fff, "No preference for auto picker/destroyer."); #endif @@ -9741,7 +9903,7 @@ static void do_cmd_knowledge_autopick(void) else { #ifdef JP - fprintf(fff, " ¼«Æ°½¦¤¤/Ç˲õ¤Ë¤Ï¸½ºß %d¹ÔÅÐÏ¿¤µ¤ì¤Æ¤¤¤Þ¤¹¡£\n\n", max_autopick); + fprintf(fff, " 自動拾い/破壊には現在 %d行登録されています。\n\n", max_autopick); #else fprintf(fff, " There are %d registered lines for auto picker/destroyer.\n\n", max_autopick); #endif @@ -9754,7 +9916,7 @@ static void do_cmd_knowledge_autopick(void) if (act & DONT_AUTOPICK) { #ifdef JP - tmp = "ÊüÃÖ"; + tmp = "放置"; #else tmp = "Leave"; #endif @@ -9762,7 +9924,7 @@ static void do_cmd_knowledge_autopick(void) else if (act & DO_AUTODESTROY) { #ifdef JP - tmp = "Ç˲õ"; + tmp = "破壊"; #else tmp = "Destroy"; #endif @@ -9770,7 +9932,7 @@ static void do_cmd_knowledge_autopick(void) else if (act & DO_AUTOPICK) { #ifdef JP - tmp = "½¦¤¦"; + tmp = "拾う"; #else tmp = "Pickup"; #endif @@ -9778,7 +9940,7 @@ static void do_cmd_knowledge_autopick(void) else /* if (act & DO_QUERY_AUTOPICK) */ /* Obvious */ { #ifdef JP - tmp = "³Îǧ"; + tmp = "確認"; #else tmp = "Query"; #endif @@ -9798,7 +9960,7 @@ static void do_cmd_knowledge_autopick(void) my_fclose(fff); /* Display the file contents */ #ifdef JP - show_file(TRUE, file_name, "¼«Æ°½¦¤¤/Ç˲õ ÀßÄê¥ê¥¹¥È", 0, 0); + show_file(TRUE, file_name, "自動拾い/破壊 設定リスト", 0, 0); #else show_file(TRUE, file_name, "Auto-picker/Destroyer", 0, 0); #endif @@ -9830,8 +9992,8 @@ void do_cmd_knowledge(void) /* Ask for a choice */ #ifdef JP - prt(format("%d/2 ¥Ú¡¼¥¸", (p+1)), 2, 65); - prt("¸½ºß¤ÎÃ챤ò³Îǧ¤¹¤ë", 3, 0); + prt(format("%d/2 ページ", (p+1)), 2, 65); + prt("現在の知識を確認する", 3, 0); #else prt(format("page %d/2", (p+1)), 2, 65); prt("Display current knowledge", 3, 0); @@ -9841,28 +10003,28 @@ void do_cmd_knowledge(void) #ifdef JP if (p == 0) { - prt("(1) ´ûÃΤÎÅÁÀâ¤Î¥¢¥¤¥Æ¥à ¤Î°ìÍ÷", 6, 5); - prt("(2) ´ûÃΤΥ¢¥¤¥Æ¥à ¤Î°ìÍ÷", 7, 5); - prt("(3) ´ûÃΤÎÀ¸¤­¤Æ¤¤¤ë¥æ¥Ë¡¼¥¯¡¦¥â¥ó¥¹¥¿¡¼ ¤Î°ìÍ÷", 8, 5); - prt("(4) ´ûÃΤΥâ¥ó¥¹¥¿¡¼ ¤Î°ìÍ÷", 9, 5); - prt("(5) Åݤ·¤¿Å¨¤Î¿ô ¤Î°ìÍ÷", 10, 5); - if (!vanilla_town) prt("(6) ¾Þ¶â¼ó ¤Î°ìÍ÷", 11, 5); - prt("(7) ¸½ºß¤Î¥Ú¥Ã¥È ¤Î°ìÍ÷", 12, 5); - prt("(8) ²æ¤¬²È¤Î¥¢¥¤¥Æ¥à ¤Î°ìÍ÷", 13, 5); - prt("(9) *´ÕÄê*ºÑ¤ßÁõÈ÷¤ÎÂÑÀ­ ¤Î°ìÍ÷", 14, 5); - prt("(0) ÃÏ·Á¤Îɽ¼¨Ê¸»ú/¥¿¥¤¥ë ¤Î°ìÍ÷", 15, 5); + prt("(1) 既知の伝説のアイテム の一覧", 6, 5); + prt("(2) 既知のアイテム の一覧", 7, 5); + prt("(3) 既知の生きているユニーク・モンスター の一覧", 8, 5); + prt("(4) 既知のモンスター の一覧", 9, 5); + prt("(5) 倒した敵の数 の一覧", 10, 5); + if (!vanilla_town) prt("(6) 賞金首 の一覧", 11, 5); + prt("(7) 現在のペット の一覧", 12, 5); + prt("(8) 我が家のアイテム の一覧", 13, 5); + prt("(9) *鑑定*済み装備の耐性 の一覧", 14, 5); + prt("(0) 地形の表示文字/タイル の一覧", 15, 5); } else { - prt("(a) ¼«Ê¬¤Ë´Ø¤¹¤ë¾ðÊó ¤Î°ìÍ÷", 6, 5); - prt("(b) ÆÍÁ³ÊÑ°Û ¤Î°ìÍ÷", 7, 5); - prt("(c) Éð´ï¤Î·Ð¸³ÃÍ ¤Î°ìÍ÷", 8, 5); - prt("(d) ËâË¡¤Î·Ð¸³ÃÍ ¤Î°ìÍ÷", 9, 5); - prt("(e) µ»Ç½¤Î·Ð¸³ÃÍ ¤Î°ìÍ÷", 10, 5); - prt("(f) ¥×¥ì¥¤¥ä¡¼¤ÎÆÁ ¤Î°ìÍ÷", 11, 5); - prt("(g) Æþ¤Ã¤¿¥À¥ó¥¸¥ç¥ó ¤Î°ìÍ÷", 12, 5); - prt("(h) ¼Â¹ÔÃæ¤Î¥¯¥¨¥¹¥È ¤Î°ìÍ÷", 13, 5); - prt("(i) ¸½ºß¤Î¼«Æ°½¦¤¤/Ç˲õÀßÄê ¤Î°ìÍ÷", 14, 5); + prt("(a) 自分に関する情報 の一覧", 6, 5); + prt("(b) 突然変異 の一覧", 7, 5); + prt("(c) 武器の経験値 の一覧", 8, 5); + prt("(d) 魔法の経験値 の一覧", 9, 5); + prt("(e) 技能の経験値 の一覧", 10, 5); + prt("(f) プレイヤーの徳 の一覧", 11, 5); + prt("(g) 入ったダンジョン の一覧", 12, 5); + prt("(h) 実行中のクエスト の一覧", 13, 5); + prt("(i) 現在の自動拾い/破壊設定 の一覧", 14, 5); } #else if (p == 0) @@ -9893,11 +10055,11 @@ void do_cmd_knowledge(void) #endif /* Prompt */ #ifdef JP - prt("-³¤¯-", 17, 8); - prt("ESC) È´¤±¤ë", 21, 1); - prt("SPACE) ¼¡¥Ú¡¼¥¸", 21, 30); - /*prt("-) Á°¥Ú¡¼¥¸", 21, 60);*/ - prt("¥³¥Þ¥ó¥É:", 20, 0); + prt("-続く-", 17, 8); + prt("ESC) 抜ける", 21, 1); + prt("SPACE) 次ページ", 21, 30); + /*prt("-) 前ページ", 21, 60);*/ + prt("コマンド:", 20, 0); #else prt("-more-", 17, 8); prt("ESC) Exit menu", 21, 1); @@ -10035,7 +10197,7 @@ void do_cmd_time(void) num = 0; #ifdef JP - strcpy(desc, "ÊѤʻþ¹ï¤À¡£"); + strcpy(desc, "変な時刻だ。"); #else strcpy(desc, "It is a strange time."); #endif @@ -10046,7 +10208,7 @@ void do_cmd_time(void) /* Message */ #ifdef JP - msg_format("%sÆüÌÜ, »þ¹ï¤Ï%d:%02d %s¤Ç¤¹¡£", + msg_format("%s日目, 時刻は%d:%02d %sです。", day_buf, (hour % 12 == 0) ? 12 : (hour % 12), min, (hour < 12) ? "AM" : "PM"); #else