OSDN Git Service

#37287 #37353 (2.2.0.89) 型の置換を継続中。 / Ongoing type replacement.
[hengband/hengband.git] / src / object2.c
index f594c02..5e6fa91 100644 (file)
@@ -1,6 +1,6 @@
-/*!
+/*!
  * @file object2.c
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤Î¼ÂÁõ / Object code, part 2
+ * @brief オブジェクトの実装 / Object code, part 2
  * @date 2014/01/11
  * @author
  * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke\n
 
 #include "angband.h"
 
-#include "kajitips.h"
+static cptr const kaji_tips[5] =
+{
+#ifdef JP
+       "現在持っているエッセンスの一覧を表示する。",
+       "アイテムからエッセンスを取り出す。エッセンスを取られたアイテムは全く魔法がかかっていない初期状態に戻る。",
+       "既にエッセンスが付加されたアイテムからエッセンスのみ消し去る。エッセンスは手に入らない。",
+       "アイテムにエッセンスを付加する。既にエッセンスが付加されたアイテムやアーティファクトには付加できない。",
+       "武器や防具を強化したり、攻撃で傷つかないようにしたりする。エッセンスが付加されたアイテムやアーティファクトに対しても使用できる。",
+#else
+       "Display essences you have.",
+       "Extract essences from an item. The item become non magical.",
+       "Remove added essences from an equipment which was improved before. The removed essence will be ruined.",
+       "Add essences to an item. The improved items or artifacts cannot be reimprove.",
+       "Enchant an equipment or make an equiment element-proofed. The improved items and artifacts can be enchanted too.",
+#endif
+};
 
 /*!
- * @brief ¾²¾å¡¢¥â¥ó¥¹¥¿¡¼½ê»ý¤Ç¥¹¥¿¥Ã¥¯¤µ¤ì¤¿¥¢¥¤¥Æ¥à¤òºï½ü¤·¥¹¥¿¥Ã¥¯¤òÊä´°¤¹¤ë / Excise a dungeon object from any stacks
- * @param o_idx ºï½üÂоݤΥª¥Ö¥¸¥§¥¯¥È¹½Â¤ÂΥݥ¤¥ó¥¿
- * @return ¤Ê¤·
+ * @brief 床上、モンスター所持でスタックされたアイテムを削除しスタックを補完する / Excise a dungeon object from any stacks
+ * @param o_idx å\89\8aé\99¤å¯¾è±¡ã\81®ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88æ§\8bé\80 ä½\93ã\83\9dã\82¤ã\83³ã\82¿
+ * @return なし
  */
 void excise_object_idx(int o_idx)
 {
@@ -143,10 +158,10 @@ void excise_object_idx(int o_idx)
 }
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤òºï½ü¤¹¤ë /
+ * @brief オブジェクトを削除する /
  * Delete a dungeon object
- * @param o_idx ºï½üÂоݤΥª¥Ö¥¸¥§¥¯¥È¹½Â¤ÂΥݥ¤¥ó¥¿
- * @return ¤Ê¤·
+ * @param o_idx å\89\8aé\99¤å¯¾è±¡ã\81®ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88æ§\8bé\80 ä½\93ã\83\9dã\82¤ã\83³ã\82¿
+ * @return なし
  * @details
  * Handle "stacks" of objects correctly.
  */
