-/*!
+/*!
* @file cmd3.c
- * @brief ¥×¥ì¥¤¥ä¡¼¤Î¥¢¥¤¥Æ¥à¤Ë´Ø¤¹¤ë¥³¥Þ¥ó¥É¤Î¼ÂÁõ1 / Inventory commands
+ * @brief プレイヤーのアイテムに関するコマンドの実装1 / Inventory commands
* @date 2014/01/02
* @author
* Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
/*!
- * @brief »ý¤Áʪ°ìÍ÷¤òɽ¼¨¤¹¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó / Display inventory
- * @return ¤Ê¤·
+ * @brief 持ち物一覧を表示するコマンドのメインルーチン / Display inventory
+ * @return なし
*/
void do_cmd_inven(void)
{
item_tester_full = FALSE;
#ifdef JP
- sprintf(out_val, "»ý¤Áʪ¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%ld%%) ¥³¥Þ¥ó¥É: ",
+ sprintf(out_val, "持ち物: 合計 %3d.%1d kg (限界の%ld%%) コマンド: ",
(int)lbtokg1(p_ptr->total_weight) , (int)lbtokg2(p_ptr->total_weight) ,
(long int)((p_ptr->total_weight * 100) / weight_limit()));
#else
/*!
- * @brief ÁõÈ÷°ìÍ÷¤òɽ¼¨¤¹¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó / Display equipment
- * @return ¤Ê¤·
+ * @brief 装備一覧を表示するコマンドのメインルーチン / Display equipment
+ * @return なし
*/
void do_cmd_equip(void)
{
/* Build a prompt */
#ifdef JP
- sprintf(out_val, "ÁõÈ÷¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%ld%%) ¥³¥Þ¥ó¥É: ",
+ sprintf(out_val, "装備: 合計 %3d.%1d kg (限界の%ld%%) コマンド: ",
(int)lbtokg1(p_ptr->total_weight) , (int)lbtokg2(p_ptr->total_weight) ,
(long int)((p_ptr->total_weight * 100) / weight_limit()));
#else
/*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤òËɶñ¤È¤·¤ÆÁõÈ÷¤Ç¤¤ë¤«¤ÎȽÄê / The "wearable" tester
- * @param o_ptr ȽÄꤹ¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤¬Ëɶñ¤È¤·¤ÆÁõÈ÷¤Ç¤¤ë¤Ê¤éTRUE¤òÊÖ¤¹¡£
+ * @brief オブジェクトを防具として装備できるかの判定 / The "wearable" tester
+ * @param o_ptr å\88¤å®\9aã\81\99ã\82\8bã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return オブジェクトが防具として装備できるならTRUEを返す。
*/
static bool item_tester_hook_wear(object_type *o_ptr)
{
/*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤¬¤É¤Á¤é¤Î¼ê¤Ë¤âÁõÈ÷¤Ç¤¤ëÉð´ï¤«¤É¤¦¤«¤ÎȽÄê
- * @param o_ptr ȽÄꤹ¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return º¸±¦Î¾Êý¤Î¼ê¤ÇÁõÈ÷¤Ç¤¤ë¤Ê¤é¤ÐTRUE¤òÊÖ¤¹¡£
+ * @brief オブジェクトがどちらの手にも装備できる武器かどうかの判定
+ * @param o_ptr å\88¤å®\9aã\81\99ã\82\8bã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return 左右両方の手で装備できるならばTRUEを返す。
*/
static bool item_tester_hook_mochikae(object_type *o_ptr)
{
}
/*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤¬±¦¼ê¤«º¸¼ê¤ËÁõÈ÷¤Ç¤¤ëÉð´ï¤«¤É¤¦¤«¤ÎȽÄê
- * @param o_ptr ȽÄꤹ¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ±¦¼ê¤«º¸¼ê¤ÎÉð´ï¤È¤·¤ÆÁõÈ÷¤Ç¤¤ë¤Ê¤é¤ÐTRUE¤òÊÖ¤¹¡£
+ * @brief オブジェクトが右手か左手に装備できる武器かどうかの判定
+ * @param o_ptr å\88¤å®\9aã\81\99ã\82\8bã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return 右手か左手の武器として装備できるならばTRUEを返す。
*/
static bool item_tester_hook_melee_weapon(object_type *o_ptr)
{
bool select_ring_slot = FALSE;
/*!
- * @brief ÁõÈ÷¤¹¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó / Wield or wear a single item from the pack or floor
- * @return ¤Ê¤·
+ * @brief 装備するコマンドのメインルーチン / Wield or wear a single item from the pack or floor
+ * @return なし
*/
void do_cmd_wield(void)
{
/* Get an item */
#ifdef JP
- q = "¤É¤ì¤òÁõÈ÷¤·¤Þ¤¹¤«? ";
- s = "ÁõÈ÷²Äǽ¤Ê¥¢¥¤¥Æ¥à¤¬¤Ê¤¤¡£";
+ q = "どれを装備しますか? ";
+ s = "装備可能なアイテムがない。";
#else
q = "Wear/Wield which item? ";
s = "You have nothing you can wear or wield.";
/* Choose a weapon from the equipment only */
#ifdef JP
- q = "¤É¤Á¤é¤ÎÉð´ï¤È¼è¤êÂؤ¨¤Þ¤¹¤«?";
- s = "¤ª¤Ã¤È¡£";
+ q = "どちらの武器と取り替えますか?";
+ s = "おっと。";
#else
q = "Replace which weapon? ";
s = "Oops.";
/* Choose a hand */
#ifdef JP
- q = "¤É¤Á¤é¤Î¼ê¤ËÁõÈ÷¤·¤Þ¤¹¤«?";
- s = "¤ª¤Ã¤È¡£";
+ q = "どちらの手に装備しますか?";
+ s = "おっと。";
#else
q = "Equip which hand? ";
s = "Oops.";
if (slot == INVEN_LARM)
{
#ifdef JP
- if (!get_check("ÆóÅáή¤ÇÀ襤¤Þ¤¹¤«¡©")) slot = INVEN_RARM;
+ if (!get_check("二刀流で戦いますか?")) slot = INVEN_RARM;
#else
if (!get_check("Dual wielding? ")) slot = INVEN_RARM;
#endif
else if (!inventory[INVEN_RARM].k_idx && buki_motteruka(INVEN_LARM))
{
#ifdef JP
- if (!get_check("ÆóÅáή¤ÇÀ襤¤Þ¤¹¤«¡©")) slot = INVEN_LARM;
+ if (!get_check("二刀流で戦いますか?")) slot = INVEN_LARM;
#else
if (!get_check("Dual wielding? ")) slot = INVEN_LARM;
#endif
/* Choose a hand */
#ifdef JP
- q = "¤É¤Á¤é¤Î¼ê¤ËÁõÈ÷¤·¤Þ¤¹¤«?";
- s = "¤ª¤Ã¤È¡£";
+ q = "どちらの手に装備しますか?";
+ s = "おっと。";
#else
q = "Equip which hand? ";
s = "Oops.";
if (inventory[INVEN_LEFT].k_idx && inventory[INVEN_RIGHT].k_idx)
{
#ifdef JP
- q = "¤É¤Á¤é¤Î»ØÎؤȼè¤êÂؤ¨¤Þ¤¹¤«?";
+ q = "どちらの指輪と取り替えますか?";
#else
q = "Replace which ring? ";
#endif
else
{
#ifdef JP
- q = "¤É¤Á¤é¤Î¼ê¤ËÁõÈ÷¤·¤Þ¤¹¤«?";
+ q = "どちらの手に装備しますか?";
#else
q = "Equip which hand? ";
#endif
}
#ifdef JP
- s = "¤ª¤Ã¤È¡£";
+ s = "おっと。";
#else
s = "Oops.";
#endif
/* Message */
#ifdef JP
- msg_format("%s%s¤Ï¼ö¤ï¤ì¤Æ¤¤¤ë¤è¤¦¤À¡£",
+ msg_format("%s%sは呪われているようだ。",
describe_use(slot) , o_name );
#else
msg_format("The %s you are %s appears to be cursed.",
object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
#ifdef JP
-sprintf(dummy, "ËÜÅö¤Ë%s{¼ö¤ï¤ì¤Æ¤¤¤ë}¤ò»È¤¤¤Þ¤¹¤«¡©", o_name);
+sprintf(dummy, "本当に%s{呪われている}を使いますか?", o_name);
#else
sprintf(dummy, "Really use the %s {cursed}? ", o_name);
#endif
object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
#ifdef JP
-sprintf(dummy, "%s¤òÁõÈ÷¤¹¤ë¤ÈµÛ·ìµ´¤Ë¤Ê¤ê¤Þ¤¹¡£¤è¤í¤·¤¤¤Ç¤¹¤«¡©", o_name);
+sprintf(dummy, "%sを装備すると吸血鬼になります。よろしいですか?", o_name);
#else
msg_format("%s will transforms you into a vampire permanently when equiped.", o_name);
sprintf(dummy, "Do you become a vampire?");
object_copy(switch_o_ptr, slot_o_ptr);
object_copy(slot_o_ptr, otmp_ptr);
#ifdef JP
- msg_format("%s¤ò%s¤Ë¹½¤¨¤Ê¤ª¤·¤¿¡£", switch_name, (slot == INVEN_RARM) ? (left_hander ? "º¸¼ê" : "±¦¼ê") : (left_hander ? "±¦¼ê" : "º¸¼ê"));
+ msg_format("%sを%sに構えなおした。", switch_name, (slot == INVEN_RARM) ? (left_hander ? "左手" : "右手") : (left_hander ? "右手" : "左手"));
#else
msg_format("You wield %s at %s hand.", switch_name, (slot == INVEN_RARM) ? (left_hander ? "left" : "right") : (left_hander ? "right" : "left"));
#endif
equip_cnt++;
#ifdef JP
-#define STR_WIELD_RARM "%s(%c)¤ò±¦¼ê¤ËÁõÈ÷¤·¤¿¡£"
-#define STR_WIELD_LARM "%s(%c)¤òº¸¼ê¤ËÁõÈ÷¤·¤¿¡£"
-#define STR_WIELD_ARMS "%s(%c)¤òξ¼ê¤Ç¹½¤¨¤¿¡£"
+#define STR_WIELD_RARM "%s(%c)を右手に装備した。"
+#define STR_WIELD_LARM "%s(%c)を左手に装備した。"
+#define STR_WIELD_ARMS "%s(%c)を両手で構えた。"
#else
#define STR_WIELD_RARM "You are wielding %s (%c) in your right hand."
#define STR_WIELD_LARM "You are wielding %s (%c) in your left hand."
case INVEN_BOW:
#ifdef JP
- act = "%s(%c)¤ò¼Í·âÍѤËÁõÈ÷¤·¤¿¡£";
+ act = "%s(%c)を射撃用に装備した。";
#else
act = "You are shooting with %s (%c).";
#endif
case INVEN_LITE:
#ifdef JP
- act = "%s(%c)¤ò¸÷¸»¤Ë¤·¤¿¡£";
+ act = "%s(%c)を光源にした。";
#else
act = "Your light source is %s (%c).";
#endif
default:
#ifdef JP
- act = "%s(%c)¤òÁõÈ÷¤·¤¿¡£";
+ act = "%s(%c)を装備した。";
#else
act = "You are wearing %s (%c).";
#endif
{
/* Warn the player */
#ifdef JP
- msg_print("¤¦¤ï¡ª ¤¹¤µ¤Þ¤¸¤¯Î䤿¤¤¡ª");
+ msg_print("うわ! すさまじく冷たい!");
#else
msg_print("Oops! It feels deathly cold!");
#endif
}
/*!
- * @brief »ý¤ÁÂؤ¨½èÍý
- * @param item »ý¤ÁÂؤ¨¤ò¹Ô¤¤¤¿¤¤ÁõÈ÷Éô°ÌID
- * @return ¤Ê¤·
+ * @brief 持ち替え処理
+ * @param item 持ち替えを行いたい装備部位ID
+ * @return なし
*/
void kamaenaoshi(int item)
{
inven_item_optimize(INVEN_LARM);
if (object_allow_two_hands_wielding(o_ptr) && CAN_TWO_HANDS_WIELDING())
#ifdef JP
- msg_format("%s¤òξ¼ê¤Ç¹½¤¨¤¿¡£", o_name);
+ msg_format("%sを両手で構えた。", o_name);
#else
msg_format("You are wielding %s with both hands.", o_name);
#endif
else
#ifdef JP
- msg_format("%s¤ò%s¤Ç¹½¤¨¤¿¡£", o_name, (left_hander ? "º¸¼ê" : "±¦¼ê"));
+ msg_format("%sを%sで構えた。", o_name, (left_hander ? "左手" : "右手"));
#else
msg_format("You are wielding %s in your %s hand.", o_name, (left_hander ? "left":"right"));
#endif
{
if (object_allow_two_hands_wielding(o_ptr) && CAN_TWO_HANDS_WIELDING())
#ifdef JP
- msg_format("%s¤òξ¼ê¤Ç¹½¤¨¤¿¡£", o_name);
+ msg_format("%sを両手で構えた。", o_name);
#else
msg_format("You are wielding %s with both hands.", o_name);
#endif
{
if (object_allow_two_hands_wielding(o_ptr) && CAN_TWO_HANDS_WIELDING())
#ifdef JP
- msg_format("%s¤òξ¼ê¤Ç¹½¤¨¤¿¡£", o_name);
+ msg_format("%sを両手で構えた。", o_name);
#else
msg_format("You are wielding %s with both hands.", o_name);
#endif
inven_item_increase(INVEN_RARM, -((int)o_ptr->number));
inven_item_optimize(INVEN_RARM);
#ifdef JP
- msg_format("%s¤ò»ý¤ÁÂؤ¨¤¿¡£", o_name);
+ msg_format("%sを持ち替えた。", o_name);
#else
msg_format("You switched hand of %s.", o_name);
#endif
/*!
- * @brief ÁõÈ÷¤ò³°¤¹¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó / Take off an item
- * @return ¤Ê¤·
+ * @brief 装備を外すコマンドのメインルーチン / Take off an item
+ * @return なし
*/
void do_cmd_takeoff(void)
{
item_tester_no_ryoute = TRUE;
/* Get an item */
#ifdef JP
- q = "¤É¤ì¤òÁõÈ÷¤«¤é¤Ï¤º¤·¤Þ¤¹¤«? ";
- s = "¤Ï¤º¤»¤ëÁõÈ÷¤¬¤Ê¤¤¡£";
+ q = "どれを装備からはずしますか? ";
+ s = "はずせる装備がない。";
#else
q = "Take off which item? ";
s = "You are not wearing anything to take off.";
{
/* Oops */
#ifdef JP
- msg_print("¤Õ¡¼¤à¡¢¤É¤¦¤ä¤é¼ö¤ï¤ì¤Æ¤¤¤ë¤è¤¦¤À¡£");
+ msg_print("ふーむ、どうやら呪われているようだ。");
#else
msg_print("Hmmm, it seems to be cursed.");
#endif
if (((o_ptr->curse_flags & TRC_HEAVY_CURSE) && one_in_(7)) || one_in_(4))
{
#ifdef JP
- msg_print("¼ö¤ï¤ì¤¿ÁõÈ÷¤òÎϤŤ¯¤ÇÇí¤¬¤·¤¿¡ª");
+ msg_print("呪われた装備を力づくで剥がした!");
#else
msg_print("You teared a cursed equipment off by sheer strength!");
#endif
p_ptr->window |= (PW_EQUIP);
#ifdef JP
- msg_print("¼ö¤¤¤òÂǤÁÇˤä¿¡£");
+ msg_print("呪いを打ち破った。");
#else
msg_print("You break the curse.");
#endif
else
{
#ifdef JP
- msg_print("ÁõÈ÷¤ò³°¤»¤Ê¤«¤Ã¤¿¡£");
+ msg_print("装備を外せなかった。");
#else
msg_print("You couldn't remove the equipment.");
#endif
/*!
- * @brief ¥¢¥¤¥Æ¥à¤òÍî¤È¤¹¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó / Drop an item
- * @return ¤Ê¤·
+ * @brief アイテムを落とすコマンドのメインルーチン / Drop an item
+ * @return なし
*/
void do_cmd_drop(void)
{
item_tester_no_ryoute = TRUE;
/* Get an item */
#ifdef JP
- q = "¤É¤Î¥¢¥¤¥Æ¥à¤òÍî¤È¤·¤Þ¤¹¤«? ";
- s = "Íî¤È¤»¤ë¥¢¥¤¥Æ¥à¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£";
+ q = "どのアイテムを落としますか? ";
+ s = "落とせるアイテムを持っていない。";
#else
q = "Drop which item? ";
s = "You have nothing to drop.";
{
/* Oops */
#ifdef JP
- msg_print("¤Õ¡¼¤à¡¢¤É¤¦¤ä¤é¼ö¤ï¤ì¤Æ¤¤¤ë¤è¤¦¤À¡£");
+ msg_print("ふーむ、どうやら呪われているようだ。");
#else
msg_print("Hmmm, it seems to be cursed.");
#endif
}
/*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤¬¹â°Ì¤ÎËâË¡½ñ¤«¤É¤¦¤«¤òȽÄꤹ¤ë
- * @param o_ptr ȽÄꤷ¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤¬¹â°Ì¤ÎËâË¡½ñ¤Ê¤é¤ÐTRUE¤òÊÖ¤¹
+ * @brief オブジェクトが高位の魔法書かどうかを判定する
+ * @param o_ptr å\88¤å®\9aã\81\97ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return オブジェクトが高位の魔法書ならばTRUEを返す
*/
static bool high_level_book(object_type *o_ptr)
{
/*!
- * @brief ¥¢¥¤¥Æ¥à¤òÇ˲õ¤¹¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó / Destroy an item
- * @return ¤Ê¤·
+ * @brief アイテムを破壊するコマンドのメインルーチン / Destroy an item
+ * @return なし
*/
void do_cmd_destroy(void)
{
/* Get an item */
#ifdef JP
- q = "¤É¤Î¥¢¥¤¥Æ¥à¤ò²õ¤·¤Þ¤¹¤«? ";
- s = "²õ¤»¤ë¥¢¥¤¥Æ¥à¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£";
+ q = "どのアイテムを壊しますか? ";
+ s = "壊せるアイテムを持っていない。";
#else
q = "Destroy which item? ";
s = "You have nothing to destroy.";
/* Make a verification */
sprintf(out_val,
#ifdef JP
- "ËÜÅö¤Ë%s¤ò²õ¤·¤Þ¤¹¤«? [y/n/Auto]",
+ "本当に%sを壊しますか? [y/n/Auto]",
#else
"Really destroy %s? [y/n/Auto]",
#endif
/* Message */
#ifdef JP
- msg_format("%s¤ÏÇ˲õÉÔ²Äǽ¤À¡£", o_name);
+ msg_format("%sは破壊不可能だ。", o_name);
#else
msg_format("You cannot destroy %s.", o_name);
#endif
/* Message */
#ifdef JP
- msg_format("%s¤ò²õ¤·¤¿¡£", o_name);
+ msg_format("%sを壊した。", o_name);
#else
msg_format("You destroy %s.", o_name);
#endif
if (tester_exp<1) tester_exp = 1;
#ifdef JP
-msg_print("¹¹¤Ë·Ð¸³¤òÀѤó¤À¤è¤¦¤Êµ¤¤¬¤¹¤ë¡£");
+msg_print("更に経験を積んだような気がする。");
#else
msg_print("You feel more experienced.");
#endif
/*!
- * @brief ¥¢¥¤¥Æ¥à¤òÄ´ºº¤¹¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó / Observe an item which has been *identify*-ed
- * @return ¤Ê¤·
+ * @brief アイテムを調査するコマンドのメインルーチン / Observe an item which has been *identify*-ed
+ * @return なし
*/
void do_cmd_observe(void)
{
item_tester_no_ryoute = TRUE;
/* Get an item */
#ifdef JP
- q = "¤É¤Î¥¢¥¤¥Æ¥à¤òÄ´¤Ù¤Þ¤¹¤«? ";
- s = "Ä´¤Ù¤é¤ì¤ë¥¢¥¤¥Æ¥à¤¬¤Ê¤¤¡£";
+ q = "どのアイテムを調べますか? ";
+ s = "調べられるアイテムがない。";
#else
q = "Examine which item? ";
s = "You have nothing to examine.";
if (!(o_ptr->ident & IDENT_MENTAL))
{
#ifdef JP
- msg_print("¤³¤Î¥¢¥¤¥Æ¥à¤Ë¤Ä¤¤¤ÆÆäËÃΤäƤ¤¤ë¤³¤È¤Ï¤Ê¤¤¡£");
+ msg_print("このアイテムについて特に知っていることはない。");
#else
msg_print("You have no special knowledge about that item.");
#endif
/* Describe */
#ifdef JP
- msg_format("%s¤òÄ´¤Ù¤Æ¤¤¤ë...", o_name);
+ msg_format("%sを調べている...", o_name);
#else
msg_format("Examining %s...", o_name);
#endif
/* Describe it fully */
#ifdef JP
- if (!screen_object(o_ptr, SCROBJ_FORCE_DETAIL)) msg_print("ÆäËÊѤï¤Ã¤¿¤È¤³¤í¤Ï¤Ê¤¤¤è¤¦¤À¡£");
+ if (!screen_object(o_ptr, SCROBJ_FORCE_DETAIL)) msg_print("特に変わったところはないようだ。");
#else
if (!screen_object(o_ptr, SCROBJ_FORCE_DETAIL)) msg_print("You see nothing special.");
#endif
/*!
- * @brief ¥¢¥¤¥Æ¥à¤ÎÌäò¾Ã¤¹¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief アイテムの銘を消すコマンドのメインルーチン
* Remove the inscription from an object XXX Mention item (when done)?
- * @return ¤Ê¤·
+ * @return なし
*/
void do_cmd_uninscribe(void)
{
item_tester_no_ryoute = TRUE;
/* Get an item */
#ifdef JP
- q = "¤É¤Î¥¢¥¤¥Æ¥à¤ÎÌäò¾Ã¤·¤Þ¤¹¤«? ";
- s = "Ìäò¾Ã¤»¤ë¥¢¥¤¥Æ¥à¤¬¤Ê¤¤¡£";
+ q = "どのアイテムの銘を消しますか? ";
+ s = "銘を消せるアイテムがない。";
#else
q = "Un-inscribe which item? ";
s = "You have nothing to un-inscribe.";
if (!o_ptr->inscription)
{
#ifdef JP
- msg_print("¤³¤Î¥¢¥¤¥Æ¥à¤Ë¤Ï¾Ã¤¹¤Ù¤Ì䬤ʤ¤¡£");
+ msg_print("このアイテムには消すべき銘がない。");
#else
msg_print("That item had no inscription to remove.");
#endif
/* Message */
#ifdef JP
- msg_print("Ìäò¾Ã¤·¤¿¡£");
+ msg_print("銘を消した。");
#else
msg_print("Inscription removed.");
#endif
/* Window stuff */
p_ptr->window |= (PW_INVEN | PW_EQUIP);
- /* .¤ä$¤Î´Ø·¸¤Ç, ºÆ·×»»¤¬É¬ÍפʤϤº -- henkma */
+ /* .や$の関係で, 再計算が必要なはず -- henkma */
p_ptr->update |= (PU_BONUS);
}
/*!
- * @brief ¥¢¥¤¥Æ¥à¤ÎÌäò¹ï¤à¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief アイテムの銘を刻むコマンドのメインルーチン
* Inscribe an object with a comment
- * @return ¤Ê¤·
+ * @return なし
*/
void do_cmd_inscribe(void)
{
item_tester_no_ryoute = TRUE;
/* Get an item */
#ifdef JP
- q = "¤É¤Î¥¢¥¤¥Æ¥à¤ËÌäò¹ï¤ß¤Þ¤¹¤«? ";
- s = "Ìäò¹ï¤á¤ë¥¢¥¤¥Æ¥à¤¬¤Ê¤¤¡£";
+ q = "どのアイテムに銘を刻みますか? ";
+ s = "銘を刻めるアイテムがない。";
#else
q = "Inscribe which item? ";
s = "You have nothing to inscribe.";
/* Message */
#ifdef JP
- msg_format("%s¤ËÌäò¹ï¤à¡£", o_name);
+ msg_format("%sに銘を刻む。", o_name);
#else
msg_format("Inscribing %s.", o_name);
#endif
/* Get a new inscription (possibly empty) */
#ifdef JP
- if (get_string("ÌÃ: ", out_val, 80))
+ if (get_string("銘: ", out_val, 80))
#else
if (get_string("Inscription: ", out_val, 80))
#endif
/* Window stuff */
p_ptr->window |= (PW_INVEN | PW_EQUIP);
- /* .¤ä$¤Î´Ø·¸¤Ç, ºÆ·×»»¤¬É¬ÍפʤϤº -- henkma */
+ /* .や$の関係で, 再計算が必要なはず -- henkma */
p_ptr->update |= (PU_BONUS);
}
}
/*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤¬¥é¥ó¥¿¥ó¤ÎdzÎÁ¤Ë¤Ê¤ë¤«¤É¤¦¤«¤òȽÄꤹ¤ë
+ * @brief オブジェクトがランタンの燃料になるかどうかを判定する
* An "item_tester_hook" for refilling lanterns
- * @param o_ptr ȽÄꤷ¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤¬¥é¥ó¥¿¥ó¤ÎdzÎÁ¤Ë¤Ê¤ë¤Ê¤é¤ÐTRUE¤òÊÖ¤¹
+ * @param o_ptr å\88¤å®\9aã\81\97ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return オブジェクトがランタンの燃料になるならばTRUEを返す
*/
static bool item_tester_refill_lantern(object_type *o_ptr)
{
/*!
- * @brief ¥é¥ó¥¿¥ó¤ËdzÎÁ¤ò²Ã¤¨¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief ランタンに燃料を加えるコマンドのメインルーチン
* Refill the players lamp (from the pack or floor)
- * @return ¤Ê¤·
+ * @return なし
*/
static void do_cmd_refill_lamp(void)
{
/* Get an item */
#ifdef JP
- q = "¤É¤ÎÌý¤Ä¤Ü¤«¤éÃí¤®¤Þ¤¹¤«? ";
- s = "Ìý¤Ä¤Ü¤¬¤Ê¤¤¡£";
+ q = "どの油つぼから注ぎますか? ";
+ s = "油つぼがない。";
#else
q = "Refill with which flask? ";
s = "You have no flasks of oil.";
/* Message */
#ifdef JP
- msg_print("¥é¥ó¥×¤ËÌý¤òÃí¤¤¤À¡£");
+ msg_print("ランプに油を注いだ。");
#else
msg_print("You fuel your lamp.");
#endif
{
j_ptr->xtra4 = 0;
#ifdef JP
- msg_print("¥é¥ó¥×¤¬¾Ã¤¨¤Æ¤·¤Þ¤Ã¤¿¡ª");
+ msg_print("ランプが消えてしまった!");
#else
msg_print("Your lamp has gone out!");
#endif
{
j_ptr->xtra4 = 0;
#ifdef JP
- msg_print("¤·¤«¤·¥é¥ó¥×¤ÏÁ´¤¯¸÷¤é¤Ê¤¤¡£");
+ msg_print("しかしランプは全く光らない。");
#else
msg_print("Curiously, your lamp doesn't light.");
#endif
{
j_ptr->xtra4 = FUEL_LAMP;
#ifdef JP
- msg_print("¥é¥ó¥×¤ÎÌý¤Ï°ìÇÕ¤À¡£");
+ msg_print("ランプの油は一杯だ。");
#else
msg_print("Your lamp is full.");
#endif
/*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤¬¾¾ÌÀ¤Ë«¤Í¤é¤ì¤ë¤«¤É¤¦¤«¤òȽÄꤹ¤ë
+ * @brief オブジェクトが松明に束ねられるかどうかを判定する
* An "item_tester_hook" for refilling torches
- * @param o_ptr ȽÄꤷ¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤¬¾¾ÌÀ¤Ë«¤Í¤é¤ì¤ë¤Ê¤é¤ÐTRUE¤òÊÖ¤¹
+ * @param o_ptr å\88¤å®\9aã\81\97ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return オブジェクトが松明に束ねられるならばTRUEを返す
*/
static bool item_tester_refill_torch(object_type *o_ptr)
{
/*!
- * @brief ¾¾ÌÀ¤ò«¤Í¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief 松明を束ねるコマンドのメインルーチン
* Refuel the players torch (from the pack or floor)
- * @return ¤Ê¤·
+ * @return なし
*/
static void do_cmd_refill_torch(void)
{
/* Get an item */
#ifdef JP
- q = "¤É¤Î¾¾ÌÀ¤ÇÌÀ¤«¤ê¤ò¶¯¤á¤Þ¤¹¤«? ";
- s = "¾¤Ë¾¾ÌÀ¤¬¤Ê¤¤¡£";
+ q = "どの松明で明かりを強めますか? ";
+ s = "他に松明がない。";
#else
q = "Refuel with which torch? ";
s = "You have no extra torches.";
/* Message */
#ifdef JP
- msg_print("¾¾ÌÀ¤ò·ë¹ç¤·¤¿¡£");
+ msg_print("松明を結合した。");
#else
msg_print("You combine the torches.");
#endif
{
j_ptr->xtra4 = 0;
#ifdef JP
- msg_print("¾¾ÌÀ¤¬¾Ã¤¨¤Æ¤·¤Þ¤Ã¤¿¡ª");
+ msg_print("松明が消えてしまった!");
#else
msg_print("Your torch has gone out!");
#endif
{
j_ptr->xtra4 = 0;
#ifdef JP
- msg_print("¤·¤«¤·¾¾ÌÀ¤ÏÁ´¤¯¸÷¤é¤Ê¤¤¡£");
+ msg_print("しかし松明は全く光らない。");
#else
msg_print("Curiously, your torche don't light.");
#endif
{
j_ptr->xtra4 = FUEL_TORCH;
#ifdef JP
- msg_print("¾¾ÌÀ¤Î¼÷Ì¿¤Ï½½Ê¬¤À¡£");
+ msg_print("松明の寿命は十分だ。");
#else
msg_print("Your torch is fully fueled.");
#endif
else
{
#ifdef JP
- msg_print("¾¾ÌÀ¤Ï¤¤¤Ã¤½¤¦ÌÀ¤ë¤¯µ±¤¤¤¿¡£");
+ msg_print("松明はいっそう明るく輝いた。");
#else
msg_print("Your torch glows more brightly.");
#endif
/*!
- * @brief dzÎÁ¤òÊä½¼¤¹¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief 燃料を補充するコマンドのメインルーチン
* Refill the players lamp, or restock his torches
- * @return ¤Ê¤·
+ * @return なし
*/
void do_cmd_refill(void)
{
if (o_ptr->tval != TV_LITE)
{
#ifdef JP
- msg_print("¸÷¸»¤òÁõÈ÷¤·¤Æ¤¤¤Ê¤¤¡£");
+ msg_print("光源を装備していない。");
#else
msg_print("You are not wielding a light.");
#endif
else
{
#ifdef JP
- msg_print("¤³¤Î¸÷¸»¤Ï¼÷Ì¿¤ò±ä¤Ð¤»¤Ê¤¤¡£");
+ msg_print("この光源は寿命を延ばせない。");
#else
msg_print("Your light cannot be refilled.");
#endif
/*!
- * @brief ¥¿¡¼¥²¥Ã¥È¤òÀßÄꤹ¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief ターゲットを設定するコマンドのメインルーチン
* Target command
- * @return ¤Ê¤·
+ * @return なし
*/
void do_cmd_target(void)
{
if (target_set(TARGET_KILL))
{
#ifdef JP
- msg_print("¥¿¡¼¥²¥Ã¥È·èÄê¡£");
+ msg_print("ターゲット決定。");
#else
msg_print("Target Selected.");
#endif
else
{
#ifdef JP
- msg_print("¥¿¡¼¥²¥Ã¥È²ò½ü¡£");
+ msg_print("ターゲット解除。");
#else
msg_print("Target Aborted.");
#endif
/*!
- * @brief ¼þ°Ï¤ò¸«ÅϤ¹¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief 周囲を見渡すコマンドのメインルーチン
* Look command
- * @return ¤Ê¤·
+ * @return なし
*/
void do_cmd_look(void)
{
if (target_set(TARGET_LOOK))
{
#ifdef JP
- msg_print("¥¿¡¼¥²¥Ã¥È·èÄê¡£");
+ msg_print("ターゲット決定。");
#else
msg_print("Target Selected.");
#endif
/*!
- * @brief °ÌÃÖ¤ò³Îǧ¤¹¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief 位置を確認するコマンドのメインルーチン
* Allow the player to examine other sectors on the map
- * @return ¤Ê¤·
+ * @return なし
*/
void do_cmd_locate(void)
{
if ((y2 == y1) && (x2 == x1))
{
#ifdef JP
- strcpy(tmp_val, "¿¿¾å");
+ strcpy(tmp_val, "真上");
#else
tmp_val[0] = '\0';
#endif
{
#ifdef JP
sprintf(tmp_val, "%s%s",
- ((y2 < y1) ? "ËÌ" : (y2 > y1) ? "Æî" : ""),
- ((x2 < x1) ? "À¾" : (x2 > x1) ? "Åì" : ""));
+ ((y2 < y1) ? "北" : (y2 > y1) ? "南" : ""),
+ ((x2 < x1) ? "西" : (x2 > x1) ? "東" : ""));
#else
sprintf(tmp_val, "%s%s of",
((y2 < y1) ? " North" : (y2 > y1) ? " South" : ""),
/* Prepare to ask which way to look */
sprintf(out_val,
#ifdef JP
- "¥Þ¥Ã¥×°ÌÃÖ [%d(%02d),%d(%02d)] (¥×¥ì¥¤¥ä¡¼¤Î%s) Êý¸þ?",
+ "マップ位置 [%d(%02d),%d(%02d)] (プレイヤーの%s) 方向?",
#else
"Map sector [%d(%02d),%d(%02d)], which is%s your sector. Direction?",
#endif
/*!
- * @brief ¥â¥ó¥¹¥¿¡¼¼ï²¾ðÊó¤òÆÃÄê¤Î´ð½à¤Ë¤è¤ê¥½¡¼¥È¤¹¤ë¤¿¤á¤ÎÈæ³Ó½èÍý
+ * @brief モンスター種族情報を特定の基準によりソートするための比較処理
* Sorting hook -- Comp function -- see below
- * @param u ¥â¥ó¥¹¥¿¡¼¼ï²¾ðÊó¤ÎÆþ¤ì¤ë¥Ý¥¤¥ó¥¿
- * @param v ¾ò·ï´ð½àID
- * @param a Èæ³Ó¤¹¤ë¥â¥ó¥¹¥¿¡¼¼ï²¤ÎID1
- * @param b Èæ³Ó¤¹¤ë¥â¥ó¥¹¥¿¡¼¼ï²¤ÎID2
- * @return 2¤ÎÊý¤¬Â礤±¤ì¤ÐTRUE¤òÊÖ¤¹
+ * @param u ã\83¢ã\83³ã\82¹ã\82¿ã\83¼ç¨®æ\97\8fæ\83\85å ±ã\81®å\85¥ã\82\8cã\82\8bã\83\9dã\82¤ã\83³ã\82¿
+ * @param v 条件基準ID
+ * @param a 比較するモンスター種族のID1
+ * @param b 比較するモンスター種族のID2
+ * @return 2の方が大きければTRUEを返す
* We use "u" to point to array of monster indexes,
* and "v" to select the type of sorting to perform on "u".
*/
/*!
- * @brief ¥â¥ó¥¹¥¿¡¼¼ï²¾ðÊó¤òÆÃÄê¤Î´ð½à¤Ë¤è¤ê¥½¡¼¥È¤¹¤ë¤¿¤á¤Î¥¹¥ï¥Ã¥×½èÍý
+ * @brief モンスター種族情報を特定の基準によりソートするためのスワップ処理
* Sorting hook -- Swap function -- see below
- * @param u ¥â¥ó¥¹¥¿¡¼¼ï²¾ðÊó¤ÎÆþ¤ì¤ë¥Ý¥¤¥ó¥¿
- * @param v ̤»ÈÍÑ
- * @param a ¥¹¥ï¥Ã¥×¤¹¤ë¥â¥ó¥¹¥¿¡¼¼ï²¤ÎID1
- * @param b ¥¹¥ï¥Ã¥×¤¹¤ë¥â¥ó¥¹¥¿¡¼¼ï²¤ÎID2
- * @return ¤Ê¤·
+ * @param u ã\83¢ã\83³ã\82¹ã\82¿ã\83¼ç¨®æ\97\8fæ\83\85å ±ã\81®å\85¥ã\82\8cã\82\8bã\83\9dã\82¤ã\83³ã\82¿
+ * @param v 未使用
+ * @param a スワップするモンスター種族のID1
+ * @param b スワップするモンスター種族のID2
+ * @return なし
* @details
* We use "u" to point to array of monster indexes,
* and "v" to select the type of sorting to perform.
/*!
- * @brief ¥â¥ó¥¹¥¿¡¼¤Î»×¤¤½Ð¤ò¸«¤ë¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief モンスターの思い出を見るコマンドのメインルーチン
* Identify a character, allow recall of monsters
- * @return ¤Ê¤·
+ * @return なし
* @details
* <pre>
* Several "special" responses recall "multiple" monsters:
/* Get a character, or abort */
#ifdef JP
- if (!get_com("ÃΤꤿ¤¤Ê¸»ú¤òÆþÎϤ·¤Æ²¼¤µ¤¤(µ¹æ or ^AÁ´,^U¥æ,^NÈó¥æ,^R¾èÇÏ,^M̾Á°): ", &sym, FALSE)) return;
+ if (!get_com("知りたい文字を入力して下さい(記号 or ^A全,^Uユ,^N非ユ,^R乗馬,^M名前): ", &sym, FALSE)) return;
#else
if (!get_com("Enter character to be identified(^A:All,^U:Uniqs,^N:Non uniqs,^M:Name): ", &sym, FALSE)) return;
#endif
{
all = TRUE;
#ifdef JP
- strcpy(buf, "Á´¥â¥ó¥¹¥¿¡¼¤Î¥ê¥¹¥È");
+ strcpy(buf, "全モンスターのリスト");
#else
strcpy(buf, "Full monster list.");
#endif
{
all = uniq = TRUE;
#ifdef JP
- strcpy(buf, "¥æ¥Ë¡¼¥¯¡¦¥â¥ó¥¹¥¿¡¼¤Î¥ê¥¹¥È");
+ strcpy(buf, "ユニーク・モンスターのリスト");
#else
strcpy(buf, "Unique monster list.");
#endif
{
all = norm = TRUE;
#ifdef JP
- strcpy(buf, "¥æ¥Ë¡¼¥¯³°¥â¥ó¥¹¥¿¡¼¤Î¥ê¥¹¥È");
+ strcpy(buf, "ユニーク外モンスターのリスト");
#else
strcpy(buf, "Non-unique monster list.");
#endif
{
all = ride = TRUE;
#ifdef JP
- strcpy(buf, "¾èÇϲÄǽ¥â¥ó¥¹¥¿¡¼¤Î¥ê¥¹¥È");
+ strcpy(buf, "乗馬可能モンスターのリスト");
#else
strcpy(buf, "Ridable monster list.");
#endif
{
all = TRUE;
#ifdef JP
- if (!get_string("̾Á°(±Ñ¸ì¤Î¾ì¹ç¾®Ê¸»ú¤Ç²Ä)",temp, 70))
+ if (!get_string("名前(英語の場合小文字で可)",temp, 70))
#else
if (!get_string("Enter name:",temp, 70))
#endif
return;
}
#ifdef JP
- sprintf(buf, "̾Á°:%s¤Ë¥Þ¥Ã¥Á",temp);
+ sprintf(buf, "名前:%sにマッチ",temp);
#else
sprintf(buf, "Monsters with a name \"%s\"",temp);
#endif
else
{
#ifdef JP
- sprintf(buf, "%c - %s", sym, "̵¸ú¤Êʸ»ú");
+ sprintf(buf, "%c - %s", sym, "無効な文字");
#else
sprintf(buf, "%c - %s.", sym, "Unknown Symbol");
#endif
/* Prompt XXX XXX XXX */
#ifdef JP
- put_str("»×¤¤½Ð¤ò¸«¤Þ¤¹¤«? (k:»¦³²½ç/y/n): ", 0, 36);
+ put_str("思い出を見ますか? (k:殺害順/y/n): ", 0, 36);
#else
put_str("Recall details? (k/y/n): ", 0, 40);
#endif
/* Hack -- Complete the prompt */
#ifdef JP
- Term_addstr(-1, TERM_WHITE, " ['r'»×¤¤½Ð, ESC]");
+ Term_addstr(-1, TERM_WHITE, " ['r'思い出, ESC]");
#else
Term_addstr(-1, TERM_WHITE, " [(r)ecall, ESC]");
#endif