@@ -182,11 +197,11 @@ void delete_object_idx(int o_idx)
 
 
 /*!
- * @brief ¥Õ¥í¥¢¤Ë¥Þ¥¹¤ËÍî¤Á¤Æ¤¤¤ë¥ª¥Ö¥¸¥§¥¯¥È¤òÁ´¤Æºï½ü¤¹¤ë / Deletes all objects at given location
+ * @brief フロアにマスに落ちているオブジェクトを全て削除する / Deletes all objects at given location
  * Delete a dungeon object
- * @param y ºï½ü¤·¤¿¥Õ¥í¥¢¥Þ¥¹¤ÎYºÂɸ
- * @param x ºï½ü¤·¤¿¥Õ¥í¥¢¥Þ¥¹¤ÎXºÂɸ
- * @return ¤Ê¤·
+ * @param y 削除したフロアマスのY座標
+ * @param x 削除したフロアマスのX座標
+ * @return なし
  */
 void delete_object(int y, int x)
 {
@@ -229,21 +244,18 @@ void delete_object(int y, int x)
 
 
 /*!
- * @brief ¥°¥í¡¼¥Ð¥ë¥ª¥Ö¥¸¥§¥¯¥ÈÇÛÎó¤ËÂФ·»ØÄêÈϰϤΥª¥Ö¥¸¥§¥¯¥È¤òÀ°Íý¤·¤ÆID¤Î¼ã¤¤½ç¤Ë´ó¤»¤ë /
+ * @brief グローバルオブジェクト配列に対し指定範囲のオブジェクトを整理してIDの若い順に寄せる /
  * Move an object from index i1 to index i2 in the object list
- * @param i1 À°Íý¤·¤¿¤¤ÇÛÎó¤Î»ÏÅÀ
- * @param i2 À°Íý¤·¤¿¤¤ÇÛÎó¤Î½ªÅÀ
- * @return ¤Ê¤·
+ * @param i1 整理したい配列の始点
+ * @param i2 整理したい配列の終点
+ * @return なし
  */
-static void compact_objects_aux(int i1, int i2)
+static void compact_objects_aux(IDX i1, IDX i2)
 {
-       int i;
-
+       IDX i;
        cave_type *c_ptr;
-
        object_type *o_ptr;
 
-
        /* Do nothing */
        if (i1 == i2) return;
 
@@ -316,12 +328,12 @@ static void compact_objects_aux(int i1, int i2)
 
 
 /*!
- * @brief ¥°¥í¡¼¥Ð¥ë¥ª¥Ö¥¸¥§¥¯¥ÈÇÛÎ󤫤éÍ¥ÀèÅÙ¤ÎÄ㤤¤â¤Î¤òºï½ü¤·¡¢¥Ç¡¼¥¿¤ò°µ½Ì¤¹¤ë¡£ /
+ * @brief グローバルオブジェクト配列から優先度の低いものを削除し、データを圧縮する。 /
  * Compact and Reorder the object list.
- * @size ºÇÄã¤Ç¤â¸º¤é¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¿ô¤Î¿å½à
- * @return ¤Ê¤·
+ * @param size 最低でも減らしたいオブジェクト数の水準
+ * @return なし
  * @details
- * ¡Ê´í¸±¤Ê¤Î¤Ç»ÈÍѤˤÏÃí°Õ¤¹¤ë¤³¤È¡Ë
+ * (危険なので使用には注意すること)
  * This function can be very dangerous, use with caution!\n
  *\n
  * When actually "compacting" objects, we base the saving throw on a\n
@@ -333,7 +345,8 @@ static void compact_objects_aux(int i1, int i2)
  */
 void compact_objects(int size)
 {
-       int i, y, x, num, cnt;
+       IDX i;
+       int y, x, num, cnt;
        int cur_lev, cur_dis, chance;
        object_type *o_ptr;
 
@@ -342,12 +355,7 @@ void compact_objects(int size)
        if (size)
        {
                /* Message */
-#ifdef JP
-               msg_print("¥¢¥¤¥Æ¥à¾ðÊó¤ò°µ½Ì¤·¤Æ¤¤¤Þ¤¹...");
-#else
-               msg_print("Compacting objects...");
-#endif
-
+               msg_print(_("アイテム情報を圧縮しています...", "Compacting objects..."));
 
                /* Redraw map */
                p_ptr->redraw |= (PR_MAP);
@@ -402,7 +410,7 @@ void compact_objects(int size)
                        }
 
                        /* Nearby objects start out "immune" */
-                       if ((cur_dis > 0) && (distance(py, px, y, x) < cur_dis)) continue;
+                       if ((cur_dis > 0) && (distance(p_ptr->y, p_ptr->x, y, x) < cur_dis)) continue;
 
                        /* Saving throw */
                        chance = 90;
@@ -441,7 +449,7 @@ void compact_objects(int size)
 
 
 /*!
- * @brief ¥°¥í¡¼¥Ð¥ë¥ª¥Ö¥¸¥§¥¯¥ÈÇÛÎó¤ò½é´ü²½¤¹¤ë /
+ * @brief グローバルオブジェクト配列を初期化する /
  * Delete all the items when player leaves the level
  * @note we do NOT visually reflect these (irrelevant) changes
  * @details
@@ -450,7 +458,7 @@ void compact_objects(int size)
  * we know we are clearing every object.  Technically, we only
  * clear those fields for grids/monsters containing objects,
  * and we clear it once for every such object.
- * @return ¤Ê¤·
+ * @return なし
  */
 void wipe_o_list(void)
 {
@@ -516,16 +524,16 @@ void wipe_o_list(void)
 
 
 /*!
- * @brief ¥°¥í¡¼¥Ð¥ë¥ª¥Ö¥¸¥§¥¯¥ÈÇÛÎ󤫤é¶õ¤­¤ò¼èÆÀ¤¹¤ë /
+ * @brief グローバルオブジェクト配列から空きを取得する /
  * Acquires and returns the index of a "free" object.
- * @return ³«¤¤¤Æ¤¤¤ë¥ª¥Ö¥¸¥§¥¯¥ÈÍ×ÁǤÎID
+ * @return 開いているオブジェクト要素のID
  * @details
  * This routine should almost never fail, but in case it does,
  * we must be sure to handle "failure" of this routine.
  */
-s16b o_pop(void)
+IDX o_pop(void)
 {
-       int i;
+       IDX i;
 
 
        /* Initial allocation */
@@ -565,12 +573,7 @@ s16b o_pop(void)
 
 
        /* Warn the player (except during dungeon creation) */
-#ifdef JP
-       if (character_dungeon) msg_print("¥¢¥¤¥Æ¥à¤¬Â¿¤¹¤®¤ë¡ª");
-#else
-       if (character_dungeon) msg_print("Too many objects!");
-#endif
-
+       if (character_dungeon) msg_print(_("アイテムが多すぎる!", "Too many objects!"));
 
        /* Oops */
        return (0);
@@ -578,10 +581,10 @@ s16b o_pop(void)
 
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥ÈÀ¸À®¥Æ¡¼¥Ö¥ë¤ËÀ¸À®À©Ìó¤ò²Ã¤¨¤ë /
+ * @brief オブジェクト生成テーブルに生成制約を加える /
  * Apply a "object restriction function" to the "object allocation table"
- * @return ¾ï¤Ë0¤òÊÖ¤¹¡£
- * @details À¸À®¤ÎÀ©Ìó¤Ï¥°¥í¡¼¥Ð¥ë¤Îget_obj_num_hook´Ø¿ô¥Ý¥¤¥ó¥¿¤Ç²Ã¤¨¤ë
+ * @return 常に0を返す。
+ * @details 生成の制約はグローバルのget_obj_num_hook関数ポインタで加える
  */
 static errr get_obj_num_prep(void)
 {
@@ -614,10 +617,10 @@ static errr get_obj_num_prep(void)
 
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥ÈÀ¸À®¥Æ¡¼¥Ö¥ë¤«¤é¥¢¥¤¥Æ¥à¤ò¼èÆÀ¤¹¤ë /
+ * @brief オブジェクト生成テーブルからアイテムを取得する /
  * Choose an object kind that seems "appropriate" to the given level
- * @param À¸À®³¬
- * @return Áª¤Ð¤ì¤¿¥ª¥Ö¥¸¥§¥¯¥È¥Ù¡¼¥¹ID
+ * @param level 生成階
+ * @return é\81¸ã\81°ã\82\8cã\81\9fã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\83\99ã\83¼ã\82¹ID
  * @details
  * This function uses the "prob2" field of the "object allocation table",\n
  * and various local information, to calculate the "prob3" field of the\n
@@ -754,10 +757,10 @@ s16b get_obj_num(int level)
 
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤ò´ÕÄêºÑ¤Ë¤¹¤ë /
+ * @brief オブジェクトを鑑定済にする /
  * Known is true when the "attributes" of an object are "known".
- * @param o_ptr ´ÕÄêºÑ¤Ë¤¹¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @param o_ptr é\91\91å®\9aæ¸\88ã\81«ã\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 なし
  * These include tohit, todam, toac, cost, and pval (charges).\n
  *\n
  * Note that "knowing" an object gives you everything that an "awareness"\n
@@ -787,10 +790,10 @@ void object_known(object_type *o_ptr)
 }
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤ò¡ö´ÕÄê¡öºÑ¤Ë¤¹¤ë /
+ * @brief オブジェクトを*鑑定*済にする /
  * The player is now aware of the effects of the given object.
- * @param o_ptr ¡ö´ÕÄê¡öºÑ¤Ë¤¹¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @param o_ptr ï¼\8aé\91\91å®\9aï¼\8aæ¸\88ã\81«ã\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 なし
  */
 void object_aware(object_type *o_ptr)
 {
@@ -818,10 +821,10 @@ void object_aware(object_type *o_ptr)
 
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤ò»î¹ÔºÑ¤Ë¤¹¤ë /
+ * @brief オブジェクトを試行済にする /
  * Something has been "sampled"
- * @param o_ptr »î¹ÔºÑ¤Ë¤¹¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @param o_ptr è©¦è¡\8cæ¸\88ã\81«ã\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 なし
  */
 void object_tried(object_type *o_ptr)
 {
@@ -831,10 +834,10 @@ void object_tried(object_type *o_ptr)
 
 
 /*!
- * @brief Ì¤´ÕÄê¤Ê¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤Î´ðËܲÁ³Ê¤òÊÖ¤¹ /
+ * @brief 未鑑定なベースアイテムの基本価格を返す /
  * Return the "value" of an "unknown" item Make a guess at the value of non-aware items
- * @param o_ptr Ì¤´ÕÄê²Á³Ê¤ò³Îǧ¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤Î̤´ÕÄê²Á³Ê
+ * @param o_ptr æ\9cªé\91\91å®\9a価格ã\82\92確èª\8dã\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 オブジェクトの未鑑定価格
  */
 static s32b object_value_base(object_type *o_ptr)
 {
@@ -891,11 +894,11 @@ static s32b object_value_base(object_type *o_ptr)
 
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤Î¥Õ¥é¥°Îफ¤é²Á³Ê¤ò»»½Ð¤¹¤ë /
+ * @brief オブジェクトのフラグ類から価格を算出する /
  * Return the value of the flags the object has...
- * @param o_ptr ¥Õ¥é¥°²Á³Ê¤ò³Îǧ¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param plusses ¥Õ¥é¥°¤ËÍ¿¤¨¤ë²Á³Ê¤Î´ðËܽŤß
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤Î¥Õ¥é¥°²Á³Ê
+ * @param o_ptr ã\83\95ã\83©ã\82°ä¾¡æ ¼ã\82\92確èª\8dã\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¿
+ * @param plusses フラグに与える価格の基本重み
+ * @return オブジェクトのフラグ価格
  */
 s32b flag_cost(object_type *o_ptr, int plusses)
 {
@@ -996,7 +999,7 @@ s32b flag_cost(object_type *o_ptr, int plusses)
        if (have_flag(flgs, TR_EASY_SPELL)) total += 1500;
        if (have_flag(flgs, TR_THROW)) total += 5000;
        if (have_flag(flgs, TR_FREE_ACT)) total += 4500;
-       if (have_flag(flgs, TR_HOLD_LIFE)) total += 8500;
+       if (have_flag(flgs, TR_HOLD_EXP)) total += 8500;
 
        tmp_cost = 0;
        count = 0;
@@ -1105,10 +1108,10 @@ s32b flag_cost(object_type *o_ptr, int plusses)
 
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤Î¿¿¤Î²Á³Ê¤ò»»½Ð¤¹¤ë /
+ * @brief オブジェクトの真の価格を算出する /
  * Return the value of the flags the object has...
- * @param o_ptr ËܲÁ³Ê¤ò³Îǧ¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤ÎËܲÁ³Ê
+ * @param o_ptr æ\9c¬ä¾¡æ ¼ã\82\92確èª\8dã\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 オブジェクトの本価格
  * @details
  * Return the "real" price of a "known" item, not including discounts\n
  *\n
@@ -1379,10 +1382,10 @@ s32b object_value_real(object_type *o_ptr)
 
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È²Á³Ê»»½Ð¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó /
+ * @brief オブジェクト価格算出のメインルーチン /
  * Return the price of an item including plusses (and charges)
- * @param o_ptr È½ÌÀ¤·¤Æ¤¤¤ë¸½²Á³Ê¤ò³Îǧ¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤ÎȽÌÀ¤·¤Æ¤¤¤ë¸½²Á³Ê
+ * @param o_ptr å\88¤æ\98\8eã\81\97ã\81¦ã\81\84ã\82\8bç\8f¾ä¾¡æ ¼ã\82\92確èª\8dã\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 オブジェクトの判明している現価格
  * @details
  * This function returns the "value" of the given item (qty one)\n
  *\n
@@ -1435,10 +1438,10 @@ s32b object_value(object_type *o_ptr)
 
 
 /*!
- * @brief Ç˲õ²Äǽ¤Ê¥¢¥¤¥Æ¥à¤«¤òÊÖ¤¹ /
+ * @brief 破壊可能なアイテムかを返す /
  * Determines whether an object can be destroyed, and makes fake inscription.
- * @param o_ptr Ç˲õ²Äǽ¤«¤ò³Îǧ¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¥ª¥Ö¥¸¥§¥¯¥È¤¬Ç˲õ²Äǽ¤Ê¤é¤ÐTRUE¤òÊÖ¤¹
+ * @param o_ptr ç ´å£\8aå\8f¯è\83½ã\81\8bã\82\92確èª\8dã\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を返す
  */
 bool can_player_destroy_object(object_type *o_ptr)
 {
@@ -1475,12 +1478,12 @@ bool can_player_destroy_object(object_type *o_ptr)
 
 
 /*!
- * @brief ËâË¡ËÀ¤ä¥í¥Ã¥É¤Î¥¹¥í¥Ã¥Èʬ³ä»þ¤Ë»ÈÍѲó¿ô¤òʬÇÛ¤¹¤ë /
+ * @brief 魔法棒やロッドのスロット分割時に使用回数を分配する /
  * Distribute charges of rods or wands.
- * @param o_ptr Ê¬³ä¸µ¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿ source item
- * @param q_ptr Ê¬³äÀ襪¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿ target item, must be of the same type as o_ptr
- * @param amt Ê¬³ä¤·¤¿¤¤²ó¿ôÎÌ number of items that are transfered
- * @return ¤Ê¤·
+ * @param o_ptr å\88\86å\89²å\85\83ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿ source item
+ * @param q_ptr å\88\86å\89²å\85\88ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿ target item, must be of the same type as o_ptr
+ * @param amt 分割したい回数量 number of items that are transfered
+ * @return なし
  * @details
  * Hack -- If rods or wands are dropped, the total maximum timeout or\n
  * charges need to be allocated between the two stacks.  If all the items\n
@@ -1511,10 +1514,10 @@ void distribute_charges(object_type *o_ptr, object_type *q_ptr, int amt)
 }
 
 /*!
- * @brief ËâË¡ËÀ¤ä¥í¥Ã¥É¤Î»ÈÍѲó¿ô¤ò¸º¤é¤¹ /
- * @param o_ptr ¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿ source item
- * @param amt ¸º¤é¤·¤¿¤¤²ó¿ôÎÌ number of items that are transfered
- * @return ¤Ê¤·
+ * @brief 魔法棒やロッドの使用回数を減らす /
+ * @param o_ptr ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿ source item
+ * @param amt 減らしたい回数量 number of items that are transfered
+ * @return なし
  * @details
  * Hack -- If rods or wand are destroyed, the total maximum timeout or\n
  * charges of the stack needs to be reduced, unless all the items are\n
@@ -1556,12 +1559,12 @@ void reduce_charges(object_type *o_ptr, int amt)
 #define MAX_STACK_SIZE 99
 
 
-/*
- * @brief Î¾¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¹¥í¥Ã¥È¤Ë½Å¤Í¹ç¤ï¤»²Äǽ¤ÊºÇÂç¿ô¤òÊÖ¤¹¡£
+/*!
+ * @brief 両オブジェクトをスロットに重ね合わせ可能な最大数を返す。
  * Determine if an item can partly absorb a second item. Return maximum number of stack.
- * @param o_ptr ¸¡¾Ú¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿1
- * @param j_ptr ¸¡¾Ú¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿2
- * @return ½Å¤Í¹ç¤ï¤»²Äǽ¤Ê¥¢¥¤¥Æ¥à¿ô
+ * @param o_ptr æ¤\9c証ã\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¿1
+ * @param j_ptr æ¤\9c証ã\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¿2
+ * @return 重ね合わせ可能なアイテム数
  */
 int object_similar_part(object_type *o_ptr, object_type *j_ptr)
 {
@@ -1763,12 +1766,12 @@ int object_similar_part(object_type *o_ptr, object_type *j_ptr)
        return max_num;
 }
 
-/*
- * @brief Î¾¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¹¥í¥Ã¥È¤Ë½Å¤Í¤ë¤³¤È¤¬¤Ç¤­¤ë¤«¤É¤¦¤«¤òÊÖ¤¹¡£
+/*!
+ * @brief 両オブジェクトをスロットに重ねることができるかどうかを返す。
  * Determine if an item can absorb a second item.
- * @param o_ptr ¸¡¾Ú¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿1
- * @param j_ptr ¸¡¾Ú¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿2
- * @return ½Å¤Í¹ç¤ï¤»²Äǽ¤Ê¤é¤ÐTRUE¤òÊÖ¤¹¡£
+ * @param o_ptr æ¤\9c証ã\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¿1
+ * @param j_ptr æ¤\9c証ã\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¿2
+ * @return 重ね合わせ可能ならばTRUEを返す。
  */
 bool object_similar(object_type *o_ptr, object_type *j_ptr)
 {
@@ -1790,12 +1793,12 @@ bool object_similar(object_type *o_ptr, object_type *j_ptr)
 }
 
 
-/*
- * @brief Î¾¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¹¥í¥Ã¥È¤Ë½Å¤Í¹ç¤ï¤»¤ë¡£
+/*!
+ * @brief 両オブジェクトをスロットに重ね合わせる。
  * Allow one item to "absorb" another, assuming they are similar
- * @param o_ptr ½Å¤Í¹ç¤ï¤»Àè¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param j_ptr ½Å¤Í¹ç¤ï¤»¸µ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @param o_ptr é\87\8dã\81­å\90\88ã\82\8fã\81\9bå\85\88ã\81®ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param j_ptr é\87\8dã\81­å\90\88ã\82\8fã\81\9bå\85\83ã\81®ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return なし
  */
 void object_absorb(object_type *o_ptr, object_type *j_ptr)
 {
@@ -1845,18 +1848,18 @@ void object_absorb(object_type *o_ptr, object_type *j_ptr)
 }
 
 
-/*
- * @brief tval¤Èsval¤ËÂбþ¤¹¤ë¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤ÎID¤òÊÖ¤¹¡£
+/*!
+ * @brief tvalとsvalに対応するベースアイテムのIDを返す。
  * Find the index of the object_kind with the given tval and sval
- * @param tval ¸¡º÷¤·¤¿¤¤¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤Îtval
- * @param sval ¸¡º÷¤·¤¿¤¤¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤Îsval
- * @return ¤Ê¤·
+ * @param tval 検索したいベースアイテムのtval
+ * @param sval 検索したいベースアイテムのsval
+ * @return なし
  */
-s16b lookup_kind(int tval, int sval)
+IDX lookup_kind(OBJECT_TYPE_VALUE tval, OBJECT_SUBTYPE_VALUE sval)
 {
-       int k;
+       IDX k;
        int num = 0;
-       int bk = 0;
+       IDX bk = 0;
 
        /* Look for it */
        for (k = 1; k < max_k_idx; k++)
@@ -1887,11 +1890,7 @@ s16b lookup_kind(int tval, int sval)
 
 #if 0
        /* Oops */
-#ifdef JP
-       msg_format("¥¢¥¤¥Æ¥à¤¬¤Ê¤¤ (%d,%d)", tval, sval);
-#else
-       msg_format("No object (%d,%d)", tval, sval);
-#endif
+       msg_format(_("アイテムがない (%d,%d)", "No object (%d,%d)"), tval, sval);
 #endif
 
 
@@ -1900,11 +1899,11 @@ s16b lookup_kind(int tval, int sval)
 }
 
 
-/*
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤ò½é´ü²½¤¹¤ë
+/*!
+ * @brief オブジェクトを初期化する
  * Wipe an object clean.
- * @param o_ptr ½é´ü²½¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @param o_ptr å\88\9dæ\9c\9få\8c\96ã\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 なし
  */
 void object_wipe(object_type *o_ptr)
 {
@@ -1913,12 +1912,12 @@ void object_wipe(object_type *o_ptr)
 }
 
 
-/*
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤òÊ£À½¤¹¤ë
+/*!
+ * @brief オブジェクトを複製する
  * Wipe an object clean.
- * @param o_ptr Ê£À½¸µ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param j_ptr Ê£À½Àè¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @param o_ptr è¤\87製å\85\83ã\81®ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param j_ptr è¤\87製å\85\88ã\81®ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return なし
  */
 void object_copy(object_type *o_ptr, object_type *j_ptr)
 {
@@ -1927,14 +1926,14 @@ void object_copy(object_type *o_ptr, object_type *j_ptr)
 }
 
 
-/*
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¹½Â¤ÂΤ˥١¼¥¹¥¢¥¤¥Æ¥à¤òºîÀ®¤¹¤ë
+/*!
+ * @brief オブジェクト構造体にベースアイテムを作成する
  * Prepare an object based on an object kind.
- * @param o_ptr ÂåÆþ¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param k_idx ¿·¤¿¤ËºîÀ®¤·¤¿¤¤¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¾ðÊó¤ÎID
- * @return ¤Ê¤·
+ * @param o_ptr ä»£å\85¥ã\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¿
+ * @param k_idx 新たに作成したいベースアイテム情報のID
+ * @return なし
  */
-void object_prep(object_type *o_ptr, int k_idx)
+void object_prep(object_type *o_ptr, OBJECT_IDX k_idx)
 {
        object_kind *k_ptr = &k_info[k_idx];
 
@@ -1983,12 +1982,12 @@ void object_prep(object_type *o_ptr, int k_idx)
 }
 
 
-/*
- * @brief ¾å¼Á°Ê¾å¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ËÍ¿¤¨¤ë¤¿¤á¤Î³Æ¼ï¥Ü¡¼¥Ê¥¹¤òÀµµ¬Íð¿ô¤â²Ã¤¨¤Æ»»½Ð¤¹¤ë¡£
+/*!
+ * @brief 上質以上のオブジェクトに与えるための各種ボーナスを正規乱数も加えて算出する。
  * Help determine an "enchantment bonus" for an object.
- * @param max ¥Ü¡¼¥Ê¥¹ÃͤθÂÅÙ
- * @param level ¥Ü¡¼¥Ê¥¹Ãͤ˲ÃÌ£¤¹¤ë´ð½àÀ¸À®³¬
- * @return »»½Ð¤µ¤ì¤¿¥Ü¡¼¥Ê¥¹ÃÍ
+ * @param max ボーナス値の限度
+ * @param level ボーナス値に加味する基準生成階
+ * @return 算出されたボーナス値
  * @details
  * To avoid floating point but still provide a smooth distribution of bonuses,\n
  * we simply round the results of division in such a way as to "average" the\n
@@ -2070,70 +2069,30 @@ s16b m_bonus(int max, int level)
 
 
 /*!
- * @brief ¥Ç¥Ð¥Ã¥°»þ¤Ë¥¢¥¤¥Æ¥àÀ¸À®¾ðÊó¤ò¥á¥Ã¥»¡¼¥¸¤Ë½ÐÎϤ¹¤ë / Cheat -- describe a created object for the user
- * @param o_ptr ¥Ç¥Ð¥Ã¥°½ÐÎϤ¹¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @brief デバッグ時にアイテム生成情報をメッセージに出力する / Cheat -- describe a created object for the user
+ * @param o_ptr ã\83\87ã\83\90ã\83\83ã\82°å\87ºå\8a\9bã\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 なし
  */
 static void object_mention(object_type *o_ptr)
 {
        char o_name[MAX_NLEN];
 
-       /* Describe */
-       object_desc(o_name, o_ptr, (OD_NAME_ONLY | OD_STORE));
-
-       /* Artifact */
-       if (object_is_fixed_artifact(o_ptr))
-       {
-               /* Silly message */
-#ifdef JP
-               msg_format("ÅÁÀâ¤Î¥¢¥¤¥Æ¥à (%s)", o_name);
-#else
-               msg_format("Artifact (%s)", o_name);
-#endif
-
-       }
-
-       /* Random Artifact */
-       else if (o_ptr->art_name)
-       {
-#ifdef JP
-               msg_print("¥é¥ó¥À¥à¡¦¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È");
-#else
-               msg_print("Random artifact");
-#endif
-
-       }
-
-       /* Ego-item */
-       else if (object_is_ego(o_ptr))
-       {
-               /* Silly message */
-#ifdef JP
-               msg_format("̾¤Î¤¢¤ë¥¢¥¤¥Æ¥à (%s)", o_name);
-#else
-               msg_format("Ego-item (%s)", o_name);
-#endif
-
-       }
+       object_aware(o_ptr);
+       object_known(o_ptr);
 
-       /* Normal item */
-       else
-       {
-               /* Silly message */
-#ifdef JP
-               msg_format("¥¢¥¤¥Æ¥à (%s)", o_name);
-#else
-               msg_format("Object (%s)", o_name);
-#endif
+       /* Mark the item as fully known */
+       o_ptr->ident |= (IDENT_MENTAL);
 
-       }
+       /* Description */
+       object_desc(o_name, o_ptr, 0);
+       msg_format_wizard(CHEAT_OBJECT, _("%sを生成しました。", "%s was generated."), o_name);
 }
 
 /*!
- * @brief INSTA_ART·¿¤Î¸ÇÄꥢ¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤ÎÀ¸À®¤ò³ÎΨ¤Ë±þ¤¸¤Æ»î¹Ô¤¹¤ë¡£
+ * @brief INSTA_ART型の固定アーティファクトの生成を確率に応じて試行する。
  * Mega-Hack -- Attempt to create one of the "Special Objects"
- * @param o_ptr À¸À®¤Ë³ä¤êÅö¤Æ¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return À¸À®¤ËÀ®¸ù¤·¤¿¤éTRUE¤òÊÖ¤¹¡£
+ * @param o_ptr ç\94\9fæ\88\90ã\81«å\89²ã\82\8aå½\93ã\81¦ã\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を返す。
  * @details
  * We are only called from "make_object()", and we assume that\n
  * "apply_magic()" is called immediately after we return.\n
@@ -2142,79 +2101,68 @@ static void object_mention(object_type *o_ptr)
  */
 static bool make_artifact_special(object_type *o_ptr)
 {
-       int i;
-       int k_idx = 0;
-
+       IDX i;
+       IDX k_idx = 0;
 
-       /* No artifacts in the town */
+       /*! @note 地上ではキャンセルする / No artifacts in the town */
        if (!dun_level) return (FALSE);
 
-       /* Themed object */
+       /*! @note get_obj_num_hookによる指定がある場合は生成をキャンセルする / Themed object */
        if (get_obj_num_hook) return (FALSE);
 
-       /* Check the artifact list (just the "specials") */
+       /*! @note 全固定アーティファクト中からIDの若い順に生成対象とその確率を走査する / Check the artifact list (just the "specials") */
        for (i = 0; i < max_a_idx; i++)
        {
                artifact_type *a_ptr = &a_info[i];
 
-               /* Skip "empty" artifacts */
+               /*! @note アーティファクト名が空の不正なデータは除外する / Skip "empty" artifacts */
                if (!a_ptr->name) continue;
 
-               /* Cannot make an artifact twice */
+               /*! @note 既に生成回数がカウントされたアーティファクト、QUESTITEMと非INSTA_ARTは除外 / Cannot make an artifact twice */
                if (a_ptr->cur_num) continue;
-
                if (a_ptr->gen_flags & TRG_QUESTITEM) continue;
                if (!(a_ptr->gen_flags & TRG_INSTA_ART)) continue;
 
-               /* XXX XXX Enforce minimum "depth" (loosely) */
-               if (a_ptr->level > dun_level)
+               /*! @note アーティファクト生成階が現在に対して足りない場合は高確率で1/(不足階層*2)を満たさないと生成リストに加えられない /
+                *  XXX XXX Enforce minimum "depth" (loosely) */
+               if (a_ptr->level > object_level)
                {
-                       /* Acquire the "out-of-depth factor" */
-                       int d = (a_ptr->level - dun_level) * 2;
-
-                       /* Roll for out-of-depth creation */
+                       /* @note  / Acquire the "out-of-depth factor". Roll for out-of-depth creation. */
+                       int d = (a_ptr->level - object_level) * 2;
                        if (!one_in_(d)) continue;
                }
 
-               /* Artifact "rarity roll" */
+               /*! @note 1/(レア度)の確率を満たさないと除外される / Artifact "rarity roll" */
                if (!one_in_(a_ptr->rarity)) continue;
 
-               /* Find the base object */
+               /*! @note INSTA_ART型固定アーティファクトのベースアイテムもチェック対象とする。ベースアイテムの生成階層が足りない場合1/(不足階層*5) を満たさないと除外される。 /
+                *  Find the base object. XXX XXX Enforce minimum "object" level (loosely). Acquire the "out-of-depth factor". Roll for out-of-depth creation. */
                k_idx = lookup_kind(a_ptr->tval, a_ptr->sval);
-
-               /* XXX XXX Enforce minimum "object" level (loosely) */
                if (k_info[k_idx].level > object_level)
                {
-                       /* Acquire the "out-of-depth factor" */
                        int d = (k_info[k_idx].level - object_level) * 5;
-
-                       /* Roll for out-of-depth creation */
                        if (!one_in_(d)) continue;
                }
 
-               /* Assign the template */
+               /*! @note 前述の条件を満たしたら、後のIDのアーティファクトはチェックせずすぐ確定し生成処理に移す /
+                * Assign the template. Mega-Hack -- mark the item as an artifact. Hack: Some artifacts get random extra powers. Success. */
                object_prep(o_ptr, k_idx);
 
-               /* Mega-Hack -- mark the item as an artifact */
                o_ptr->name1 = i;
-
-               /* Hack: Some artifacts get random extra powers */
                random_artifact_resistance(o_ptr, a_ptr);
-
-               /* Success */
                return (TRUE);
        }
 
-       /* Failure */
+       /*! @note 全INSTA_ART固定アーティファクトを試行しても決まらなかった場合 FALSEを返す / Failure */
        return (FALSE);
 }
 
 
 /*!
- * @brief ÈóINSTA_ART·¿¤Î¸ÇÄꥢ¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤ÎÀ¸À®¤ò³ÎΨ¤Ë±þ¤¸¤Æ»î¹Ô¤¹¤ë¡£
+ * @brief 非INSTA_ART型の固定アーティファクトの生成を確率に応じて試行する。
  * Mega-Hack -- Attempt to create one of the "Special Objects"
- * @param o_ptr À¸À®¤Ë³ä¤êÅö¤Æ¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return À¸À®¤ËÀ®¸ù¤·¤¿¤éTRUE¤òÊÖ¤¹¡£
+ * @param o_ptr ç\94\9fæ\88\90ã\81«å\89²ã\82\8aå½\93ã\81¦ã\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を返す。
  * @details
  * Attempt to change an object into an artifact\n
  * This routine should only be called by "apply_magic()"\n
@@ -2222,7 +2170,7 @@ static bool make_artifact_special(object_type *o_ptr)
  */
 static bool make_artifact(object_type *o_ptr)
 {
-       int i;
+       IDX i;
 
 
        /* No artifacts in the town */
@@ -2279,11 +2227,11 @@ static bool make_artifact(object_type *o_ptr)
 
 
 /*!
- * @brief ¥¢¥¤¥Æ¥à¤Î¥¨¥´¤ò¥ì¥¢Å٤νŤߤ˹ç¤ï¤»¤Æ¥é¥ó¥À¥à¤ËÁªÂò¤¹¤ë
+ * @brief アイテムのエゴをレア度の重みに合わせてランダムに選択する
  * Choose random ego type
- * @param slot ¼èÆÀ¤·¤¿¤¤¥¨¥´¤ÎÁõÈ÷Éô°Ì
- * @param good TRUE¤Ê¤é¤ÐÄ̾ï¤Î¥¨¥´¡¢FALSE¤Ê¤é¤Ð¼ö¤¤¤Î¥¨¥´¤¬ÁªÂòÂоݤȤʤ롣
- * @return ÁªÂò¤µ¤ì¤¿¥¨¥´¾ðÊó¤ÎID¡¢Ëü°ìÁªÂò¤Ç¤­¤Ê¤«¤Ã¤¿¾ì¹ç¤Ïmax_e_idx¤¬Ê֤롣
+ * @param slot 取得したいエゴの装備部位
+ * @param good TRUEならば通常のエゴ、FALSEならば呪いのエゴが選択対象となる。
+ * @return 選択されたエゴ情報のID、万一選択できなかった場合はmax_e_idxが返る。
  */
 static byte get_random_ego(byte slot, bool good)
 {
@@ -2323,23 +2271,23 @@ static byte get_random_ego(byte slot, bool good)
 
 
 /*!
- * @brief Éð´ï·Ï¥ª¥Ö¥¸¥§¥¯¥È¤ËÀ¸À®¥é¥ó¥¯¤´¤È¤Î¶¯²½¤òÍ¿¤¨¤ë¥µ¥Ö¥ë¡¼¥Á¥ó
+ * @brief 武器系オブジェクトに生成ランクごとの強化を与えるサブルーチン
  * Apply magic to an item known to be a "weapon"
- * @param o_ptr ¶¯²½¤òÍ¿¤¨¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param level À¸À®´ð½à³¬
- * @param power À¸À®¥é¥ó¥¯
- * @return ¤Ê¤·
+ * @param o_ptr å¼·å\8c\96ã\82\92ä¸\8eã\81\88ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param level 生成基準階
+ * @param power ç\94\9fæ\88\90ã\83©ã\83³ã\82¯
+ * @return なし
  * @details
  * Hack -- note special base damage dice boosting\n
  * Hack -- note special processing for weapon/digger\n
  */
 static void a_m_aux_1(object_type *o_ptr, int level, int power)
 {
-       int tohit1 = randint1(5) + m_bonus(5, level);
-       int todam1 = randint1(5) + m_bonus(5, level);
+       HIT_PROB tohit1 = randint1(5) + m_bonus(5, level);
+       HIT_POINT todam1 = randint1(5) + m_bonus(5, level);
 
-       int tohit2 = m_bonus(10, level);
-       int todam2 = m_bonus(10, level);
+       HIT_PROB tohit2 = m_bonus(10, level);
+       HIT_POINT todam2 = m_bonus(10, level);
 
        if ((o_ptr->tval == TV_BOLT) || (o_ptr->tval == TV_ARROW) || (o_ptr->tval == TV_SHOT))
        {
@@ -2497,7 +2445,7 @@ static void a_m_aux_1(object_type *o_ptr, int level, int power)
                                        break;
                                case EGO_PATTERN:
                                        if (one_in_(3))
-                                               add_flag(o_ptr->art_flags, TR_HOLD_LIFE);
+                                               add_flag(o_ptr->art_flags, TR_HOLD_EXP);
                                        if (one_in_(3))
                                                add_flag(o_ptr->art_flags, TR_DEX);
                                        if (one_in_(5))
@@ -2640,9 +2588,9 @@ static void a_m_aux_1(object_type *o_ptr, int level, int power)
 }
 
 /*!
- * @brief ¥É¥é¥´¥óÁõÈ÷¤Ë¥é¥ó¥À¥à¤ÊÂÑÀ­¤òÍ¿¤¨¤ë
- * @param o_ptr ¶¯²½¤òÍ¿¤¨¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @brief ドラゴン装備にランダムな耐性を与える
+ * @param o_ptr å¼·å\8c\96ã\82\92ä¸\8eã\81\88ã\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 なし
  */
 static void dragon_resist(object_type * o_ptr)
 {
@@ -2657,9 +2605,9 @@ static void dragon_resist(object_type * o_ptr)
 }
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥é¥ó¥À¥à¤Ê¶¯¤¤ESP¤òÍ¿¤¨¤ë
- * @param o_ptr ¶¯²½¤òÍ¿¤¨¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @brief オブジェクトにランダムな強いESPを与える
+ * @param o_ptr å¼·å\8c\96ã\82\92ä¸\8eã\81\88ã\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 なし
  */
 static bool add_esp_strong(object_type *o_ptr)
 {
@@ -2676,9 +2624,10 @@ static bool add_esp_strong(object_type *o_ptr)
 }
 
 /*!
- * @brief ¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥é¥ó¥À¥à¤Ê¼å¤¤ESP¤òÍ¿¤¨¤ë
- * @param o_ptr ¶¯²½¤òÍ¿¤¨¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return ¤Ê¤·
+ * @brief オブジェクトにランダムな弱いESPを与える
+ * @param o_ptr 強化を与えたいオブジェクトの構造体参照ポインタ
+ * @param extra TRUEならばESPの最大付与数が増える(TRUE -> 3+1d6 / FALSE -> 1d3)
+ * @return なし
  */
 static void add_esp_weak(object_type *o_ptr, bool extra)
 {
@@ -2710,21 +2659,20 @@ static void add_esp_weak(object_type *o_ptr, bool extra)
 
 
 /*!
- * @brief Ëɶñ·Ï¥ª¥Ö¥¸¥§¥¯¥È¤ËÀ¸À®¥é¥ó¥¯¤´¤È¤Î¶¯²½¤òÍ¿¤¨¤ë¥µ¥Ö¥ë¡¼¥Á¥ó
+ * @brief 防具系オブジェクトに生成ランクごとの強化を与えるサブルーチン
  * Apply magic to an item known to be "armor"
- * @param o_ptr ¶¯²½¤òÍ¿¤¨¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param level À¸À®´ð½à³¬
- * @param power À¸À®¥é¥ó¥¯
- * @return ¤Ê¤·
+ * @param o_ptr å¼·å\8c\96ã\82\92ä¸\8eã\81\88ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param level 生成基準階
+ * @param power ç\94\9fæ\88\90ã\83©ã\83³ã\82¯
+ * @return なし
  * @details
  * Hack -- note special processing for crown/helm\n
  * Hack -- note special processing for robe of permanence\n
  */
 static void a_m_aux_2(object_type *o_ptr, int level, int power)
 {
-       int toac1 = randint1(5) + m_bonus(5, level);
-
-       int toac2 = m_bonus(10, level);
+       ARMOUR_CLASS toac1 = randint1(5) + m_bonus(5, level);
+       ARMOUR_CLASS toac2 = m_bonus(10, level);
 
        /* Good */
        if (power > 0)
@@ -2765,10 +2713,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
                {
                        if (one_in_(50) || (power > 2)) /* power > 2 is debug only */
                                create_artifact(o_ptr, FALSE);
-
-                       /* Mention the item */
-                       if (cheat_peek) object_mention(o_ptr);
-
                        break;
                }
 
@@ -2812,24 +2756,23 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
 
                                        switch (o_ptr->name2)
                                        {
-                                         case EGO_DWARVEN:
-                                               if (o_ptr->tval != TV_HARD_ARMOR)
-                                               {
-                                                       okay_flag = FALSE;
-                                                       break;
-                                               }
-                                         case EGO_DRUID:
-                                               if (o_ptr->tval != TV_SOFT_ARMOR)
-                                               {
-                                                       okay_flag = FALSE;
-                                                       break;
-                                               }
-                                         default:
+                                               case EGO_DWARVEN:
+                                                       if (o_ptr->tval != TV_HARD_ARMOR)
+                                                       {
+                                                               okay_flag = FALSE;
+                                                       }
+                                               break;
+                                               case EGO_DRUID:
+                                                       if (o_ptr->tval != TV_SOFT_ARMOR)
+                                                       {
+                                                               okay_flag = FALSE;
+                                                       }
+                                               break;
+                                               default:
                                                break;
                                        }
 
-                                       if (okay_flag)
-                                               break;
+                                       if (okay_flag) break;
                                }
                                switch (o_ptr->name2)
                                {
@@ -2880,8 +2823,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
 
                        if (o_ptr->sval == SV_DRAGON_SHIELD)
                        {
-                               /* Mention the item */
-                               if (cheat_peek) object_mention(o_ptr);
                                dragon_resist(o_ptr);
                                if (!one_in_(3)) break;
                        }
@@ -2930,8 +2871,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
                {
                        if (o_ptr->sval == SV_SET_OF_DRAGON_GLOVES)
                        {
-                               /* Mention the item */
-                               if (cheat_peek) object_mention(o_ptr);
                                dragon_resist(o_ptr);
                                if (!one_in_(3)) break;
                        }
@@ -2958,8 +2897,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
                {
                        if (o_ptr->sval == SV_PAIR_OF_DRAGON_GREAVE)
                        {
-                               /* Mention the item */
-                               if (cheat_peek) object_mention(o_ptr);
                                dragon_resist(o_ptr);
                                if (!one_in_(3)) break;
                        }
@@ -3066,8 +3003,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
                {
                        if (o_ptr->sval == SV_DRAGON_HELM)
                        {
-                               /* Mention the item */
-                               if (cheat_peek) object_mention(o_ptr);
                                dragon_resist(o_ptr);
                                if (!one_in_(3)) break;
                        }
@@ -3187,16 +3122,17 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
                        break;
                }
        }
+
 }
 
 
 /*!
- * @brief Áõ¾þÉÊ·Ï¥ª¥Ö¥¸¥§¥¯¥È¤ËÀ¸À®¥é¥ó¥¯¤´¤È¤Î¶¯²½¤òÍ¿¤¨¤ë¥µ¥Ö¥ë¡¼¥Á¥ó
+ * @brief 装飾品系オブジェクトに生成ランクごとの強化を与えるサブルーチン
  * Apply magic to an item known to be a "ring" or "amulet"
- * @param o_ptr ¶¯²½¤òÍ¿¤¨¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param level À¸À®´ð½à³¬
- * @param power À¸À®¥é¥ó¥¯
- * @return ¤Ê¤·
+ * @param o_ptr å¼·å\8c\96ã\82\92ä¸\8eã\81\88ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param level 生成基準階
+ * @param power ç\94\9fæ\88\90ã\83©ã\83³ã\82¯
+ * @return なし
  * @details
  * Hack -- note special "pval boost" code for ring of speed\n
  * Hack -- note that some items must be cursed (or blessed)\n
@@ -3287,9 +3223,6 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power)
                                                break;
                                        }
 
-                                       /* Mention the item */
-                                       if (cheat_peek) object_mention(o_ptr);
-
                                        break;
                                }
 
@@ -3794,9 +3727,6 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power)
                                        /* gain one low ESP */
                                        add_esp_weak(o_ptr, FALSE);
 
-                                       /* Mention the item */
-                                       if (cheat_peek) object_mention(o_ptr);
-
                                        break;
                                }
 
@@ -3864,8 +3794,8 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power)
                                                o_ptr->name2 = EGO_AMU_SEE_INVIS;
                                                break;
                                        case 7: case 8:
-                                               if (have_flag(k_ptr->flags, TR_HOLD_LIFE)) break;
-                                               o_ptr->name2 = EGO_AMU_HOLD_LIFE;
+                                               if (have_flag(k_ptr->flags, TR_HOLD_EXP)) break;
+                                               o_ptr->name2 = EGO_AMU_HOLD_EXP;
                                                break;
                                        case 9:
                                                if (have_flag(k_ptr->flags, TR_LEVITATION)) break;
@@ -3987,11 +3917,11 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power)
 }
 
 /*!
- * @brief ¥â¥ó¥¹¥¿¡¼¤¬¿Í·Á¤Î¥Ù¡¼¥¹¤Ë¤Ç¤­¤ë¤«¤òÊÖ¤¹
- * @param r_idx ¥Á¥§¥Ã¥¯¤·¤¿¤¤¥â¥ó¥¹¥¿¡¼¼ï²¤ÎID
- * @return ¿Í·Á¤Ë¤Ç¤­¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ * @brief モンスターが人形のベースにできるかを返す
+ * @param r_idx チェックしたいモンスター種族のID
+ * @return 人形にできるならTRUEを返す
  */
-static bool item_monster_okay(int r_idx)
+static bool item_monster_okay(MONRACE_IDX r_idx)
 {
        monster_race *r_ptr = &r_info[r_idx];
 
@@ -4009,12 +3939,12 @@ static bool item_monster_okay(int r_idx)
 
 
 /*!
- * @brief ¤½¤Î¾»¨Â¿¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ËÀ¸À®¥é¥ó¥¯¤´¤È¤Î¶¯²½¤òÍ¿¤¨¤ë¥µ¥Ö¥ë¡¼¥Á¥ó
+ * @brief その他雑多のオブジェクトに生成ランクごとの強化を与えるサブルーチン
  * Apply magic to an item known to be "boring"
- * @param o_ptr ¶¯²½¤òÍ¿¤¨¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param level À¸À®´ð½à³¬
- * @param power À¸À®¥é¥ó¥¯
- * @return ¤Ê¤·
+ * @param o_ptr å¼·å\8c\96ã\82\92ä¸\8eã\81\88ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param level 生成基準階
+ * @param power ç\94\9fæ\88\90ã\83©ã\83³ã\82¯
+ * @return なし
  * @details
  * Hack -- note the special code for various items
  */
@@ -4145,7 +4075,7 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
 
                case TV_FIGURINE:
                {
-                       int i = 1;
+                       PARAMETER_VALUE i = 1;
                        int check;
 
                        monster_race *r_ptr;
@@ -4179,24 +4109,12 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
                        /* Some figurines are cursed */
                        if (one_in_(6)) o_ptr->curse_flags |= TRC_CURSED;
 
-                       if (cheat_peek)
-                       {
-#ifdef JP
-                               msg_format("%s¤Î¿Í·Á, ¿¼¤µ +%d%s",
-#else
-                               msg_format("Figurine of %s, depth +%d%s",
-#endif
-
-                                                         r_name + r_ptr->name, check - 1,
-                                                         !object_is_cursed(o_ptr) ? "" : " {cursed}");
-                       }
-
                        break;
                }
 
                case TV_CORPSE:
                {
-                       int i = 1;
+                       PARAMETER_VALUE i = 1;
                        int check;
 
                        u32b match = 0;
@@ -4238,16 +4156,6 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
 
                        o_ptr->pval = i;
 
-                       if (cheat_peek)
-                       {
-#ifdef JP
-                               msg_format("%s¤Î»àÂÎ, ¿¼¤µ +%d",
-#else
-                               msg_format("Corpse of %s, depth +%d",
-#endif
-
-                                                         r_name + r_ptr->name, check - 1);
-                       }
 
                        object_aware(o_ptr);
                        object_known(o_ptr);
@@ -4256,7 +4164,7 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
 
                case TV_STATUE:
                {
-                       int i = 1;
+                       PARAMETER_VALUE i = 1;
 
                        monster_race *r_ptr;
 
@@ -4277,12 +4185,7 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
 
                        if (cheat_peek)
                        {
-#ifdef JP
-                               msg_format("%s¤ÎÁü", r_name + r_ptr->name);
-#else
-                               msg_format("Statue of %s", r_name + r_ptr->name);
-#endif
-
+                               msg_format(_("%sの像", "Statue of %s"), r_name + r_ptr->name);
                        }
                        object_aware(o_ptr);
                        object_known(o_ptr);
@@ -4292,7 +4195,7 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
 
                case TV_CHEST:
                {
-                       byte obj_level = k_info[o_ptr->k_idx].level;
+                       DEPTH obj_level = k_info[o_ptr->k_idx].level;
 
                        /* Hack -- skip ruined chests */
                        if (obj_level <= 0) break;
@@ -4312,12 +4215,12 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
 }
 
 /*!
- * @brief À¸À®¤µ¤ì¤¿¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤ËËâˡŪ¤Ê¶¯²½¤òÍ¿¤¨¤ë¥á¥¤¥ó¥ë¡¼¥Á¥ó
+ * @brief 生成されたベースアイテムに魔法的な強化を与えるメインルーチン
  * Complete the "creation" of an object by applying "magic" to the item
- * @param o_ptr ¶¯²½¤òÍ¿¤¨¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @param lev À¸À®´ð½à³¬
- * @param mode À¸À®¥ª¥×¥·¥ç¥ó
- * @return ¤Ê¤·
+ * @param o_ptr å¼·å\8c\96ã\82\92ä¸\8eã\81\88ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81®æ§\8bé\80 ä½\93å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param lev 生成基準階
+ * @param mode 生成オプション
+ * @return なし
  * @details
  * This includes not only rolling for random bonuses, but also putting the\n
  * finishing touches on ego-items and artifacts, giving charges to wands and\n
@@ -4347,7 +4250,7 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
  * "good" and "great" arguments are false.  As a total hack, if "great" is\n
  * true, then the item gets 3 extra "attempts" to become an artifact.\n
  */
-void apply_magic(object_type *o_ptr, int lev, u32b mode)
+void apply_magic(object_type *o_ptr, DEPTH lev, BIT_FLAGS mode)
 {
        int i, rolls, f1, f2, power;
 
@@ -4490,10 +4393,6 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode)
                if (a_ptr->gen_flags & (TRG_RANDOM_CURSE1)) o_ptr->curse_flags |= get_curse(1, o_ptr);
                if (a_ptr->gen_flags & (TRG_RANDOM_CURSE2)) o_ptr->curse_flags |= get_curse(2, o_ptr);
 
-
-               /* Cheat -- peek at the item */
-               if (cheat_peek) object_mention(o_ptr);
-
                /* Done */
                return;
        }
@@ -4730,9 +4629,6 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode)
                        if ((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_HAYABUSA) && (o_ptr->pval > 2) && (o_ptr->name2 != EGO_ATTACKS))
                                o_ptr->pval = 2;
                }
-
-               /* Cheat -- describe the item */
-               if (cheat_peek) object_mention(o_ptr);
                
                /* Done */
                return;
@@ -4754,16 +4650,18 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode)
                if (k_ptr->gen_flags & (TRG_RANDOM_CURSE1)) o_ptr->curse_flags |= get_curse(1, o_ptr);
                if (k_ptr->gen_flags & (TRG_RANDOM_CURSE2)) o_ptr->curse_flags |= get_curse(2, o_ptr);
        }
+
+       
 }
 
 
 /*!
- * @brief ¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤¬¾å¼Á¤È¤·¤Æ°·¤ï¤ì¤ë¤«¤É¤¦¤«¤òÊÖ¤¹¡£
+ * @brief ベースアイテムが上質として扱われるかどうかを返す。
  * Hack -- determine if a template is "good"
- * @param k_idx È½Äꤷ¤¿¤¤¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤ÎID
- * @return ¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤¬¾å¼Á¤Ê¤é¤ÐTRUE¤òÊÖ¤¹¡£
+ * @param k_idx 判定したいベースアイテムのID
+ * @return ベースアイテムが上質ならばTRUEを返す。
  */
-static bool kind_is_good(int k_idx)
+static bool kind_is_good(KIND_OBJECT_IDX k_idx)
 {
        object_kind *k_ptr = &k_info[k_idx];
 
@@ -4844,20 +4742,20 @@ static bool kind_is_good(int k_idx)
 }
 
 /*!
- * @brief À¸À®³¬¤Ë±þ¤¸¤¿¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤ÎÀ¸À®¤ò¹Ô¤¦¡£
+ * @brief 生成階に応じたベースアイテムの生成を行う。
  * Attempt to make an object (normal or good/great)
- * @param j_ptr À¸À®·ë²Ì¤ò¼ý¤á¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¹½Â¤ÂΤλ²¾È¥Ý¥¤¥ó¥¿
- * @param mode ¥ª¥×¥·¥ç¥ó¥Õ¥é¥°
- * @return À¸À®¤ËÀ®¸ù¤·¤¿¤éTRUE¤òÊÖ¤¹¡£
+ * @param j_ptr ç\94\9fæ\88\90çµ\90æ\9e\9cã\82\92å\8f\8eã\82\81ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88æ§\8bé\80 ä½\93ã\81®å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param mode ã\82ªã\83\97ã\82·ã\83§ã\83³ã\83\95ã\83©ã\82°
+ * @return 生成に成功したらTRUEを返す。
  * @details
  * This routine plays nasty games to generate the "special artifacts".\n
  * This routine uses "object_level" for the "generation level".\n
  * We assume that the given object has been "wiped".\n
  */
-bool make_object(object_type *j_ptr, u32b mode)
+bool make_object(object_type *j_ptr, BIT_FLAGS mode)
 {
        int prob, base;
-       byte obj_level;
+       DEPTH obj_level;
 
 
        /* Chance of "special object" */
@@ -4870,7 +4768,7 @@ bool make_object(object_type *j_ptr, u32b mode)
        /* Generate a special object, or a normal object */
        if (!one_in_(prob) || !make_artifact_special(j_ptr))
        {
-               int k_idx;
+               IDX k_idx;
 
                /* Good objects */
                if ((mode & AM_GOOD) && !get_obj_num_hook)
@@ -4921,13 +4819,7 @@ bool make_object(object_type *j_ptr, u32b mode)
        obj_level = k_info[j_ptr->k_idx].level;
        if (object_is_fixed_artifact(j_ptr)) obj_level = a_info[j_ptr->name1].level;
 
-       /* Notice "okay" out-of-depth objects */
-       if (!object_is_cursed(j_ptr) && !object_is_broken(j_ptr) &&
-           (obj_level > dun_level))
-       {
-               /* Cheat -- peek at items */
-               if (cheat_peek) object_mention(j_ptr);
-       }
+       if (cheat_peek) object_mention(j_ptr);
 
        /* Success */
        return (TRUE);
@@ -4935,20 +4827,20 @@ bool make_object(object_type *j_ptr, u32b mode)
 
 
 /*!
- * @brief ¥Õ¥í¥¢¤Î»ØÄê°ÌÃÖ¤ËÀ¸À®³¬¤Ë±þ¤¸¤¿¥Ù¡¼¥¹¥¢¥¤¥Æ¥à¤ÎÀ¸À®¤ò¹Ô¤¦¡£
+ * @brief フロアの指定位置に生成階に応じたベースアイテムの生成を行う。
  * Attempt to place an object (normal or good/great) at the given location.
- * @param y ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎYºÂɸ
- * @param x ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎXºÂɸ
- * @param mode ¥ª¥×¥·¥ç¥ó¥Õ¥é¥°
- * @return À¸À®¤ËÀ®¸ù¤·¤¿¤éTRUE¤òÊÖ¤¹¡£
+ * @param y 配置したいフロアのY座標
+ * @param x 配置したいフロアのX座標
+ * @param mode ã\82ªã\83\97ã\82·ã\83§ã\83³ã\83\95ã\83©ã\82°
+ * @return 生成に成功したらTRUEを返す。
  * @details
  * This routine plays nasty games to generate the "special artifacts".\n
  * This routine uses "object_level" for the "generation level".\n
  * This routine requires a clean floor grid destination.\n
  */
-void place_object(int y, int x, u32b mode)
+void place_object(POSITION y, POSITION x, BIT_FLAGS mode)
 {
-       s16b o_idx;
+       IDX o_idx;
 
        /* Acquire grid */
        cave_type *c_ptr = &cave[y][x];
@@ -5019,10 +4911,10 @@ void place_object(int y, int x, u32b mode)
 
 
 /*!
- * @brief À¸À®³¬¤Ë±þ¤¸¤¿ºâÊõ¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀ¸À®¤ò¹Ô¤¦¡£
+ * @brief 生成階に応じた財宝オブジェクトの生成を行う。
  * Make a treasure object
- * @param j_ptr À¸À®·ë²Ì¤ò¼ý¤á¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¹½Â¤ÂΤλ²¾È¥Ý¥¤¥ó¥¿
- * @return À¸À®¤ËÀ®¸ù¤·¤¿¤éTRUE¤òÊÖ¤¹¡£
+ * @param j_ptr ç\94\9fæ\88\90çµ\90æ\9e\9cã\82\92å\8f\8eã\82\81ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88æ§\8bé\80 ä½\93ã\81®å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @return 生成に成功したらTRUEを返す。
  * @details
  * The location must be a legal, clean, floor grid.
  */
@@ -5063,15 +4955,15 @@ bool make_gold(object_type *j_ptr)
 
 
 /*!
- * @brief ¥Õ¥í¥¢¤Î»ØÄê°ÌÃÖ¤ËÀ¸À®³¬¤Ë±þ¤¸¤¿ºâÊõ¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀ¸À®¤ò¹Ô¤¦¡£
+ * @brief フロアの指定位置に生成階に応じた財宝オブジェクトの生成を行う。
  * Places a treasure (Gold or Gems) at given location
- * @param y ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎYºÂɸ
- * @param x ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎXºÂɸ
- * @return À¸À®¤ËÀ®¸ù¤·¤¿¤éTRUE¤òÊÖ¤¹¡£
+ * @param y 配置したいフロアのY座標
+ * @param x 配置したいフロアのX座標
+ * @return 生成に成功したらTRUEを返す。
  * @details
  * The location must be a legal, clean, floor grid.
  */
-void place_gold(int y, int x)
+void place_gold(POSITION y, POSITION x)
 {
        s16b o_idx;
 
@@ -5137,13 +5029,13 @@ void place_gold(int y, int x)
 
 
 /*!
- * @brief À¸À®ºÑ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ò¥Õ¥í¥¢¤Î½êÄê¤Î°ÌÃÖ¤ËÍî¤È¤¹¡£
+ * @brief 生成済のオブジェクトをフロアの所定の位置に落とす。
  * Let an object fall to the ground at or near a location.
- * @param j_ptr Íî¤È¤·¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¹½Â¤ÂΤλ²¾È¥Ý¥¤¥ó¥¿
- * @param chance ¥É¥í¥Ã¥×¤ÎÀ®¸ùΨ(%)
- * @param y ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎYºÂɸ
- * @param x ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎXºÂɸ
- * @return À¸À®¤ËÀ®¸ù¤·¤¿¤éTRUE¤òÊÖ¤¹¡£
+ * @param j_ptr è\90½ã\81¨ã\81\97ã\81\9fã\81\84ã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88æ§\8bé\80 ä½\93ã\81®å\8f\82ç\85§ã\83\9dã\82¤ã\83³ã\82¿
+ * @param chance ドロップの成功率(%)
+ * @param y 配置したいフロアのY座標
+ * @param x 配置したいフロアのX座標
+ * @return 生成に成功したらTRUEを返す。
  * @details
  * The initial location is assumed to be "in_bounds()".\n
  *\n
@@ -5192,7 +5084,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
        {
                /* Message */
 #ifdef JP
-               msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
+               msg_format("%sは消えた。", o_name);
 #else
                msg_format("The %s disappear%s.",
                           o_name, (plural ? "" : "s"));
@@ -5200,12 +5092,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
 
 
                /* Debug */
-#ifdef JP
-               if (p_ptr->wizard) msg_print("(ÇË»)");
-#else
-               if (p_ptr->wizard) msg_print("(breakage)");
-#endif
-
+               if (p_ptr->wizard) msg_print(_("(破損)", "(breakage)"));
 
                /* Failure */
                return (0);
@@ -5309,7 +5196,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
        {
                /* Message */
 #ifdef JP
-               msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
+               msg_format("%sは消えた。", o_name);
 #else
                msg_format("The %s disappear%s.",
                           o_name, (plural ? "" : "s"));
@@ -5317,12 +5204,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
 
 
                /* Debug */
-#ifdef JP
-               if (p_ptr->wizard) msg_print("(¾²¥¹¥Ú¡¼¥¹¤¬¤Ê¤¤)");
-#else
-               if (p_ptr->wizard) msg_print("(no floor space)");
-#endif
-
+               if (p_ptr->wizard) msg_print(_("(床スペースがない)", "(no floor space)"));
 
                /* Failure */
                return (0);
@@ -5369,17 +5251,13 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
                {
                        /* Message */
 #ifdef JP
-                       msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
+                       msg_format("%sは消えた。", o_name);
 #else
                        msg_format("The %s disappear%s.", o_name, (plural ? "" : "s"));
 #endif
 
                        /* Debug */
-#ifdef JP
-                       if (p_ptr->wizard) msg_print("(¾²¥¹¥Ú¡¼¥¹¤¬¤Ê¤¤)");
-#else
-                       if (p_ptr->wizard) msg_print("(no floor space)");
-#endif
+                       if (p_ptr->wizard) msg_print(_("(床スペースがない)", "(no floor space)"));
 
                        /* Mega-Hack -- preserve artifacts */
                        if (preserve_mode)
@@ -5456,7 +5334,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
        {
                /* Message */
 #ifdef JP
-               msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
+               msg_format("%sは消えた。", o_name);
 #else
                msg_format("The %s disappear%s.",
                           o_name, (plural ? "" : "s"));
@@ -5464,12 +5342,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
 
 
                /* Debug */
-#ifdef JP
-               if (p_ptr->wizard) msg_print("(¥¢¥¤¥Æ¥à¤¬Â¿²á¤®¤ë)");
-#else
-               if (p_ptr->wizard) msg_print("(too many objects)");
-#endif
-
+               if (p_ptr->wizard) msg_print(_("(アイテムが多過ぎる)", "(too many objects)"));
 
                /* Hack -- Preserve artifacts */
                if (object_is_fixed_artifact(j_ptr))
@@ -5520,12 +5393,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
        /* Message when an object falls under the player */
        if (chance && player_bold(by, bx))
        {
-#ifdef JP
-               msg_print("²¿¤«¤¬Â­²¼¤Ëž¤¬¤Ã¤Æ¤­¤¿¡£");
-#else
-               msg_print("You feel something roll beneath your feet.");
-#endif
-
+               msg_print(_("何かが足下に転がってきた。", "You feel something roll beneath your feet."));
        }
 
        /* XXX XXX XXX */
@@ -5536,15 +5404,15 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
 
 
 /*!
- * @brief ³ÍÆÀ¥É¥í¥Ã¥×¤ò¹Ô¤¦¡£
+ * @brief 獲得ドロップを行う。
  * Scatter some "great" objects near the player
- * @param y ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎYºÂɸ
- * @param x ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎXºÂɸ
- * @param num ³ÍÆÀ¤Î½èÍý²ó¿ô
- * @param great TRUE¤Ê¤é¤Ðɬ¤º¹âµéÉʰʾå¤òÍî¤È¤¹
- * @param special TRUE¤Ê¤é¤Ðɬ¤ºÆÃÊÌÉʤòÍî¤È¤¹
- * @param known TRUE¤Ê¤é¤Ð¥ª¥Ö¥¸¥§¥¯¥È¤¬É¬¤º¡ö´ÕÄê¡öºÑ¤Ë¤Ê¤ë
- * @return ¤Ê¤·
+ * @param y1 配置したいフロアのY座標
+ * @param x1 配置したいフロアのX座標
+ * @param num 獲得の処理回数
+ * @param great TRUEならば必ず高級品以上を落とす
+ * @param special TRUEならば必ず特別品を落とす
+ * @param known TRUEならばオブジェクトが必ず*鑑定*済になる
+ * @return なし
  */
 void acquirement(int y1, int x1, int num, bool great, bool special, bool known)
 {
@@ -5587,8 +5455,8 @@ void acquirement(int y1, int x1, int num, bool great, bool special, bool known)
 
 typedef struct
 {
-       int tval;
-       int sval;
+       OBJECT_TYPE_VALUE tval;
+       OBJECT_SUBTYPE_VALUE sval;
        int prob;
        byte flag;
 } amuse_type;
@@ -5613,12 +5481,12 @@ amuse_type amuse_info[] =
 };
 
 /*!
- * @brief Ã¯ÆÀ¥É¥í¥Ã¥×¤ò¹Ô¤¦¡£
- * @param y ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎYºÂɸ
- * @param x ÇÛÃÖ¤·¤¿¤¤¥Õ¥í¥¢¤ÎXºÂɸ
- * @param num Ã¯ÆÀ¤Î½èÍý²ó¿ô
- * @param known TRUE¤Ê¤é¤Ð¥ª¥Ö¥¸¥§¥¯¥È¤¬É¬¤º¡ö´ÕÄê¡öºÑ¤Ë¤Ê¤ë
- * @return ¤Ê¤·
+ * @brief 誰得ドロップを行う。
+ * @param y1 配置したいフロアのY座標
+ * @param x1 配置したいフロアのX座標
+ * @param num 誰得の処理回数
+ * @param known TRUEならばオブジェクトが必ず*鑑定*済になる
+ * @return なし
  */
 void amusement(int y1, int x1, int num, bool known)
 {
@@ -5634,7 +5502,8 @@ void amusement(int y1, int x1, int num, bool known)
        /* Acquirement */
        while (num)
        {
-               int i, k_idx, a_idx = 0;
+               int i;
+               IDX k_idx, a_idx = 0;
                int r = randint0(t);
                bool insta_art, fixed_art;
 
@@ -5709,9 +5578,9 @@ void amusement(int y1, int x1, int num, bool known)
 /* See init_feat_variables() in init2.c */
 static s16b normal_traps[MAX_NORMAL_TRAPS];
 
-/*
- * @brief ¥¿¥°¤Ë½¾¤Ã¤Æ¡¢´ðËܥȥé¥Ã¥×¥Æ¡¼¥Ö¥ë¤ò½é´ü²½¤¹¤ë / Initialize arrays for normal traps
- * @return ¤Ê¤·
+/*!
+ * @brief タグに従って、基本トラップテーブルを初期化する / Initialize arrays for normal traps
+ * @return なし
  */
 void init_normal_traps(void)
 {
@@ -5737,10 +5606,10 @@ void init_normal_traps(void)
        normal_traps[cur_trap++] = f_tag_to_index_in_init("TRAP_ALARM");
 }
 
-/*
- * @brief ´ðËܥȥé¥Ã¥×¤ò¥é¥ó¥À¥à¤ËÁªÂò¤¹¤ë /
+/*!
+ * @brief 基本トラップをランダムに選択する /
  * Get random trap
- * @return ÁªÂò¤·¤¿¥È¥é¥Ã¥×¤ÎID
+ * @return 選択したトラップのID
  * @details
  * XXX XXX XXX This routine should be redone to reflect trap "level".\n
  * That is, it does not make sense to have spiked pits at 50 feet.\n
@@ -5772,12 +5641,12 @@ s16b choose_random_trap(void)
        return feat;
 }
 
-/*
- * @brief ¥Þ¥¹¤Ë¸ºß¤¹¤ë¥È¥é¥Ã¥×¤òÈëÆ¿¤¹¤ë /
+/*!
+ * @brief マスに存在するトラップを秘匿する /
  * Disclose an invisible trap
- * @param y ÈëÆ¿¤·¤¿¤¤¥Þ¥¹¤ÎYºÂɸ
- * @param x ÈëÆ¿¤·¤¿¤¤¥Þ¥¹¤ÎXºÂɸ
- * @return ¤Ê¤·
+ * @param y 秘匿したいマスのY座標
+ * @param x 秘匿したいマスのX座標
+ * @return なし
  */
 void disclose_grid(int y, int x)
 {
@@ -5801,11 +5670,11 @@ void disclose_grid(int y, int x)
        }
 }
 
-/*
- * @brief ¥Þ¥¹¤ò¥È¥é¥Ã¥×¤òÇÛÃÖ¤¹¤ë /
+/*!
+ * @brief マスをトラップを配置する /
  * The location must be a legal, naked, floor grid.
- * @param y ÇÛÃÖ¤·¤¿¤¤¥Þ¥¹¤ÎYºÂɸ
- * @param x ÇÛÃÖ¤·¤¿¤¤¥Þ¥¹¤ÎXºÂɸ
+ * @param y 配置したいマスのY座標
+ * @param x 配置したいマスのX座標
  * @return
  * Note that all traps start out as "invisible" and "untyped", and then\n
  * when they are "discovered" (by detecting them or setting them off),\n
@@ -5826,11 +5695,11 @@ void place_trap(int y, int x)
        c_ptr->feat = choose_random_trap();
 }
 
-/*
- * @brief ËâÆ»¶ñ¤Î»ÈÍѲó¿ô¤Î»ÄÎ̤ò¼¨¤¹¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë /
+/*!
+ * @brief 魔道具の使用回数の残量を示すメッセージを表示する /
  * Describe the charges on an item in the inventory.
- * @param item »ÄÎ̤òɽ¼¨¤·¤¿¤¤¥×¥ì¥¤¥ä¡¼¤Î¥¢¥¤¥Æ¥à½ê»ý¥¹¥í¥Ã¥È
- * @return ¤Ê¤·
+ * @param item 残量を表示したいプレイヤーのアイテム所持スロット
+ * @return なし
  */
 void inven_item_charges(int item)
 {
@@ -5845,11 +5714,11 @@ void inven_item_charges(int item)
 #ifdef JP
        if (o_ptr->pval <= 0)
        {
-               msg_print("¤â¤¦ËâÎϤ¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¡£");
+               msg_print("もう魔力が残っていない。");
        }
        else
        {
-               msg_format("¤¢¤È %d ²óʬ¤ÎËâÎϤ¬»Ä¤Ã¤Æ¤¤¤ë¡£", o_ptr->pval);
+               msg_format("あと %d 回分の魔力が残っている。", o_ptr->pval);
        }
 #else
        /* Multiple charges */
@@ -5869,11 +5738,11 @@ void inven_item_charges(int item)
 
 }
 
-/*
- * @brief ¥¢¥¤¥Æ¥à¤Î»Ä¤ê½ê»ý¿ô¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë /
+/*!
+ * @brief アイテムの残り所持数メッセージを表示する /
  * Describe an item in the inventory.
- * @param item »ÄÎ̤òɽ¼¨¤·¤¿¤¤¥×¥ì¥¤¥ä¡¼¤Î¥¢¥¤¥Æ¥à½ê»ý¥¹¥í¥Ã¥È
- * @return ¤Ê¤·
+ * @param item 残量を表示したいプレイヤーのアイテム所持スロット
+ * @return なし
  */
 void inven_item_describe(int item)
 {
@@ -5885,16 +5754,16 @@ void inven_item_describe(int item)
 
        /* Print a message */
 #ifdef JP
-       /* "no more" ¤Î¾ì¹ç¤Ï¤³¤Á¤é¤Çɽ¼¨¤¹¤ë */
+       /* "no more" の場合はこちらで表示する */
        if (o_ptr->number <= 0)
        {
-               /*FIRST*//*¤³¤³¤Ï¤â¤¦Ä̤é¤Ê¤¤¤«¤â */
-               msg_format("¤â¤¦%s¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£", o_name);
+               /*FIRST*//*ここはもう通らないかも */
+               msg_format("もう%sを持っていない。", o_name);
        }
        else
        {
-               /* ¥¢¥¤¥Æ¥à̾¤ò±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½Âбþ */
-               msg_format("¤Þ¤À %s¤ò»ý¤Ã¤Æ¤¤¤ë¡£", o_name);
+               /* アイテム名を英日切り替え機能対応 */
+               msg_format("まだ %sを持っている。", o_name);
        }
 #else
        msg_format("You have %s.", o_name);
@@ -5902,12 +5771,12 @@ void inven_item_describe(int item)
 
 }
 
-/*
- * @brief ¥¢¥¤¥Æ¥à¤Î»Ä¤ê½ê»ý¿ô¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë /
+/*!
+ * @brief アイテムの残り所持数メッセージを表示する /
  * Increase the "number" of an item in the inventory
- * @param item ½ê»ý¿ô¤òÁý¤ä¤·¤¿¤¤¥×¥ì¥¤¥ä¡¼¤Î¥¢¥¤¥Æ¥à½ê»ý¥¹¥í¥Ã¥È
- * @param num Áý¤ä¤·¤¿¤¤ÎÌ
- * @return ¤Ê¤·
+ * @param item 所持数を増やしたいプレイヤーのアイテム所持スロット
+ * @param num 増やしたい量
+ * @return なし
  */
 void inven_item_increase(int item, int num)
 {
@@ -5921,7 +5790,7 @@ void inven_item_increase(int item, int num)
        else if (num < 0) num = 0;
 
        /* Un-apply */
-       num -= o_ptr->number;
+       num -= (ITEM_NUMBER)o_ptr->number;
 
        /* Change the number and weight */
        if (num)
@@ -5959,11 +5828,11 @@ void inven_item_increase(int item, int num)
        }
 }
 
-/*
- * @brief ½ê»ý¥¢¥¤¥Æ¥à¥¹¥í¥Ã¥È¤«¤é½ê»ý¿ô¤Î¤Ê¤¯¤Ê¤Ã¤¿¥¢¥¤¥Æ¥à¤ò¾Ãµî¤¹¤ë /
+/*!
+ * @brief 所持アイテムスロットから所持数のなくなったアイテムを消去する /
  * Erase an inventory slot if it has no more items
- * @param item ¾Ãµî¤·¤¿¤¤¥×¥ì¥¤¥ä¡¼¤Î¥¢¥¤¥Æ¥à½ê»ý¥¹¥í¥Ã¥È
- * @return ¤Ê¤·
+ * @param item 消去したいプレイヤーのアイテム所持スロット
+ * @return なし
  */
 void inven_item_optimize(int item)
 {
@@ -6023,11 +5892,11 @@ void inven_item_optimize(int item)
        p_ptr->window |= (PW_SPELL);
 }
 
-/*
- * @brief ¾²¾å¤ÎËâÆ»¶ñ¤Î»Ä¤ê»ÄÎÌ¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë /
+/*!
+ * @brief 床上の魔道具の残り残量メッセージを表示する /
  * Describe the charges on an item on the floor.
- * @param item ¥á¥Ã¥»¡¼¥¸¤ÎÂоݤˤ·¤¿¤¤¥¢¥¤¥Æ¥à½ê»ý¥¹¥í¥Ã¥È
- * @return ¤Ê¤·
+ * @param item メッセージの対象にしたいアイテム所持スロット
+ * @return なし
  */
 void floor_item_charges(int item)
 {
@@ -6042,11 +5911,11 @@ void floor_item_charges(int item)
 #ifdef JP
        if (o_ptr->pval <= 0)
        {
-               msg_print("¤³¤Î¾²¾å¤Î¥¢¥¤¥Æ¥à¤Ï¡¢¤â¤¦ËâÎϤ¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¡£");
+               msg_print("この床上のアイテムは、もう魔力が残っていない。");
        }
        else
        {
-               msg_format("¤³¤Î¾²¾å¤Î¥¢¥¤¥Æ¥à¤Ï¡¢¤¢¤È %d ²óʬ¤ÎËâÎϤ¬»Ä¤Ã¤Æ¤¤¤ë¡£", o_ptr->pval);
+               msg_format("この床上のアイテムは、あと %d 回分の魔力が残っている。", o_ptr->pval);
        }
 #else
        /* Multiple charges */
@@ -6066,11 +5935,11 @@ void floor_item_charges(int item)
 
 }
 
-/*
- * @brief ¾²¾å¤Î¥¢¥¤¥Æ¥à¤Î»Ä¤ê¿ô¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë /
+/*!
+ * @brief 床上のアイテムの残り数メッセージを表示する /
  * Describe the charges on an item on the floor.
- * @param item ¥á¥Ã¥»¡¼¥¸¤ÎÂоݤˤ·¤¿¤¤¥¢¥¤¥Æ¥à½ê»ý¥¹¥í¥Ã¥È
- * @return ¤Ê¤·
+ * @param item メッセージの対象にしたいアイテム所持スロット
+ * @return なし
  */
 void floor_item_describe(int item)
 {
@@ -6082,14 +5951,14 @@ void floor_item_describe(int item)
 
        /* Print a message */
 #ifdef JP
-       /* "no more" ¤Î¾ì¹ç¤Ï¤³¤Á¤é¤Çɽ¼¨¤òʬ¤±¤ë */
+       /* "no more" の場合はこちらで表示を分ける */
        if (o_ptr->number <= 0)
        {
-               msg_format("¾²¾å¤Ë¤Ï¡¢¤â¤¦%s¤Ï¤Ê¤¤¡£", o_name);
+               msg_format("床上には、もう%sはない。", o_name);
        }
        else
        {
-               msg_format("¾²¾å¤Ë¤Ï¡¢¤Þ¤À %s¤¬¤¢¤ë¡£", o_name);
+               msg_format("床上には、まだ %sがある。", o_name);
        }
 #else
        msg_format("You see %s.", o_name);
@@ -6098,12 +5967,12 @@ void floor_item_describe(int item)
 }
 
 
-/*
- * @brief ¾²¾å¤Î¥¢¥¤¥Æ¥à¤Î¿ô¤òÁý¤ä¤¹ /
+/*!
+ * @brief 床上のアイテムの数を増やす /
  * Increase the "number" of an item on the floor
- * @param item Áý¤ä¤·¤¿¤¤¥¢¥¤¥Æ¥à¤Î½ê»ý¥¹¥í¥Ã¥È
- * @param num Áý¤ä¤·¤¿¤¤¥¢¥¤¥Æ¥à¤Î¿ô
- * @return ¤Ê¤·
+ * @param item 増やしたいアイテムの所持スロット
+ * @param num 増やしたいアイテムの数
+ * @return なし
  */
 void floor_item_increase(int item, int num)
 {
@@ -6117,18 +5986,18 @@ void floor_item_increase(int item, int num)
        else if (num < 0) num = 0;
 
        /* Un-apply */
-       num -= o_ptr->number;
+       num -= (int)o_ptr->number;
 
        /* Change the number */
-       o_ptr->number += num;
+       o_ptr->number += (ITEM_NUMBER)num;
 }
 
 
-/*
- * @brief ¾²¾å¤Î¿ô¤Î̵¤¯¤Ê¤Ã¤¿¥¢¥¤¥Æ¥à¥¹¥í¥Ã¥È¤ò¾Ãµî¤¹¤ë /
+/*!
+ * @brief 床上の数の無くなったアイテムスロットを消去する /
  * Optimize an item on the floor (destroy "empty" items)
- * @param item ¾Ãµî¤·¤¿¤¤¥¢¥¤¥Æ¥à¤Î½ê»ý¥¹¥í¥Ã¥È
- * @return ¤Ê¤·
+ * @param item 消去したいアイテムの所持スロット
+ * @return なし
  */
 void floor_item_optimize(int item)
 {
@@ -6145,11 +6014,11 @@ void floor_item_optimize(int item)
 }
 
 
-/*
- * @brief ¥¢¥¤¥Æ¥à¤ò½¦¤¦ºÝ¤Ë¥¶¥Ã¥¯¤«¤é°î¤ì¤º¤ËºÑ¤à¤«¤òȽÄꤹ¤ë /
+/*!
+ * @brief アイテムを拾う際にザックから溢れずに済むかを判定する /
  * Check if we have space for an item in the pack without overflow
- * @param o_ptr ½¦¤¤¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿
- * @return °î¤ì¤º¤ËºÑ¤à¤Ê¤éTRUE¤òÊÖ¤¹
+ * @param o_ptr æ\8b¾ã\81\84ã\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を返す
  */
 bool inven_carry_okay(object_type *o_ptr)
 {
@@ -6174,7 +6043,14 @@ bool inven_carry_okay(object_type *o_ptr)
        return (FALSE);
 }
 
-
+/*!
+ * @brief オブジェクトを定義された基準に従いソートするための関数 /
+ * Check if we have space for an item in the pack without overflow
+ * @param o_ptr 比較対象オブジェクトの構造体参照ポインタ1
+ * @param o_value o_ptrのアイテム価値(手動であらかじめ代入する必要がある?)
+ * @param j_ptr 比較対象オブジェクトの構造体参照ポインタ2
+ * @return o_ptrの方が上位ならばTRUEを返す。
+ */
 bool object_sort_comp(object_type *o_ptr, s32b o_value, object_type *j_ptr)
 {
        int o_type, j_type;
@@ -6256,27 +6132,30 @@ bool object_sort_comp(object_type *o_ptr, s32b o_value, object_type *j_ptr)
 }
 
 
-/*
+/*!
+ * @brief オブジェクトをプレイヤーが拾って所持スロットに納めるメインルーチン /
  * Add an item to the players inventory, and return the slot used.
- *
- * If the new item can combine with an existing item in the inventory,
- * it will do so, using "object_similar()" and "object_absorb()", else,
- * the item will be placed into the "proper" location in the inventory.
- *
- * This function can be used to "over-fill" the player's pack, but only
- * once, and such an action must trigger the "overflow" code immediately.
- * Note that when the pack is being "over-filled", the new item must be
- * placed into the "overflow" slot, and the "overflow" must take place
- * before the pack is reordered, but (optionally) after the pack is
- * combined.  This may be tricky.  See "dungeon.c" for info.
- *
- * Note that this code must remove any location/stack information
- * from the object once it is placed into the inventory.
+ * @param o_ptr 拾うオブジェクトの構造体参照ポインタ
+ * @return 収められた所持スロットのID、拾うことができなかった場合-1を返す。
+ * @details
+ * If the new item can combine with an existing item in the inventory,\n
+ * it will do so, using "object_similar()" and "object_absorb()", else,\n
+ * the item will be placed into the "proper" location in the inventory.\n
+ *\n
+ * This function can be used to "over-fill" the player's pack, but only\n
+ * once, and such an action must trigger the "overflow" code immediately.\n
+ * Note that when the pack is being "over-filled", the new item must be\n
+ * placed into the "overflow" slot, and the "overflow" must take place\n
+ * before the pack is reordered, but (optionally) after the pack is\n
+ * combined.  This may be tricky.  See "dungeon.c" for info.\n
+ *\n
+ * Note that this code must remove any location/stack information\n
+ * from the object once it is placed into the inventory.\n
  */
 s16b inven_carry(object_type *o_ptr)
 {
-       int i, j, k;
-       int n = -1;
+       INVENTORY_IDX i, j, k;
+       INVENTORY_IDX n = -1;
 
        object_type *j_ptr;
 
@@ -6394,15 +6273,17 @@ s16b inven_carry(object_type *o_ptr)
 }
 
 
-/*
+/*!
+ * @brief 装備スロットからオブジェクトを外すメインルーチン /
  * Take off (some of) a non-cursed equipment item
- *
- * Note that only one item at a time can be wielded per slot.
- *
- * Note that taking off an item when "full" may cause that item
- * to fall to the ground.
- *
- * Return the inventory slot into which the item is placed.
+ * @param item オブジェクトを外したい所持テーブルのID
+ * @param amt 外したい個数
+ * @return 収められた所持スロットのID、拾うことができなかった場合-1を返す。
+ * @details
+ * Note that only one item at a time can be wielded per slot.\n
+ * Note that taking off an item when "full" may cause that item\n
+ * to fall to the ground.\n
+ * Return the inventory slot into which the item is placed.\n
  */
 s16b inven_takeoff(int item, int amt)
 {
@@ -6443,45 +6324,25 @@ s16b inven_takeoff(int item, int amt)
        if (((item == INVEN_RARM) || (item == INVEN_LARM)) &&
            object_is_melee_weapon(o_ptr))
        {
-#ifdef JP
-               act = "¤òÁõÈ÷¤«¤é¤Ï¤º¤·¤¿";
-#else
-               act = "You were wielding";
-#endif
-
+               act = _("を装備からはずした", "You were wielding");
        }
 
        /* Took off bow */
        else if (item == INVEN_BOW)
        {
-#ifdef JP
-               act = "¤òÁõÈ÷¤«¤é¤Ï¤º¤·¤¿";
-#else
-               act = "You were holding";
-#endif
-
+               act = _("を装備からはずした", "You were holding");
        }
 
        /* Took off light */
        else if (item == INVEN_LITE)
        {
-#ifdef JP
-               act = "¤ò¸÷¸»¤«¤é¤Ï¤º¤·¤¿";
-#else
-               act = "You were holding";
-#endif
-
+               act = _("を光源からはずした", "You were holding");
        }
 
        /* Took off something */
        else
        {
-#ifdef JP
-               act = "¤òÁõÈ÷¤«¤é¤Ï¤º¤·¤¿";
-#else
-               act = "You were wearing";
-#endif
-
+               act = _("を装備からはずした", "You were wearing");
        }
 
        /* Modify, Optimize */
@@ -6493,7 +6354,7 @@ s16b inven_takeoff(int item, int amt)
 
        /* Message */
 #ifdef JP
-       msg_format("%s(%c)%s¡£", o_name, index_to_label(slot), act);
+       msg_format("%s(%c)%s", o_name, index_to_label(slot), act);
 #else
        msg_format("%s %s (%c).", act, o_name, index_to_label(slot));
 #endif
@@ -6504,9 +6365,13 @@ s16b inven_takeoff(int item, int amt)
 }
 
 
-/*
+/*!
+ * @brief 所持スロットから床下にオブジェクトを落とすメインルーチン /
  * Drop (some of) a non-cursed inventory/equipment item
- *
+ * @param item 所持テーブルのID
+ * @param amt 落としたい個数
+ * @return なし
+ * @details
  * The object will be dropped "near" the current location
  */
 void inven_drop(int item, int amt)
@@ -6556,15 +6421,10 @@ void inven_drop(int item, int amt)
        object_desc(o_name, q_ptr, 0);
 
        /* Message */
-#ifdef JP
-       msg_format("%s(%c)¤òÍî¤È¤·¤¿¡£", o_name, index_to_label(item));
-#else
-       msg_format("You drop %s (%c).", o_name, index_to_label(item));
-#endif
-
+       msg_format(_("%s(%c)を落とした。", "You drop %s (%c)."), o_name, index_to_label(item));
 
        /* Drop it near the player */
-       (void)drop_near(q_ptr, 0, py, px);
+       (void)drop_near(q_ptr, 0, p_ptr->y, p_ptr->x);
 
        /* Modify, Describe, Optimize */
        inven_item_increase(item, -amt);
@@ -6573,9 +6433,11 @@ void inven_drop(int item, int amt)
 }
 
 
-/*
+/*!
+ * @brief プレイヤーの所持スロットに存在するオブジェクトをまとめなおす /
  * Combine items in the pack
- *
+ * @return なし
+ * @details
  * Note special handling of the "overflow" slot
  */
 void combine_pack(void)
@@ -6680,17 +6542,14 @@ void combine_pack(void)
        while (combined);
 
        /* Message */
-#ifdef JP
-       if (flag) msg_print("¥¶¥Ã¥¯¤ÎÃæ¤Î¥¢¥¤¥Æ¥à¤ò¤Þ¤È¤áľ¤·¤¿¡£");
-#else
-       if (flag) msg_print("You combine some items in your pack.");
-#endif
+       if (flag) msg_print(_("ザックの中のアイテムをまとめ直した。", "You combine some items in your pack."));
 }
 
-
-/*
+/*!
+ * @brief プレイヤーの所持スロットに存在するオブジェクトを並び替える /
  * Reorder items in the pack
- *
+ * @return なし
+ * @details
  * Note special handling of the "overflow" slot
  */
 void reorder_pack(void)
@@ -6751,28 +6610,25 @@ void reorder_pack(void)
        }
 
        /* Message */
-#ifdef JP
-       if (flag) msg_print("¥¶¥Ã¥¯¤ÎÃæ¤Î¥¢¥¤¥Æ¥à¤òÊ¤Ùľ¤·¤¿¡£");
-#else
-       if (flag) msg_print("You reorder some items in your pack.");
-#endif
-
+       if (flag) msg_print(_("ザックの中のアイテムを並べ直した。", "You reorder some items in your pack."));
 }
 
-
-/*
+/*!
+ * @brief 現在アクティブになっているウィンドウにオブジェクトの詳細を表示する /
  * Hack -- display an object kind in the current window
- *
+ * @param k_idx ベースアイテムの参照ID
+ * @return なし
+ * @details
  * Include list of usable spells for readible books
  */
-void display_koff(int k_idx)
+void display_koff(IDX k_idx)
 {
        int y;
 
        object_type forge;
        object_type *q_ptr;
        int         sval;
-       int         use_realm;
+       REALM_IDX   use_realm;
 
        char o_name[MAX_NLEN];
 
@@ -6819,7 +6675,7 @@ void display_koff(int k_idx)
        {
                int     spell = -1;
                int     num = 0;
-               byte    spells[64];
+               SPELL_IDX    spells[64];
 
                /* Extract spells */
                for (spell = 0; spell < 32; spell++)
@@ -6837,7 +6693,12 @@ void display_koff(int k_idx)
        }
 }
 
-/* Choose one of items that have warning flag */
+/*!
+ * @brief 警告を放つアイテムを選択する /
+ * Choose one of items that have warning flag
+ * Calculate spell damages
+ * @return 警告を行う
+ */
 object_type *choose_warning_item(void)
 {
        int i;
@@ -6865,15 +6726,21 @@ object_type *choose_warning_item(void)
        return number ? &inventory[choices[randint0(number)]] : NULL;
 }
 
-/* Calculate spell damages */
-static void spell_damcalc(monster_type *m_ptr, int typ, int dam, int limit, int *max)
+/*!
+ * @brief 警告基準を定めるために魔法の効果属性に基づいて最大魔法ダメージを計算する /
+ * Calculate spell damages
+ * @param m_ptr 魔法を行使するモンスターの構造体参照ポインタ
+ * @param typ 効果属性のID
+ * @param dam 基本ダメージ
+ * @param max 算出した最大ダメージを返すポインタ
+ * @return なし
+ */
+static void spell_damcalc(monster_type *m_ptr, int typ, HIT_POINT dam, int *max)
 {
        monster_race *r_ptr = &r_info[m_ptr->r_idx];
        int          rlev = r_ptr->level;
        bool         ignore_wraith_form = FALSE;
 
-       if (limit) dam = (dam > limit) ? limit : dam;
-
        /* Vulnerability, resistance and immunity */
        switch (typ)
        {
@@ -7104,7 +6971,29 @@ static void spell_damcalc(monster_type *m_ptr, int typ, int dam, int limit, int
        if (dam > *max) *max = dam;
 }
 
-/* Calculate blow damages */
+/*!
+* @brief 警告基準を定めるために魔法の効果属性に基づいて最大魔法ダメージを計算する。 /
+* Calculate spell damages
+* @param spell_num RF4ならRF4_SPELL_STARTのように32区切りのベースとなる数値
+* @param typ 効果属性のID
+* @param m_idx 魔法を行使するモンスターのID
+* @param max 算出した最大ダメージを返すポインタ
+* @return なし
+*/
+void spell_damcalc_by_spellnum(int spell_num, int typ, MONSTER_IDX m_idx, int *max)
+{
+    monster_type *m_ptr = &m_list[m_idx];
+    HIT_POINT dam = monspell_damage((spell_num), m_idx, DAM_MAX);
+    spell_damcalc(m_ptr, typ, dam, max);
+}
+
+/*!
+ * @brief 警告基準を定めるためにモンスターの打撃最大ダメージを算出する /
+ * Calculate blow damages
+ * @param m_ptr 打撃を行使するモンスターの構造体参照ポインタ
+ * @param blow_ptr モンスターの打撃能力の構造体参照ポインタ
+ * @return 算出された最大ダメージを返す。
+ */
 static int blow_damcalc(monster_type *m_ptr, monster_blow *blow_ptr)
 {
        int  dam = blow_ptr->d_dice * blow_ptr->d_side;
@@ -7130,25 +7019,25 @@ static int blow_damcalc(monster_type *m_ptr, monster_blow *blow_ptr)
                        break;
 
                case RBE_ACID:
-                       spell_damcalc(m_ptr, GF_ACID, dam, 0, &dummy_max);
+                       spell_damcalc(m_ptr, GF_ACID, dam, &dummy_max);
                        dam = dummy_max;
                        check_wraith_form = FALSE;
                        break;
 
                case RBE_ELEC:
-                       spell_damcalc(m_ptr, GF_ELEC, dam, 0, &dummy_max);
+                       spell_damcalc(m_ptr, GF_ELEC, dam, &dummy_max);
                        dam = dummy_max;
                        check_wraith_form = FALSE;
                        break;
 
                case RBE_FIRE:
-                       spell_damcalc(m_ptr, GF_FIRE, dam, 0, &dummy_max);
+                       spell_damcalc(m_ptr, GF_FIRE, dam, &dummy_max);
                        dam = dummy_max;
                        check_wraith_form = FALSE;
                        break;
 
                case RBE_COLD:
-                       spell_damcalc(m_ptr, GF_COLD, dam, 0, &dummy_max);
+                       spell_damcalc(m_ptr, GF_COLD, dam, &dummy_max);
                        dam = dummy_max;
                        check_wraith_form = FALSE;
                        break;
@@ -7168,14 +7057,20 @@ static int blow_damcalc(monster_type *m_ptr, monster_blow *blow_ptr)
        else
        {
                dam = (dam + 1) / 2;
-               spell_damcalc(m_ptr, mbe_info[blow_ptr->effect].explode_type, dam, 0, &dummy_max);
+               spell_damcalc(m_ptr, mbe_info[blow_ptr->effect].explode_type, dam, &dummy_max);
                dam = dummy_max;
        }
 
        return dam;
 }
 
-/* Examine the grid (xx,yy) and warn the player if there are any danger */
+/*!
+ * @brief プレイヤーが特定地点へ移動した場合に警告を発する処理 /
+ * Examine the grid (xx,yy) and warn the player if there are any danger
+ * @param xx 危険性を調査するマスのX座標
+ * @param yy 危険性を調査するマスのY座標
+ * @return 警告を無視して進むことを選択するかか問題が無ければTRUE、警告に従ったならFALSEを返す。
+ */
 bool process_warning(int xx, int yy)
 {
        int mx, my;
@@ -7209,49 +7104,43 @@ bool process_warning(int xx, int yy)
 
                        /* Monster spells (only powerful ones)*/
                        if (projectable(my, mx, yy, xx))
-                       {
-                               int breath_dam_div3 = m_ptr->hp / 3;
-                               int breath_dam_div6 = m_ptr->hp / 6;
+            {
                                u32b f4 = r_ptr->flags4;
-                               u32b f5 = r_ptr->flags5;
-                               u32b f6 = r_ptr->flags6;
+                               u32b f5 = r_ptr->a_ability_flags1;
+                               u32b f6 = r_ptr->a_ability_flags2;
 
                                if (!(d_info[dungeon_type].flags1 & DF1_NO_MAGIC))
                                {
-                                       int rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1);
-                                       int storm_dam = rlev * 4 + 150;
-                                       bool powerful = (bool)(r_ptr->flags2 & RF2_POWERFUL);
-
-                                       if (f4 & RF4_BA_CHAO) spell_damcalc(m_ptr, GF_CHAOS, rlev * (powerful ? 3 : 2) + 100, 0, &dam_max0);
-                                       if (f5 & RF5_BA_MANA) spell_damcalc(m_ptr, GF_MANA, storm_dam, 0, &dam_max0);
-                                       if (f5 & RF5_BA_DARK) spell_damcalc(m_ptr, GF_DARK, storm_dam, 0, &dam_max0);
-                                       if (f5 & RF5_BA_LITE) spell_damcalc(m_ptr, GF_LITE, storm_dam, 0, &dam_max0);
-                                       if (f6 & RF6_HAND_DOOM) spell_damcalc(m_ptr, GF_HAND_DOOM, p_ptr->chp * 6 / 10, 0, &dam_max0);
-                                       if (f6 & RF6_PSY_SPEAR) spell_damcalc(m_ptr, GF_PSY_SPEAR, powerful ? (rlev * 2 + 150) : (rlev * 3 / 2 + 100), 0, &dam_max0);
+                    if (f4 & RF4_BA_CHAO) spell_damcalc_by_spellnum(MS_BALL_CHAOS, GF_CHAOS, c_ptr->m_idx,  &dam_max0);
+                    if (f5 & RF5_BA_MANA) spell_damcalc_by_spellnum(MS_BALL_MANA, GF_MANA, c_ptr->m_idx, &dam_max0);
+                    if (f5 & RF5_BA_DARK) spell_damcalc_by_spellnum(MS_BALL_DARK, GF_DARK, c_ptr->m_idx, &dam_max0);
+                    if (f5 & RF5_BA_LITE) spell_damcalc_by_spellnum(MS_STARBURST, GF_LITE, c_ptr->m_idx, &dam_max0);
+                    if (f6 & RF6_HAND_DOOM) spell_damcalc_by_spellnum(MS_HAND_DOOM, GF_HAND_DOOM, c_ptr->m_idx, &dam_max0);
+                    if (f6 & RF6_PSY_SPEAR) spell_damcalc_by_spellnum(MS_PSY_SPEAR, GF_PSY_SPEAR, c_ptr->m_idx, &dam_max0);
                                }
-                               if (f4 & RF4_ROCKET) spell_damcalc(m_ptr, GF_ROCKET, m_ptr->hp / 4, 800, &dam_max0);
-                               if (f4 & RF4_BR_ACID) spell_damcalc(m_ptr, GF_ACID, breath_dam_div3, 1600, &dam_max0);
-                               if (f4 & RF4_BR_ELEC) spell_damcalc(m_ptr, GF_ELEC, breath_dam_div3, 1600, &dam_max0);
-                               if (f4 & RF4_BR_FIRE) spell_damcalc(m_ptr, GF_FIRE, breath_dam_div3, 1600, &dam_max0);
-                               if (f4 & RF4_BR_COLD) spell_damcalc(m_ptr, GF_COLD, breath_dam_div3, 1600, &dam_max0);
-                               if (f4 & RF4_BR_POIS) spell_damcalc(m_ptr, GF_POIS, breath_dam_div3, 800, &dam_max0);
-                               if (f4 & RF4_BR_NETH) spell_damcalc(m_ptr, GF_NETHER, breath_dam_div6, 550, &dam_max0);
-                               if (f4 & RF4_BR_LITE) spell_damcalc(m_ptr, GF_LITE, breath_dam_div6, 400, &dam_max0);
-                               if (f4 & RF4_BR_DARK) spell_damcalc(m_ptr, GF_DARK, breath_dam_div6, 400, &dam_max0);
-                               if (f4 & RF4_BR_CONF) spell_damcalc(m_ptr, GF_CONFUSION, breath_dam_div6, 450, &dam_max0);
-                               if (f4 & RF4_BR_SOUN) spell_damcalc(m_ptr, GF_SOUND, breath_dam_div6, 450, &dam_max0);
-                               if (f4 & RF4_BR_CHAO) spell_damcalc(m_ptr, GF_CHAOS, breath_dam_div6, 600, &dam_max0);
-                               if (f4 & RF4_BR_DISE) spell_damcalc(m_ptr, GF_DISENCHANT, breath_dam_div6, 500, &dam_max0);
-                               if (f4 & RF4_BR_NEXU) spell_damcalc(m_ptr, GF_NEXUS, breath_dam_div3, 250, &dam_max0);
-                               if (f4 & RF4_BR_TIME) spell_damcalc(m_ptr, GF_TIME, breath_dam_div3, 150, &dam_max0);
-                               if (f4 & RF4_BR_INER) spell_damcalc(m_ptr, GF_INERTIA, breath_dam_div6, 200, &dam_max0);
-                               if (f4 & RF4_BR_GRAV) spell_damcalc(m_ptr, GF_GRAVITY, breath_dam_div3, 200, &dam_max0);
-                               if (f4 & RF4_BR_SHAR) spell_damcalc(m_ptr, GF_SHARDS, breath_dam_div6, 500, &dam_max0);
-                               if (f4 & RF4_BR_PLAS) spell_damcalc(m_ptr, GF_PLASMA, breath_dam_div6, 150, &dam_max0);
-                               if (f4 & RF4_BR_WALL) spell_damcalc(m_ptr, GF_FORCE, breath_dam_div6, 200, &dam_max0);
-                               if (f4 & RF4_BR_MANA) spell_damcalc(m_ptr, GF_MANA, breath_dam_div3, 250, &dam_max0);
-                               if (f4 & RF4_BR_NUKE) spell_damcalc(m_ptr, GF_NUKE, breath_dam_div3, 800, &dam_max0);
-                               if (f4 & RF4_BR_DISI) spell_damcalc(m_ptr, GF_DISINTEGRATE, breath_dam_div6, 150, &dam_max0);
+                if (f4 & RF4_ROCKET) spell_damcalc_by_spellnum(MS_ROCKET, GF_ROCKET, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_ACID) spell_damcalc_by_spellnum(MS_BR_ACID, GF_ACID, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_ELEC) spell_damcalc_by_spellnum(MS_BR_ELEC, GF_ELEC, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_FIRE) spell_damcalc_by_spellnum(MS_BR_FIRE, GF_FIRE, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_COLD) spell_damcalc_by_spellnum(MS_BR_COLD, GF_COLD, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_POIS) spell_damcalc_by_spellnum(MS_BR_POIS, GF_POIS, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_NETH) spell_damcalc_by_spellnum(MS_BR_NETHER, GF_NETHER, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_LITE) spell_damcalc_by_spellnum(MS_BR_LITE, GF_LITE, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_DARK) spell_damcalc_by_spellnum(MS_BR_DARK, GF_DARK, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_CONF) spell_damcalc_by_spellnum(MS_BR_CONF, GF_CONFUSION, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_SOUN) spell_damcalc_by_spellnum(MS_BR_SOUND, GF_SOUND, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_CHAO) spell_damcalc_by_spellnum(MS_BR_CHAOS, GF_CHAOS, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_DISE) spell_damcalc_by_spellnum(MS_BR_DISEN, GF_DISENCHANT, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_NEXU) spell_damcalc_by_spellnum(MS_BR_NEXUS, GF_NEXUS, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_TIME) spell_damcalc_by_spellnum(MS_BR_TIME, GF_TIME, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_INER) spell_damcalc_by_spellnum(MS_BR_INERTIA, GF_INERTIAL, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_GRAV) spell_damcalc_by_spellnum(MS_BR_GRAVITY, GF_GRAVITY, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_SHAR) spell_damcalc_by_spellnum(MS_BR_SHARDS, GF_SHARDS, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_PLAS) spell_damcalc_by_spellnum(MS_BR_PLASMA, GF_PLASMA, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_WALL) spell_damcalc_by_spellnum(MS_BR_FORCE, GF_FORCE, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_MANA) spell_damcalc_by_spellnum(MS_BR_MANA, GF_MANA, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_NUKE) spell_damcalc_by_spellnum(MS_BR_NUKE, GF_NUKE, c_ptr->m_idx, &dam_max0);
+                if (f4 & RF4_BR_DISI) spell_damcalc_by_spellnum(MS_BR_DISI, GF_DISINTEGRATE, c_ptr->m_idx, &dam_max0);
                        }
 
                        /* Monster melee attacks */
@@ -7288,20 +7177,14 @@ bool process_warning(int xx, int yy)
                {
                        object_type *o_ptr = choose_warning_item();
 
-                       if (o_ptr) object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
-#ifdef JP
-                       else strcpy(o_name, "ÂÎ"); /* Warning ability without item */
-                       msg_format("%s¤¬±Ô¤¯¿Ì¤¨¤¿¡ª", o_name);
-#else
-                       else strcpy(o_name, "body"); /* Warning ability without item */
-                       msg_format("Your %s pulsates sharply!", o_name);
-#endif
+                       if (o_ptr)
+                object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
+            else 
+                strcpy(o_name, _("体", "body")); /* Warning ability without item */
+            msg_format(_("%sが鋭く震えた!", "Your %s pulsates sharply!"), o_name);
+
                        disturb(0, 1);
-#ifdef JP
-                       return get_check("ËÜÅö¤Ë¤³¤Î¤Þ¤Þ¿Ê¤à¤«¡©");
-#else
-                       return get_check("Really want to go ahead? ");
-#endif
+            return get_check(_("本当にこのまま進むか?", "Really want to go ahead? "));
                }
        }
        else old_damage = old_damage / 2;
@@ -7312,26 +7195,23 @@ bool process_warning(int xx, int yy)
        {
                object_type *o_ptr = choose_warning_item();
 
-               if (o_ptr) object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
-#ifdef JP
-               else strcpy(o_name, "ÂÎ"); /* Warning ability without item */
-               msg_format("%s¤¬¿Ì¤¨¤¿¡ª", o_name);
-#else
-               else strcpy(o_name, "body"); /* Warning ability without item */
-               msg_format("Your %s pulsates!", o_name);
-#endif
+               if (o_ptr) 
+            object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
+        else
+            strcpy(o_name, _("体", "body")); /* Warning ability without item */
+        msg_format(_("%sが鋭く震えた!", "Your %s pulsates sharply!"), o_name);
                disturb(0, 1);
-#ifdef JP
-               return get_check("ËÜÅö¤Ë¤³¤Î¤Þ¤Þ¿Ê¤à¤«¡©");
-#else
-               return get_check("Really want to go ahead? ");
-#endif
+        return get_check(_("本当にこのまま進むか?", "Really want to go ahead? "));
        }
 
        return TRUE;
 }
 
-
+/*!
+ * @brief エッセンスの付加可能な武器や矢弾かを返す
+ * @param o_ptr チェックしたいオブジェクトの構造体参照ポインタ
+ * @return エッセンスの付加可能な武器か矢弾ならばTRUEを返す。
+ */
 static bool item_tester_hook_melee_ammo(object_type *o_ptr)
 {
        switch (o_ptr->tval)
@@ -7355,8 +7235,8 @@ static bool item_tester_hook_melee_ammo(object_type *o_ptr)
 }
 
 
-/*
- *  A structure for smithing
+/*!
+ * エッセンス情報の構造体 / A structure for smithing
  */
 typedef struct {
        int add;       /* TR flag number or special essence id */
@@ -7367,117 +7247,117 @@ typedef struct {
 } essence_type;
 
 
-/*
- *  Smithing type data for Weapon smith
+/*!
+ * エッセンス情報テーブル Smithing type data for Weapon smith
  */
 #ifdef JP
 static essence_type essence_info[] = 
 {
-       {TR_STR, "ÏÓÎÏ", 4, TR_STR, 20},
-       {TR_INT, "ÃÎǽ", 4, TR_INT, 20},
-       {TR_WIS, "¸­¤µ", 4, TR_WIS, 20},
-       {TR_DEX, "´ïÍѤµ", 4, TR_DEX, 20},
-       {TR_CON, "Âѵ×ÎÏ", 4, TR_CON, 20},
-       {TR_CHR, "Ì¥ÎÏ", 4, TR_CHR, 20},
-       {TR_MAGIC_MASTERY, "ËâÎÏ»ÙÇÛ", 4, TR_MAGIC_MASTERY, 20},
-       {TR_STEALTH, "±£Ì©", 4, TR_STEALTH, 40},
-       {TR_SEARCH, "õº÷", 4, TR_SEARCH, 15},
-       {TR_INFRA, "ÀÖ³°Àþ»ëÎÏ", 4, TR_INFRA, 15},
-       {TR_TUNNEL, "ºÎ·¡", 4, TR_TUNNEL, 15},
-       {TR_SPEED, "¥¹¥Ô¡¼¥É", 4, TR_SPEED, 12},
-       {TR_BLOWS, "Äɲù¶·â", 1, TR_BLOWS, 20},
-       {TR_CHAOTIC, "¥«¥ª¥¹¹¶·â", 1, TR_CHAOTIC, 15},
-       {TR_VAMPIRIC, "µÛ·ì¹¶·â", 1, TR_VAMPIRIC, 60},
-       {TR_IMPACT, "ÃÏ¿Ìȯư", 7, TR_IMPACT, 15},
-       {TR_BRAND_POIS, "ÆÇ»¦", 1, TR_BRAND_POIS, 20},
-       {TR_BRAND_ACID, "Íϲò", 1, TR_BRAND_ACID, 20},
-       {TR_BRAND_ELEC, "ÅÅ·â", 1, TR_BRAND_ELEC, 20},
-       {TR_BRAND_FIRE, "¾Æ´þ", 1, TR_BRAND_FIRE, 20},
-       {TR_BRAND_COLD, "Åà·ë", 1, TR_BRAND_COLD, 20},
-       {TR_SUST_STR, "ÏÓÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
-       {TR_SUST_INT, "ÃÎǽ°Ý»ý", 3, TR_SUST_STR, 15},
-       {TR_SUST_WIS, "¸­¤µ°Ý»ý", 3, TR_SUST_STR, 15},
-       {TR_SUST_DEX, "´ïÍѤµ°Ý»ý", 3, TR_SUST_STR, 15},
-       {TR_SUST_CON, "Âѵ×ÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
-       {TR_SUST_CHR, "Ì¥ÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
-       {TR_IM_ACID, "»ÀÌȱÖ", 2, TR_IM_ACID, 20},
-       {TR_IM_ELEC, "ÅÅ·âÌȱÖ", 2, TR_IM_ACID, 20},
-       {TR_IM_FIRE, "²Ð±êÌȱÖ", 2, TR_IM_ACID, 20},
-       {TR_IM_COLD, "Î䵤ÌȱÖ", 2, TR_IM_ACID, 20},
-       {TR_REFLECT, "È¿¼Í", 2, TR_REFLECT, 20},
-       {TR_FREE_ACT, "ËãáãÃΤ餺", 3, TR_FREE_ACT, 20},
-       {TR_HOLD_LIFE, "À¸Ì¿ÎÏ°Ý»ý", 3, TR_HOLD_LIFE, 20},
-       {TR_RES_ACID, "ÂÑ»À", 2, TR_RES_ACID, 15},
-       {TR_RES_ELEC, "ÂÑÅÅ·â", 2, TR_RES_ELEC, 15},
-       {TR_RES_FIRE, "ÂѲбê", 2, TR_RES_FIRE, 15},
-       {TR_RES_COLD, "ÂÑÎ䵤", 2, TR_RES_COLD, 15},
-       {TR_RES_POIS, "ÂÑÆÇ", 2, TR_RES_POIS, 25},
-       {TR_RES_FEAR, "ÂѶ²ÉÝ", 2, TR_RES_FEAR, 20},
-       {TR_RES_LITE, "ÂÑÁ®¸÷", 2, TR_RES_LITE, 20},
-       {TR_RES_DARK, "ÂѰŹõ", 2, TR_RES_DARK, 20},
-       {TR_RES_BLIND, "ÂÑÌÕÌÜ", 2, TR_RES_BLIND, 20},
-       {TR_RES_CONF, "ÂѺ®Íð", 2, TR_RES_CONF, 20},
-       {TR_RES_SOUND, "Âѹ첻", 2, TR_RES_SOUND, 20},
-       {TR_RES_SHARDS, "ÂÑÇËÊÒ", 2, TR_RES_SHARDS, 20},
-       {TR_RES_NETHER, "ÂÑÃϹö", 2, TR_RES_NETHER, 20},
-       {TR_RES_NEXUS, "ÂÑ°ø²Ìº®Íð", 2, TR_RES_NEXUS, 20},
-       {TR_RES_CHAOS, "ÂÑ¥«¥ª¥¹", 2, TR_RES_CHAOS, 20},
-       {TR_RES_DISEN, "ÂÑÎô²½", 2, TR_RES_DISEN, 20},
+       {TR_STR, "腕力", 4, TR_STR, 20},
+       {TR_INT, "ç\9f¥è\83½", 4, TR_INT, 20},
+       {TR_WIS, "賢さ", 4, TR_WIS, 20},
+       {TR_DEX, "器用さ", 4, TR_DEX, 20},
+       {TR_CON, "耐久力", 4, TR_CON, 20},
+       {TR_CHR, "魅力", 4, TR_CHR, 20},
+       {TR_MAGIC_MASTERY, "魔力支配", 4, TR_MAGIC_MASTERY, 20},
+       {TR_STEALTH, "隠密", 4, TR_STEALTH, 40},
+       {TR_SEARCH, "探索", 4, TR_SEARCH, 15},
+       {TR_INFRA, "赤外線視力", 4, TR_INFRA, 15},
+       {TR_TUNNEL, "採掘", 4, TR_TUNNEL, 15},
+       {TR_SPEED, "スピード", 4, TR_SPEED, 12},
+       {TR_BLOWS, "追加攻撃", 1, TR_BLOWS, 20},
+       {TR_CHAOTIC, "カオス攻撃", 1, TR_CHAOTIC, 15},
+       {TR_VAMPIRIC, "吸血攻撃", 1, TR_VAMPIRIC, 60},
+       {TR_IMPACT, "地震発動", 7, TR_IMPACT, 15},
+       {TR_BRAND_POIS, "毒殺", 1, TR_BRAND_POIS, 20},
+       {TR_BRAND_ACID, "溶解", 1, TR_BRAND_ACID, 20},
+       {TR_BRAND_ELEC, "電撃", 1, TR_BRAND_ELEC, 20},
+       {TR_BRAND_FIRE, "焼棄", 1, TR_BRAND_FIRE, 20},
+       {TR_BRAND_COLD, "凍結", 1, TR_BRAND_COLD, 20},
+       {TR_SUST_STR, "腕力維持", 3, TR_SUST_STR, 15},
+       {TR_SUST_INT, "知能維持", 3, TR_SUST_STR, 15},
+       {TR_SUST_WIS, "賢さ維持", 3, TR_SUST_STR, 15},
+       {TR_SUST_DEX, "器用さ維持", 3, TR_SUST_STR, 15},
+       {TR_SUST_CON, "耐久力維持", 3, TR_SUST_STR, 15},
+       {TR_SUST_CHR, "魅力維持", 3, TR_SUST_STR, 15},
+       {TR_IM_ACID, "酸免疫", 2, TR_IM_ACID, 20},
+       {TR_IM_ELEC, "電撃免疫", 2, TR_IM_ACID, 20},
+       {TR_IM_FIRE, "火炎免疫", 2, TR_IM_ACID, 20},
+       {TR_IM_COLD, "冷気免疫", 2, TR_IM_ACID, 20},
+       {TR_REFLECT, "反射", 2, TR_REFLECT, 20},
+       {TR_FREE_ACT, "麻痺知らず", 3, TR_FREE_ACT, 20},
+       {TR_HOLD_EXP, "経験値維持", 3, TR_HOLD_EXP, 20},
+       {TR_RES_ACID, "耐酸", 2, TR_RES_ACID, 15},
+       {TR_RES_ELEC, "耐電撃", 2, TR_RES_ELEC, 15},
+       {TR_RES_FIRE, "耐火炎", 2, TR_RES_FIRE, 15},
+       {TR_RES_COLD, "耐冷気", 2, TR_RES_COLD, 15},
+       {TR_RES_POIS, "耐毒", 2, TR_RES_POIS, 25},
+       {TR_RES_FEAR, "耐恐怖", 2, TR_RES_FEAR, 20},
+       {TR_RES_LITE, "耐閃光", 2, TR_RES_LITE, 20},
+       {TR_RES_DARK, "耐暗黒", 2, TR_RES_DARK, 20},
+       {TR_RES_BLIND, "耐盲目", 2, TR_RES_BLIND, 20},
+       {TR_RES_CONF, "耐混乱", 2, TR_RES_CONF, 20},
+       {TR_RES_SOUND, "耐轟音", 2, TR_RES_SOUND, 20},
+       {TR_RES_SHARDS, "耐破片", 2, TR_RES_SHARDS, 20},
+       {TR_RES_NETHER, "耐地獄", 2, TR_RES_NETHER, 20},
+       {TR_RES_NEXUS, "耐因果混乱", 2, TR_RES_NEXUS, 20},
+       {TR_RES_CHAOS, "è\80\90ã\82«ã\82ªã\82¹", 2, TR_RES_CHAOS, 20},
+       {TR_RES_DISEN, "耐劣化", 2, TR_RES_DISEN, 20},
        {TR_SH_FIRE, "", 0, -2, 0},
        {TR_SH_ELEC, "", 0, -2, 0},
        {TR_SH_COLD, "", 0, -2, 0},
-       {TR_NO_MAGIC, "È¿ËâË¡", 3, TR_NO_MAGIC, 15},
-       {TR_WARNING, "·Ù¹ð", 3, TR_WARNING, 20},
-       {TR_LEVITATION, "ÉâÍ·", 3, TR_LEVITATION, 20},
-       {TR_LITE_1, "±Êµ×¸÷¸»", 3, TR_LITE_1, 15},
+       {TR_NO_MAGIC, "反魔法", 3, TR_NO_MAGIC, 15},
+       {TR_WARNING, "警告", 3, TR_WARNING, 20},
+       {TR_LEVITATION, "浮遊", 3, TR_LEVITATION, 20},
+       {TR_LITE_1, "永久光源", 3, TR_LITE_1, 15},
        {TR_LITE_2, "", 0, -2, 0},
        {TR_LITE_3, "", 0, -2, 0},
-       {TR_SEE_INVIS, "²Ä»ëÆ©ÌÀ", 3, TR_SEE_INVIS, 20},
-       {TR_TELEPATHY, "¥Æ¥ì¥Ñ¥·¡¼", 6, TR_TELEPATHY, 15},
-       {TR_SLOW_DIGEST, "Ãپò½", 3, TR_SLOW_DIGEST, 15},
-       {TR_REGEN, "µÞ®²óÉü", 3, TR_REGEN, 20},
-       {TR_TELEPORT, "¥Æ¥ì¥Ý¡¼¥È", 3, TR_TELEPORT, 25},
-
-       {TR_SLAY_EVIL, "¼Ù°­ÇÜÂÇ", 5, TR_SLAY_EVIL, 100},
-       {TR_KILL_EVIL, "¼Ù°­ÇÜÇÜÂÇ", 0, TR_SLAY_EVIL, 60},
-       {TR_SLAY_ANIMAL, "ưʪÇÜÂÇ", 5, TR_SLAY_ANIMAL, 20},
-       {TR_KILL_ANIMAL, "ưʪÇÜÇÜÂÇ", 5, TR_SLAY_ANIMAL, 60},
-       {TR_SLAY_UNDEAD, "ÉÔ»àÇÜÂÇ", 5, TR_SLAY_UNDEAD, 20},
-       {TR_KILL_UNDEAD, "ÉÔ»àÇÜÇÜÂÇ", 5, TR_SLAY_UNDEAD, 60},
-       {TR_SLAY_DEMON, "°­ËâÇÜÂÇ", 5, TR_SLAY_DEMON, 20},
-       {TR_KILL_DEMON, "°­ËâÇÜÇÜÂÇ", 5, TR_SLAY_DEMON, 60},
-       {TR_SLAY_ORC, "¥ª¡¼¥¯ÇÜÂÇ", 5, TR_SLAY_ORC, 15},
-       {TR_KILL_ORC, "¥ª¡¼¥¯ÇÜÇÜÂÇ", 5, TR_SLAY_ORC, 60},
-       {TR_SLAY_TROLL, "¥È¥í¥ëÇÜÂÇ", 5, TR_SLAY_TROLL, 15},
-       {TR_KILL_TROLL, "¥È¥í¥ëÇÜÇÜÂÇ", 5, TR_SLAY_TROLL, 60},
-       {TR_SLAY_GIANT, "µð¿ÍÇÜÂÇ", 5, TR_SLAY_GIANT, 20},
-       {TR_KILL_GIANT, "µð¿ÍÇÜÇÜÂÇ", 5, TR_SLAY_GIANT, 60},       
-       {TR_SLAY_DRAGON, "εÇÜÂÇ", 5, TR_SLAY_DRAGON, 20},
-       {TR_KILL_DRAGON, "εÇÜÇÜÂÇ", 5, TR_SLAY_DRAGON, 60},
-       {TR_SLAY_HUMAN, "¿Í´ÖÇÜÂÇ", 5, TR_SLAY_HUMAN, 20},
-       {TR_KILL_HUMAN, "¿Í´ÖÇÜÇÜÂÇ", 5, TR_SLAY_HUMAN, 60},
-
-       {TR_ESP_ANIMAL, "ưʪESP", 6, TR_SLAY_ANIMAL, 40},
-       {TR_ESP_UNDEAD, "ÉÔ»àESP", 6, TR_SLAY_UNDEAD, 40}, 
-       {TR_ESP_DEMON, "°­ËâESP", 6, TR_SLAY_DEMON, 40},       
-       {TR_ESP_ORC, "¥ª¡¼¥¯ESP", 6, TR_SLAY_ORC, 40},     
-       {TR_ESP_TROLL, "¥È¥í¥ëESP", 6, TR_SLAY_TROLL, 40},   
-       {TR_ESP_GIANT, "µð¿ÍESP", 6, TR_SLAY_GIANT, 40},       
-       {TR_ESP_DRAGON, "εESP", 6, TR_SLAY_DRAGON, 40},
-       {TR_ESP_HUMAN, "¿Í´ÖESP", 6, TR_SLAY_HUMAN, 40},
-
-       {ESSENCE_ATTACK, "¹¶·â", 10, TR_ES_ATTACK, 30},
-       {ESSENCE_AC, "Ëɸæ", 10, TR_ES_AC, 15},
-       {ESSENCE_TMP_RES_ACID, "»ÀÂÑÀ­È¯Æ°", 7, TR_RES_ACID, 50},
-       {ESSENCE_TMP_RES_ELEC, "ÅÅ·âÂÑÀ­È¯Æ°", 7, TR_RES_ELEC, 50},
-       {ESSENCE_TMP_RES_FIRE, "²Ð±êÂÑÀ­È¯Æ°", 7, TR_RES_FIRE, 50},
-       {ESSENCE_TMP_RES_COLD, "Î䵤ÂÑÀ­È¯Æ°", 7, TR_RES_COLD, 50},
-       {ESSENCE_SH_FIRE, "²Ð±ê¥ª¡¼¥é", 7, -1, 50},
-       {ESSENCE_SH_ELEC, "Åŷ⥪¡¼¥é", 7, -1, 50},
-       {ESSENCE_SH_COLD, "Î䵤¥ª¡¼¥é", 7, -1, 50},
-       {ESSENCE_RESISTANCE, "Á´ÂÑÀ­", 2, -1, 150},
-       {ESSENCE_SUSTAIN, "ÁõÈ÷ÊÝ»ý", 10, -1, 10},
-       {ESSENCE_SLAY_GLOVE, "»¦Ù¤¤Î¾®¼ê", 1, TR_ES_ATTACK, 200},
+       {TR_SEE_INVIS, "可視透明", 3, TR_SEE_INVIS, 20},
+       {TR_TELEPATHY, "ã\83\86ã\83¬ã\83\91ã\82·ã\83¼", 6, TR_TELEPATHY, 15},
+       {TR_SLOW_DIGEST, "遅消化", 3, TR_SLOW_DIGEST, 15},
+       {TR_REGEN, "急速回復", 3, TR_REGEN, 20},
+       {TR_TELEPORT, "テレポート", 3, TR_TELEPORT, 25},
+
+       {TR_SLAY_EVIL, "邪悪倍打", 5, TR_SLAY_EVIL, 100},
+       {TR_KILL_EVIL, "邪悪倍倍打", 0, TR_SLAY_EVIL, 60},
+       {TR_SLAY_ANIMAL, "動物倍打", 5, TR_SLAY_ANIMAL, 20},
+       {TR_KILL_ANIMAL, "動物倍倍打", 5, TR_SLAY_ANIMAL, 60},
+       {TR_SLAY_UNDEAD, "不死倍打", 5, TR_SLAY_UNDEAD, 20},
+       {TR_KILL_UNDEAD, "不死倍倍打", 5, TR_SLAY_UNDEAD, 60},
+       {TR_SLAY_DEMON, "悪魔倍打", 5, TR_SLAY_DEMON, 20},
+       {TR_KILL_DEMON, "悪魔倍倍打", 5, TR_SLAY_DEMON, 60},
+       {TR_SLAY_ORC, "オーク倍打", 5, TR_SLAY_ORC, 15},
+       {TR_KILL_ORC, "オーク倍倍打", 5, TR_SLAY_ORC, 60},
+       {TR_SLAY_TROLL, "トロル倍打", 5, TR_SLAY_TROLL, 15},
+       {TR_KILL_TROLL, "トロル倍倍打", 5, TR_SLAY_TROLL, 60},
+       {TR_SLAY_GIANT, "巨人倍打", 5, TR_SLAY_GIANT, 20},
+       {TR_KILL_GIANT, "巨人倍倍打", 5, TR_SLAY_GIANT, 60},       
+       {TR_SLAY_DRAGON, "竜倍打", 5, TR_SLAY_DRAGON, 20},
+       {TR_KILL_DRAGON, "竜倍倍打", 5, TR_SLAY_DRAGON, 60},
+       {TR_SLAY_HUMAN, "人間倍打", 5, TR_SLAY_HUMAN, 20},
+       {TR_KILL_HUMAN, "人間倍倍打", 5, TR_SLAY_HUMAN, 60},
+
+       {TR_ESP_ANIMAL, "動物ESP", 6, TR_SLAY_ANIMAL, 40},
+       {TR_ESP_UNDEAD, "不死ESP", 6, TR_SLAY_UNDEAD, 40}, 
+       {TR_ESP_DEMON, "悪魔ESP", 6, TR_SLAY_DEMON, 40},       
+       {TR_ESP_ORC, "ã\82ªã\83¼ã\82¯ESP", 6, TR_SLAY_ORC, 40},     
+       {TR_ESP_TROLL, "トロルESP", 6, TR_SLAY_TROLL, 40},   
+       {TR_ESP_GIANT, "巨人ESP", 6, TR_SLAY_GIANT, 40},       
+       {TR_ESP_DRAGON, "ESP", 6, TR_SLAY_DRAGON, 40},
+       {TR_ESP_HUMAN, "人間ESP", 6, TR_SLAY_HUMAN, 40},
+
+       {ESSENCE_ATTACK, "攻撃", 10, TR_ES_ATTACK, 30},
+       {ESSENCE_AC, "防御", 10, TR_ES_AC, 15},
+       {ESSENCE_TMP_RES_ACID, "酸耐性発動", 7, TR_RES_ACID, 50},
+       {ESSENCE_TMP_RES_ELEC, "電撃耐性発動", 7, TR_RES_ELEC, 50},
+       {ESSENCE_TMP_RES_FIRE, "火炎耐性発動", 7, TR_RES_FIRE, 50},
+       {ESSENCE_TMP_RES_COLD, "冷気耐性発動", 7, TR_RES_COLD, 50},
+       {ESSENCE_SH_FIRE, "火炎オーラ", 7, -1, 50},
+       {ESSENCE_SH_ELEC, "電撃オーラ", 7, -1, 50},
+       {ESSENCE_SH_COLD, "冷気オーラ", 7, -1, 50},
+       {ESSENCE_RESISTANCE, "全耐性", 2, -1, 150},
+       {ESSENCE_SUSTAIN, "装備保持", 10, -1, 10},
+       {ESSENCE_SLAY_GLOVE, "殺戮の小手", 1, TR_ES_ATTACK, 200},
 
        {-1, NULL, 0, -1, 0}
 };
@@ -7517,7 +7397,7 @@ static essence_type essence_info[] =
        {TR_IM_COLD, "cold immunity", 2, TR_IM_ACID, 20},
        {TR_REFLECT, "reflection", 2, TR_REFLECT, 20},
        {TR_FREE_ACT, "free action", 3, TR_FREE_ACT, 20},
-       {TR_HOLD_LIFE, "hold life", 3, TR_HOLD_LIFE, 20},
+       {TR_HOLD_EXP, "hold experience", 3, TR_HOLD_EXP, 20},
        {TR_RES_ACID, "resistance to acid", 2, TR_RES_ACID, 15},
        {TR_RES_ELEC, "resistance to electric", 2, TR_RES_ELEC, 15},
        {TR_RES_FIRE, "resistance to fire", 2, TR_RES_FIRE, 15},
@@ -7595,45 +7475,45 @@ static essence_type essence_info[] =
 #endif
 
 
-/*
- *  Essense names for Weapon smith
+/*!
+ * エッセンス名テーブル / Essense names for Weapon smith
  */
 #ifdef JP
 cptr essence_name[] = 
 {
-       "ÏÓÎÏ",
-       "ÃÎǽ",
-       "¸­¤µ",
-       "´ïÍѤµ",
-       "Âѵ×ÎÏ",
-       "Ì¥ÎÏ",
-       "ËâÎÏ»ÙÇÛ",
+       "腕力",
+       "ç\9f¥è\83½",
+       "賢さ",
+       "器用さ",
+       "耐久力",
+       "魅力",
+       "魔力支配",
        "",
-       "±£Ì©",
-       "õº÷",
-       "ÀÖ³°Àþ»ëÎÏ",
-       "ºÎ·¡",
-       "¥¹¥Ô¡¼¥É",
-       "Äɲù¶·â",
-       "¥«¥ª¥¹¹¶·â",
-       "µÛ·ì¹¶·â",
-       "ưʪÇÜÂÇ",
-       "¼Ù°­ÇÜÂÇ",
-       "ÉÔ»àÇÜÂÇ",
-       "°­ËâÇÜÂÇ",
-       "¥ª¡¼¥¯ÇÜÂÇ",
-       "¥È¥í¥ëÇÜÂÇ",
-       "µð¿ÍÇÜÂÇ",
-       "εÇÜÂÇ",
+       "隠密",
+       "探索",
+       "赤外線視力",
+       "採掘",
+       "スピード",
+       "追加攻撃",
+       "カオス攻撃",
+       "吸血攻撃",
+       "動物倍打",
+       "邪悪倍打",
+       "不死倍打",
+       "悪魔倍打",
+       "オーク倍打",
+       "トロル倍打",
+       "巨人倍打",
+       "竜倍打",
        "",
        "",
-       "ÃÏ¿Ì",
-       "ÆÇ»¦",
-       "Íϲò",
-       "ÅÅ·â",
-       "¾Æ´þ",
-       "Åà·ë",
-       "ǽÎÏ°Ý»ý",
+       "地震",
+       "毒殺",
+       "溶解",
+       "電撃",
+       "焼棄",
+       "凍結",
+       "能力維持",
        "",
        "",
        "",
@@ -7641,48 +7521,48 @@ cptr essence_name[] =
        "",
        "",
        "",
-       "ÌȱÖ",
+       "免疫",
        "",
        "",
        "",
        "",
-       "È¿¼Í",
-       "ËãáãÃΤ餺",
-       "À¸Ì¿ÎÏ°Ý»ý",
-       "ÂÑ»À",
-       "ÂÑÅÅ·â",
-       "ÂѲбê",
-       "ÂÑÎ䵤",
-       "ÂÑÆÇ",
-       "ÂѶ²ÉÝ",
-       "ÂÑÁ®¸÷",
-       "ÂѰŹõ",
-       "ÂÑÌÕÌÜ",
-       "ÂѺ®Íð",
-       "Âѹ첻",
-       "ÂÑÇËÊÒ",
-       "ÂÑÃϹö",
-       "ÂÑ°ø²Ìº®Íð",
-       "ÂÑ¥«¥ª¥¹",
-       "ÂÑÎô²½",
+       "反射",
+       "麻痺知らず",
+       "経験値維持",
+       "耐酸",
+       "耐電撃",
+       "耐火炎",
+       "耐冷気",
+       "耐毒",
+       "耐恐怖",
+       "耐閃光",
+       "耐暗黒",
+       "耐盲目",
+       "耐混乱",
+       "耐轟音",
+       "耐破片",
+       "耐地獄",
+       "耐因果混乱",
+       "è\80\90ã\82«ã\82ªã\82¹",
+       "耐劣化",
        "",
        "",
-       "¿Í´ÖÇÜÂÇ",
+       "人間倍打",
        "",
        "",
-       "È¿ËâË¡",
+       "反魔法",
        "",
        "",
-       "·Ù¹ð",
+       "警告",
        "",
        "",
        "",
-       "ÉâÍ·",
-       "±Êµ×¸÷¸»",
-       "²Ä»ëÆ©ÌÀ",
-       "¥Æ¥ì¥Ñ¥·¡¼",
-       "Ãپò½",
-       "µÞ®²óÉü",
+       "浮遊",
+       "永久光源",
+       "可視透明",
+       "ã\83\86ã\83¬ã\83\91ã\82·ã\83¼",
+       "遅消化",
+       "急速回復",
        "",
        "",
        "",
@@ -7691,18 +7571,18 @@ cptr essence_name[] =
        "",
        "",
        "",
-       "¥Æ¥ì¥Ý¡¼¥È",
+       "テレポート",
        "",
        "",
-       "¹¶·â",
-       "Ëɸæ",
+       "攻撃",
+       "防御",
 
        NULL
 };
 
 #else
 
-static cptr essence_name[] = 
+cptr essence_name[] = 
 {
        "strength",
        "intelligen.",
@@ -7751,7 +7631,7 @@ static cptr essence_name[] =
        "",
        "reflection",
        "free action",
-       "hold life",
+       "hold exp",
        "res. acid",
        "res. elec.",
        "res. fire",
@@ -7804,7 +7684,10 @@ static cptr essence_name[] =
 };
 #endif
 
-
+/*!
+ * @brief 所持しているエッセンス一覧を表示する
+ * @return なし
+ */
 static void display_essence(void)
 {
        int i, num = 0;
@@ -7814,38 +7697,39 @@ static void display_essence(void)
        {
                prt("",i,0);
        }
-#ifdef JP
-       prt("¥¨¥Ã¥»¥ó¥¹   ¸Ä¿ô     ¥¨¥Ã¥»¥ó¥¹   ¸Ä¿ô     ¥¨¥Ã¥»¥ó¥¹   ¸Ä¿ô", 1, 8);
-#else
-       prt("Essence      Num      Essence      Num      Essence      Num ", 1, 8);
-#endif
+       prt(_("エッセンス   個数     エッセンス   個数     エッセンス   個数", 
+                 "Essence      Num      Essence      Num      Essence      Num "), 1, 8);
        for (i = 0; essence_name[i]; i++)
        {
                if (!essence_name[i][0]) continue;
                prt(format("%-11s %5d", essence_name[i], p_ptr->magic_num1[i]), 2+num%21, 8+num/21*22);
                num++;
        }
-#ifdef JP
-       prt("¸½ºß½ê»ý¤·¤Æ¤¤¤ë¥¨¥Ã¥»¥ó¥¹", 0, 0);
-#else
-       prt("List of all essences you have.", 0, 0);
-#endif
+       prt(_("現在所持しているエッセンス", "List of all essences you have."), 0, 0);
        (void)inkey();
        screen_load();
        return;
 }
 
+/*!
+ * @brief エッセンスの抽出処理
+ * @return なし
+ */
 static void drain_essence(void)
 {
        int drain_value[sizeof(p_ptr->magic_num1) / sizeof(s32b)];
-       int i, item;
+       int i;
+       OBJECT_IDX item;
        int dec = 4;
        bool observe = FALSE;
-       int old_ds, old_dd, old_to_h, old_to_d, old_ac, old_to_a, old_pval, old_name2, old_timeout;
+       int old_ds, old_dd, old_to_h, old_to_d, old_ac, old_to_a, old_pval, old_name2;
+       TIME_EFFECT old_timeout;
        u32b old_flgs[TR_FLAG_SIZE], new_flgs[TR_FLAG_SIZE];
        object_type *o_ptr;
-       cptr            q, s;
-       byte iy, ix, marked, number;
+       cptr q, s;
+       POSITION iy, ix;
+       byte_hack marked;
+       ITEM_NUMBER number;
        s16b next_o_idx, weight;
 
        for (i = 0; i < sizeof(drain_value) / sizeof(int); i++)
@@ -7855,13 +7739,8 @@ static void drain_essence(void)
        item_tester_no_ryoute = TRUE;
 
        /* Get an item */
-#ifdef JP
-       q = "¤É¤Î¥¢¥¤¥Æ¥à¤«¤éÃê½Ð¤·¤Þ¤¹¤«¡©";
-       s = "Ãê½Ð¤Ç¤­¤ë¥¢¥¤¥Æ¥à¤¬¤¢¤ê¤Þ¤»¤ó¡£";
-#else
-       q = "Extract from which item? ";
-       s = "You have nothing you can extract from.";
-#endif
+       q = _("どのアイテムから抽出しますか?", "Extract from which item? ");
+       s = _("抽出できるアイテムがありません。", "You have nothing you can extract from.");
 
        if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
 
@@ -7881,14 +7760,10 @@ static void drain_essence(void)
        {
                char o_name[MAX_NLEN];
                object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
-#ifdef JP
-               if (!get_check(format("ËÜÅö¤Ë%s¤«¤éÃê½Ð¤·¤Æ¤è¤í¤·¤¤¤Ç¤¹¤«¡©", o_name))) return;
-#else
-               if (!get_check(format("Really extract from %s? ", o_name))) return;
-#endif
+               if (!get_check(format(_("本当に%sから抽出してよろしいですか?", "Really extract from %s? "), o_name))) return;
        }
 
-       energy_use = 100;
+       p_ptr->energy_use = 100;
 
        object_flags(o_ptr, old_flgs);
        if (have_flag(old_flgs, TR_KILL_DRAGON)) add_flag(old_flgs, TR_SLAY_DRAGON);
@@ -7955,7 +7830,7 @@ static void drain_essence(void)
        for (i = 0; essence_info[i].add_name; i++)
        {
                essence_type *es_ptr = &essence_info[i];
-               int pval = 0;
+               PARAMETER_VALUE pval = 0;
 
                if (es_ptr->add < TR_FLAG_MAX && is_pval_flag(es_ptr->add) && old_pval)
                        pval = (have_flag(new_flgs, es_ptr->add)) ? old_pval - o_ptr->pval : old_pval;
@@ -8051,11 +7926,11 @@ static void drain_essence(void)
        }
        if (!observe)
        {
-               msg_print(_("¥¨¥Ã¥»¥ó¥¹¤ÏÃê½Ð¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", "You were not able to extract any essence."));
+               msg_print(_("エッセンスは抽出できませんでした。", "You were not able to extract any essence."));
        }
        else
        {
-               msg_print(_("Ãê½Ð¤·¤¿¥¨¥Ã¥»¥ó¥¹:", "Extracted essences:"));
+               msg_print(_("æ\8a½å\87ºã\81\97ã\81\9fã\82¨ã\83\83ã\82»ã\83³ã\82¹:", "Extracted essences:"));
 
                for (i = 0; essence_name[i]; i++)
                {
@@ -8065,7 +7940,7 @@ static void drain_essence(void)
                        p_ptr->magic_num1[i] += drain_value[i];
                        p_ptr->magic_num1[i] = MIN(20000, p_ptr->magic_num1[i]);
                        msg_print(NULL);
-                       msg_format("%s...%d%s", essence_name[i], drain_value[i], _("¡£", ". "));
+                       msg_format("%s...%d%s", essence_name[i], drain_value[i], _("", ". "));
                }
        }
 
@@ -8079,23 +7954,25 @@ static void drain_essence(void)
        p_ptr->window |= (PW_INVEN);
 }
 
-
-
+/*!
+ * @brief 付加するエッセンスの大別を選択する
+ * @return 選んだエッセンスの大別ID
+ */
 static int choose_essence(void)
 {
-       int mode = 0;
+       COMMAND_CODE mode = 0;
        char choice;
-       int menu_line = (use_menu ? 1 : 0);
+       COMMAND_CODE menu_line = (use_menu ? 1 : 0);
 
 #ifdef JP
        cptr menu_name[] = {
-               "Éð´ï°À­", 
-               "ÂÑÀ­",
-               "ǽÎÏ",
-               "¿ôÃÍ",
-               "¥¹¥ì¥¤",
+               "武器属性", 
+               "耐性",
+               "能力",
+               "数値",
+               "ã\82¹ã\83¬ã\82¤",
                "ESP",
-               "¤½¤Î¾"
+               "その他"
        };
 #else
        cptr menu_name[] = {
@@ -8125,8 +8002,8 @@ static int choose_essence(void)
                        int i;
                        for (i = 0; i < mode_max; i++)
 #ifdef JP
-                               prt(format(" %s %s", (menu_line == 1+i) ? "¡Õ" : "  ", menu_name[i]), 2 + i, 14);
-                       prt("¤É¤Î¼ïÎà¤Î¥¨¥Ã¥»¥ó¥¹Éղäò¹Ô¤¤¤Þ¤¹¤«¡©", 0, 0);
+                               prt(format(" %s %s", (menu_line == 1+i) ? "" : "  ", menu_name[i]), 2 + i, 14);
+                       prt("どの種類のエッセンス付加を行いますか?", 0, 0);
 #else
                                prt(format(" %s %s", (menu_line == 1+i) ? "> " : "  ", menu_name[i]), 2 + i, 14);
                        prt("Choose from menu.", 0, 0);
@@ -8171,11 +8048,7 @@ static int choose_essence(void)
                        for (i = 0; i < mode_max; i++)
                                prt(format("  %c) %s", 'a' + i, menu_name[i]), 2 + i, 14);
 
-#ifdef JP
-                       if (!get_com("²¿¤òÉղä·¤Þ¤¹¤«:", &choice, TRUE))
-#else
-                       if (!get_com("Command :", &choice, TRUE))
-#endif
+                       if (!get_com(_("何を付加しますか:", "Command :"), &choice, TRUE))
                        {
                                screen_load();
                                return 0;
@@ -8195,10 +8068,16 @@ static int choose_essence(void)
        return mode;
 }
 
+/*!
+ * @brief エッセンスを実際に付加する
+ * @param mode エッセンスの大別ID
+ * @return なし
+ */
 static void add_essence(int mode)
 {
-       int item, max_num = 0;
-       int i;
+       OBJECT_IDX item;
+       int max_num = 0;
+       COMMAND_CODE i;
        bool flag,redraw;
        char choice;
        cptr            q, s;
@@ -8233,11 +8112,7 @@ static void add_essence(int mode)
        redraw = FALSE;
 
        /* Build a prompt */
-#ifdef JP
-       (void) strnfmt(out_val, 78, "('*'¤Ç°ìÍ÷, ESC¤ÇÃæÃÇ) ¤É¤ÎǽÎϤòÉղä·¤Þ¤¹¤«¡©");
-#else
-       (void)strnfmt(out_val, 78, "(*=List, ESC=exit) Add which ability? ");
-#endif
+       (void) strnfmt(out_val, 78, _("('*'で一覧, ESCで中断) どの能力を付加しますか?", "(*=List, ESC=exit) Add which ability? "));
        if (use_menu) screen_save();
 
        /* Get a spell from the user */
@@ -8326,7 +8201,7 @@ static void add_essence(int mode)
 
                                /* Print header(s) */
 #ifdef JP
-                               prt(format("   %-43s %6s/%s", "ǽÎÏ(ɬÍ×¥¨¥Ã¥»¥ó¥¹)", "ɬÍ׿ô", "½ê»ý¿ô"), 1, x);
+                               prt(format("   %-43s %6s/%s", "能力(必要エッセンス)", "必要数", "所持数"), 1, x);
 
 #else
                                prt(format("   %-43s %6s/%s", "Ability (needed essence)", "Needs", "Possess"), 1, x);
@@ -8339,11 +8214,7 @@ static void add_essence(int mode)
                                        if (use_menu)
                                        {
                                                if (ctr == (menu_line-1))
-#ifdef JP
-                                                       strcpy(dummy, "¡Õ ");
-#else
-                                                       strcpy(dummy, ">  ");
-#endif
+                                                       strcpy(dummy, _("》 ", ">  "));
                                                else strcpy(dummy, "   ");
                                                
                                        }
@@ -8368,49 +8239,29 @@ static void add_essence(int mode)
                                                switch(es_ptr->add)
                                                {
                                                case ESSENCE_SH_FIRE:
-#ifdef JP
-                                                       strcat(dummy, "(¾Æ´þ+ÂѲбê)");
-#else
-                                                       strcat(dummy, "(brand fire + res.fire)");
-#endif
+                                                       strcat(dummy, _("(焼棄+耐火炎)", "(brand fire + res.fire)"));
                                                        if (p_ptr->magic_num1[TR_BRAND_FIRE] < es_ptr->value) able[ctr] = FALSE;
                                                        if (p_ptr->magic_num1[TR_RES_FIRE] < es_ptr->value) able[ctr] = FALSE;
                                                        break;
                                                case ESSENCE_SH_ELEC:
-#ifdef JP
-                                                       strcat(dummy, "(ÅÅ·â+ÂÑÅÅ·â)");
-#else
-                                                       strcat(dummy, "(brand elec. + res. elec.)");
-#endif
+                                                       strcat(dummy, _("(電撃+耐電撃)", "(brand elec. + res. elec.)"));
                                                        if (p_ptr->magic_num1[TR_BRAND_ELEC] < es_ptr->value) able[ctr] = FALSE;
                                                        if (p_ptr->magic_num1[TR_RES_ELEC] < es_ptr->value) able[ctr] = FALSE;
                                                        break;
                                                case ESSENCE_SH_COLD:
-#ifdef JP
-                                                       strcat(dummy, "(Åà·ë+ÂÑÎ䵤)");
-#else
-                                                       strcat(dummy, "(brand cold + res. cold)");
-#endif
+                                                       strcat(dummy, _("(凍結+耐冷気)", "(brand cold + res. cold)"));
                                                        if (p_ptr->magic_num1[TR_BRAND_COLD] < es_ptr->value) able[ctr] = FALSE;
                                                        if (p_ptr->magic_num1[TR_RES_COLD] < es_ptr->value) able[ctr] = FALSE;
                                                        break;
                                                case ESSENCE_RESISTANCE:
-#ifdef JP
-                                                       strcat(dummy, "(ÂѲбê+ÂÑÎ䵤+ÂÑÅÅ·â+ÂÑ»À)");
-#else
-                                                       strcat(dummy, "(r.fire+r.cold+r.elec+r.acid)");
-#endif
+                                                       strcat(dummy, _("(耐火炎+耐冷気+耐電撃+耐酸)", "(r.fire+r.cold+r.elec+r.acid)"));
                                                        if (p_ptr->magic_num1[TR_RES_FIRE] < es_ptr->value) able[ctr] = FALSE;
                                                        if (p_ptr->magic_num1[TR_RES_COLD] < es_ptr->value) able[ctr] = FALSE;
                                                        if (p_ptr->magic_num1[TR_RES_ELEC] < es_ptr->value) able[ctr] = FALSE;
                                                        if (p_ptr->magic_num1[TR_RES_ACID] < es_ptr->value) able[ctr] = FALSE;
                                                        break;
                                                case ESSENCE_SUSTAIN:
-#ifdef JP
-                                                       strcat(dummy, "(ÂѲбê+ÂÑÎ䵤+ÂÑÅÅ·â+ÂÑ»À)");
-#else
-                                                       strcat(dummy, "(r.fire+r.cold+r.elec+r.acid)");
-#endif
+                                                       strcat(dummy, _("(耐火炎+耐冷気+耐電撃+耐酸)", "(r.fire+r.cold+r.elec+r.acid)"));
                                                        if (p_ptr->magic_num1[TR_RES_FIRE] < es_ptr->value) able[ctr] = FALSE;
                                                        if (p_ptr->magic_num1[TR_RES_COLD] < es_ptr->value) able[ctr] = FALSE;
                                                        if (p_ptr->magic_num1[TR_RES_ELEC] < es_ptr->value) able[ctr] = FALSE;
@@ -8473,11 +8324,7 @@ static void add_essence(int mode)
                        char tmp_val[160];
 
                        /* Prompt */
-#ifdef JP
-                       (void) strnfmt(tmp_val, 78, "%s¤òÉղä·¤Þ¤¹¤«¡© ", essence_info[num[i]].add_name);
-#else
-                       (void) strnfmt(tmp_val, 78, "Add the abilitiy of %s? ", essence_info[num[i]].add_name);
-#endif
+                       (void) strnfmt(tmp_val, 78, _("%sを付加しますか? ", "Add the abilitiy of %s? "), essence_info[num[i]].add_name);
 
                        /* Belay that order */
                        if (!get_check(tmp_val)) continue;
@@ -8512,13 +8359,8 @@ static void add_essence(int mode)
        item_tester_no_ryoute = TRUE;
 
        /* Get an item */
-#ifdef JP
-       q = "¤É¤Î¥¢¥¤¥Æ¥à¤ò²þÎɤ·¤Þ¤¹¤«¡©";
-       s = "²þÎɤǤ­¤ë¥¢¥¤¥Æ¥à¤¬¤¢¤ê¤Þ¤»¤ó¡£";
-#else
-       q = "Improve which item? ";
-       s = "You have nothing to improve.";
-#endif
+       q = _("どのアイテムを改良しますか?", "Improve which item? ");
+       s = _("改良できるアイテムがありません。", "You have nothing to improve.");
 
        if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
 
@@ -8536,11 +8378,7 @@ static void add_essence(int mode)
 
        if ((mode != 10) && (object_is_artifact(o_ptr) || object_is_smith(o_ptr)))
        {
-#ifdef JP
-               msg_print("¤½¤Î¥¢¥¤¥Æ¥à¤Ï¤³¤ì°Ê¾å²þÎɤǤ­¤Ê¤¤¡£");
-#else
-               msg_print("This item is no more able to be improved.");
-#endif
+               msg_print(_("そのアイテムはこれ以上改良できない。", "This item is no more able to be improved."));
                return;
        }
 
@@ -8551,97 +8389,60 @@ static void add_essence(int mode)
        if (o_ptr->number > 1)
        {
                use_essence *= o_ptr->number;
-#ifdef JP
-               msg_format("%d¸Ä¤¢¤ë¤Î¤Ç¥¨¥Ã¥»¥ó¥¹¤Ï%dɬÍפǤ¹¡£", o_ptr->number, use_essence);
-#else
-               msg_format("It will take %d essences.",use_essence);
-#endif
-
+               msg_format(_("%d個あるのでエッセンスは%d必要です。", "It will take %d essences."), o_ptr->number, use_essence);
        }
 
        if (es_ptr->essence != -1)
        {
                if (p_ptr->magic_num1[es_ptr->essence] < use_essence)
                {
-#ifdef JP
-                       msg_print("¥¨¥Ã¥»¥ó¥¹¤¬Â­¤ê¤Ê¤¤¡£");
-#else
-                       msg_print("You don't have enough essences.");
-#endif
+                       msg_print(_("エッセンスが足りない。", "You don't have enough essences."));
                        return;
                }
                if (is_pval_flag(es_ptr->add))
                {
                        if (o_ptr->pval < 0)
                        {
-#ifdef JP
-                               msg_print("¤³¤Î¥¢¥¤¥Æ¥à¤ÎǽÎϽ¤Àµ¤ò¶¯²½¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£");
-#else
-                               msg_print("You cannot increase magic number of this item.");
-#endif
+                               msg_print(_("このアイテムの能力修正を強化することはできない。", "You cannot increase magic number of this item."));
                                return;
                        }
                        else if (es_ptr->add == TR_BLOWS)
                        {
                                if (o_ptr->pval > 1)
                                {
-#ifdef JP
-                                       if (!get_check("½¤ÀµÃͤÏ1¤Ë¤Ê¤ê¤Þ¤¹¡£¤è¤í¤·¤¤¤Ç¤¹¤«¡©")) return;
-#else
-                                       if (!get_check("The magic number of this weapon will become 1. Are you sure? ")) return;
-#endif
+                                       if (!get_check(_("修正値は1になります。よろしいですか?", "The magic number of this weapon will become 1. Are you sure? "))) return;
                                }
 
                                o_ptr->pval = 1;
-#ifdef JP
-                               msg_format("¥¨¥Ã¥»¥ó¥¹¤ò%d¸Ä»ÈÍѤ·¤Þ¤¹¡£", use_essence);
-#else
-                               msg_format("It will take %d essences.", use_essence);
-#endif
+                               msg_format(_("エッセンスを%d個使用します。", "It will take %d essences."), use_essence);
                        }
                        else if (o_ptr->pval > 0)
                        {
                                use_essence *= o_ptr->pval;
-#ifdef JP
-                               msg_format("¥¨¥Ã¥»¥ó¥¹¤ò%d¸Ä»ÈÍѤ·¤Þ¤¹¡£", use_essence);
-#else
-                               msg_format("It will take %d essences.", use_essence);
-#endif
+                               msg_format(_("エッセンスを%d個使用します。", "It will take %d essences."), use_essence);
                        }
                        else
                        {
                                char tmp[80];
                                char tmp_val[160];
-                               int pval;
-                               int limit = MIN(5, p_ptr->magic_num1[es_ptr->essence]/es_ptr->value);
+                               PARAMETER_VALUE pval;
+                               PARAMETER_VALUE limit = MIN(5, p_ptr->magic_num1[es_ptr->essence]/es_ptr->value);
 
-#ifdef JP
-                               sprintf(tmp, "¤¤¤¯¤ÄÉղä·¤Þ¤¹¤«¡© (1-%d): ", limit);
-#else
-                               sprintf(tmp, "Enchant how many? (1-%d): ", limit);
-#endif
+                               sprintf(tmp, _("いくつ付加しますか? (1-%d): ", "Enchant how many? (1-%d): "), limit);
                                strcpy(tmp_val, "1");
 
                                if (!get_string(tmp, tmp_val, 1)) return;
-                               pval = atoi(tmp_val);
+                               pval = (PARAMETER_VALUE)atoi(tmp_val);
                                if (pval > limit) pval = limit;
                                else if (pval < 1) pval = 1;
                                o_ptr->pval += pval;
                                use_essence *= pval;
-#ifdef JP
-                               msg_format("¥¨¥Ã¥»¥ó¥¹¤ò%d¸Ä»ÈÍѤ·¤Þ¤¹¡£", use_essence);
-#else
-                               msg_format("It will take %d essences.", use_essence);
-#endif
+                               msg_format(_("エッセンスを%d個使用します。", "It will take %d essences."), use_essence);
                        }
 
                        if (p_ptr->magic_num1[es_ptr->essence] < use_essence)
                        {
-#ifdef JP
-                               msg_print("¥¨¥Ã¥»¥ó¥¹¤¬Â­¤ê¤Ê¤¤¡£");
-#else
-                               msg_print("You don't have enough essences.");
-#endif
+                               msg_print(_("エッセンスが足りない。", "You don't have enough essences."));
                                return;
                        }
                }
@@ -8649,30 +8450,19 @@ static void add_essence(int mode)
                {
                        char tmp_val[160];
                        int val;
-                       int get_to_h, get_to_d;
+                       HIT_PROB get_to_h;
+                       HIT_POINT get_to_d;
 
                        strcpy(tmp_val, "1");
-#ifdef JP
-                       if (!get_string(format("¤¤¤¯¤ÄÉղä·¤Þ¤¹¤«¡© (1-%d):", p_ptr->lev/7+3), tmp_val, 2)) return;
-#else
-                       if (!get_string(format("Enchant how many? (1-%d):", p_ptr->lev/7+3), tmp_val, 2)) return;
-#endif
+                       if (!get_string(format(_("いくつ付加しますか? (1-%d):", "Enchant how many? (1-%d):"), p_ptr->lev/7+3), tmp_val, 2)) return;
                        val = atoi(tmp_val);
                        if (val > p_ptr->lev/7+3) val = p_ptr->lev/7+3;
                        else if (val < 1) val = 1;
                        use_essence *= val;
-#ifdef JP
-                       msg_format("¥¨¥Ã¥»¥ó¥¹¤ò%d¸Ä»ÈÍѤ·¤Þ¤¹¡£", use_essence);
-#else
-                       msg_format("It will take %d essences.", use_essence);
-#endif
+                       msg_format(_("エッセンスを%d個使用します。", "It will take %d essences."), use_essence);
                        if (p_ptr->magic_num1[es_ptr->essence] < use_essence)
                        {
-#ifdef JP
-                               msg_print("¥¨¥Ã¥»¥ó¥¹¤¬Â­¤ê¤Ê¤¤¡£");
-#else
-                               msg_print("You don't have enough essences.");
-#endif
+                               msg_print(_("エッセンスが足りない。", "You don't have enough essences."));
                                return;
                        }
                        get_to_h = ((val+1)/2+randint0(val/2+1));
@@ -8686,12 +8476,8 @@ static void add_essence(int mode)
                {
                        if ((o_ptr->to_h >= p_ptr->lev/5+5) && (o_ptr->to_d >= p_ptr->lev/5+5))
                        {
-#ifdef JP
-                               msg_print("²þÎɤ˼ºÇÔ¤·¤¿¡£");
-#else
-                               msg_print("You failed to enchant.");
-#endif
-                               energy_use = 100;
+                               msg_print(_("改良に失敗した。", "You failed to enchant."));
+                               p_ptr->energy_use = 100;
                                return;
                        }
                        else
@@ -8704,12 +8490,8 @@ static void add_essence(int mode)
                {
                        if (o_ptr->to_a >= p_ptr->lev/5+5)
                        {
-#ifdef JP
-                               msg_print("²þÎɤ˼ºÇÔ¤·¤¿¡£");
-#else
-                               msg_print("You failed to enchant.");
-#endif
-                               energy_use = 100;
+                               msg_print(_("改良に失敗した。", "You failed to enchant."));
+                               p_ptr->energy_use = 100;
                                return;
                        }
                        else
@@ -8770,11 +8552,7 @@ static void add_essence(int mode)
                }
                if (!success)
                {
-#ifdef JP
-                       msg_print("¥¨¥Ã¥»¥ó¥¹¤¬Â­¤ê¤Ê¤¤¡£");
-#else
-                       msg_print("You don't have enough essences.");
-#endif
+                       msg_print(_("エッセンスが足りない。", "You don't have enough essences."));
                        return;
                }
                if (es_ptr->add == ESSENCE_SUSTAIN)
@@ -8790,10 +8568,10 @@ static void add_essence(int mode)
                }
        }
 
-       energy_use = 100;
+       p_ptr->energy_use = 100;
 
 #ifdef JP
-       msg_format("%s¤Ë%s¤ÎǽÎϤòÉղä·¤Þ¤·¤¿¡£", o_name, es_ptr->add_name);
+       msg_format("%sに%sの能力を付加しました。", o_name, es_ptr->add_name);
 #else
        msg_format("You have added ability of %s to %s.", es_ptr->add_name, o_name);
 #endif
@@ -8805,25 +8583,23 @@ static void add_essence(int mode)
        p_ptr->window |= (PW_INVEN);
 }
 
-
+/*!
+ * @brief エッセンスを消去する
+ * @return なし
+ */
 static void erase_essence(void)
 {
-       int item;
+       OBJECT_IDX item;
        cptr q, s;
        object_type *o_ptr;
        char o_name[MAX_NLEN];
-       u32b flgs[TR_FLAG_SIZE];
+       BIT_FLAGS flgs[TR_FLAG_SIZE];
 
        item_tester_hook = object_is_smith;
 
        /* Get an item */
-#ifdef JP
-       q = "¤É¤Î¥¢¥¤¥Æ¥à¤Î¥¨¥Ã¥»¥ó¥¹¤ò¾Ãµî¤·¤Þ¤¹¤«¡©";
-       s = "¥¨¥Ã¥»¥ó¥¹¤òÉղä·¤¿¥¢¥¤¥Æ¥à¤¬¤¢¤ê¤Þ¤»¤ó¡£";
-#else
-       q = "Remove from which item? ";
-       s = "You have nothing to remove essence.";
-#endif
+       q = _("どのアイテムのエッセンスを消去しますか?", "Remove from which item? ");
+       s = _("エッセンスを付加したアイテムがありません。", "You have nothing to remove essence.");
 
        if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
 
@@ -8840,13 +8616,9 @@ static void erase_essence(void)
        }
 
        object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
-#ifdef JP
-       if (!get_check(format("¤è¤í¤·¤¤¤Ç¤¹¤«¡© [%s]", o_name))) return;
-#else
-       if (!get_check(format("Are you sure? [%s]", o_name))) return;
-#endif
+       if (!get_check(format(_("よろしいですか? [%s]", "Are you sure? [%s]"), o_name))) return;
 
-       energy_use = 100;
+       p_ptr->energy_use = 100;
 
        if (o_ptr->xtra3 == 1+ESSENCE_SLAY_GLOVE)
        {
@@ -8859,11 +8631,7 @@ static void erase_essence(void)
        o_ptr->xtra3 = 0;
        object_flags(o_ptr, flgs);
        if (!(have_pval_flags(flgs))) o_ptr->pval = 0;
-#ifdef JP
-       msg_print("¥¨¥Ã¥»¥ó¥¹¤ò¼è¤êµî¤Ã¤¿¡£");
-#else
-       msg_print("You removed all essence you have added.");
-#endif
+       msg_print(_("エッセンスを取り去った。", "You removed all essence you have added."));
 
        /* Combine the pack */
        p_ptr->notice |= (PN_COMBINE | PN_REORDER);
@@ -8872,9 +8640,14 @@ static void erase_essence(void)
        p_ptr->window |= (PW_INVEN);
 }
 
+/*!
+ * @brief 鍛冶コマンドのメインルーチン
+ * @param only_browse TRUEならばエッセンス一覧の表示のみを行う
+ * @return なし
+ */
 void do_cmd_kaji(bool only_browse)
 {
-       int mode = 0;
+       IDX mode = 0;
        char choice;
 
        int menu_line = (use_menu ? 1 : 0);
@@ -8883,32 +8656,17 @@ void do_cmd_kaji(bool only_browse)
        {
                if (p_ptr->confused)
                {
-#ifdef JP
-                       msg_print("º®Í𤷤Ƥ¤¤Æºî¶È¤Ç¤­¤Ê¤¤¡ª");
-#else
-                       msg_print("You are too confused!");
-#endif
-
+                       msg_print(_("混乱していて作業できない!", "You are too confused!"));
                        return;
                }
                if (p_ptr->blind)
                {
-#ifdef JP
-                       msg_print("Ìܤ¬¸«¤¨¤Ê¤¯¤Æºî¶È¤Ç¤­¤Ê¤¤¡ª");
-#else
-                       msg_print("You are blind!");
-#endif
-
+                       msg_print(_("目が見えなくて作業できない!", "You are blind!"));
                        return;
                }
                if (p_ptr->image)
                {
-#ifdef JP
-                       msg_print("¤¦¤Þ¤¯¸«¤¨¤Ê¤¯¤Æºî¶È¤Ç¤­¤Ê¤¤¡ª");
-#else
-                       msg_print("You are hallucinating!");
-#endif
-
+                       msg_print(_("うまく見えなくて作業できない!", "You are hallucinating!"));
                        return;
                }
        }
@@ -8926,12 +8684,12 @@ void do_cmd_kaji(bool only_browse)
                while(!mode)
                {
 #ifdef JP
-                       prt(format(" %s ¥¨¥Ã¥»¥ó¥¹°ìÍ÷", (menu_line == 1) ? "¡Õ" : "  "), 2, 14);
-                       prt(format(" %s ¥¨¥Ã¥»¥ó¥¹Ãê½Ð", (menu_line == 2) ? "¡Õ" : "  "), 3, 14);
-                       prt(format(" %s ¥¨¥Ã¥»¥ó¥¹¾Ãµî", (menu_line == 3) ? "¡Õ" : "  "), 4, 14);
-                       prt(format(" %s ¥¨¥Ã¥»¥ó¥¹ÉÕ²Ã", (menu_line == 4) ? "¡Õ" : "  "), 5, 14);
-                       prt(format(" %s Éð´ï/Ëɶñ¶¯²½", (menu_line == 5) ? "¡Õ" : "  "), 6, 14);
-                       prt(format("¤É¤Î¼ïÎà¤Îµ»½Ñ¤ò%s¤Þ¤¹¤«¡©", only_browse ? "Ä´¤Ù" : "»È¤¤"), 0, 0);
+                       prt(format(" %s エッセンス一覧", (menu_line == 1) ? "》" : "  "), 2, 14);
+                       prt(format(" %s エッセンス抽出", (menu_line == 2) ? "》" : "  "), 3, 14);
+                       prt(format(" %s エッセンス消去", (menu_line == 3) ? "》" : "  "), 4, 14);
+                       prt(format(" %s エッセンス付加", (menu_line == 4) ? "》" : "  "), 5, 14);
+                       prt(format(" %s 武器/防具強化", (menu_line == 5) ? "》" : "  "), 6, 14);
+                       prt(format("どの種類の技術を%sますか?", only_browse ? "調べ" : "使い"), 0, 0);
 #else
                        prt(format(" %s List essences", (menu_line == 1) ? "> " : "  "), 2, 14);
                        prt(format(" %s Extract essence", (menu_line == 2) ? "> " : "  "), 3, 14);
@@ -8974,12 +8732,12 @@ void do_cmd_kaji(bool only_browse)
                while (!mode)
                {
 #ifdef JP
-                       prt("  a) ¥¨¥Ã¥»¥ó¥¹°ìÍ÷", 2, 14);
-                       prt("  b) ¥¨¥Ã¥»¥ó¥¹Ãê½Ð", 3, 14);
-                       prt("  c) ¥¨¥Ã¥»¥ó¥¹¾Ãµî", 4, 14);
-                       prt("  d) ¥¨¥Ã¥»¥ó¥¹ÉÕ²Ã", 5, 14);
-                       prt("  e) Éð´ï/Ëɶñ¶¯²½", 6, 14);
-                       if (!get_com(format("¤É¤ÎǽÎϤò%s¤Þ¤¹¤«:", only_browse ? "Ä´¤Ù" : "»È¤¤"), &choice, TRUE))
+                       prt("  a) エッセンス一覧", 2, 14);
+                       prt("  b) エッセンス抽出", 3, 14);
+                       prt("  c) エッセンス消去", 4, 14);
+                       prt("  d) エッセンス付加", 5, 14);
+                       prt("  e) 武器/防具強化", 6, 14);
+                       if (!get_com(format("どの能力を%sますか:", only_browse ? "調べ" : "使い"), &choice, TRUE))
 #else
                        prt("  a) List essences", 2, 14);
                        prt("  b) Extract essence", 3, 14);
@@ -9062,8 +8820,12 @@ void do_cmd_kaji(bool only_browse)
 }
 
 
-/*
+/*!
+ * @brief 投擲時たいまつに投げやすい/焼棄/アンデッドスレイの特別効果を返す。
  * Torches have special abilities when they are flaming.
+ * @param o_ptr 投擲するオブジェクトの構造体参照ポインタ
+ * @param flgs 特別に追加するフラグを返す参照ポインタ
+ * @return なし
  */
 void torch_flags(object_type *o_ptr, u32b *flgs)
 {
@@ -9078,6 +8840,14 @@ void torch_flags(object_type *o_ptr, u32b *flgs)
        }
 }
 
+/*!
+ * @brief 投擲時たいまつにダイスを与える。
+ * Torches have special abilities when they are flaming.
+ * @param o_ptr 投擲するオブジェクトの構造体参照ポインタ
+ * @param dd 特別なダイス数を返す参照ポインタ
+ * @param ds 特別なダイス面数を返す参照ポインタ
+ * @return なし
+ */
 void torch_dice(object_type *o_ptr, int *dd, int *ds)
 {
        if ((o_ptr->tval == TV_LITE) && (o_ptr->sval == SV_LITE_TORCH))
@@ -9090,6 +8860,12 @@ void torch_dice(object_type *o_ptr, int *dd, int *ds)
        }
 }
 
+/*!
+ * @brief 投擲時命中したたいまつの寿命を縮める。
+ * Torches have special abilities when they are flaming.
+ * @param o_ptr 投擲するオブジェクトの構造体参照ポインタ
+ * @return なし
+ */
 void torch_lost_fuel(object_type *o_ptr)
 {
        if ((o_ptr->tval == TV_LITE) && (o_ptr->sval == SV_LITE_TORCH))