OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Tue, 27 Nov 2018 14:29:15 +0000 (23:29 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 27 Nov 2018 14:29:15 +0000 (23:29 +0900)
src/autopick.c
src/cmd-item.c
src/cmd4.c
src/object2.c

index d120ba3..a1dce4d 100644 (file)
@@ -1636,7 +1636,6 @@ static void autopick_delayed_alter_aux(INVENTORY_IDX item)
                        delete_object_idx(0 - item);
                }
 
-               /* Print a message */
                msg_format(_("%sを自動破壊します。", "Auto-destroying %s."), o_name);
        }
 }
index 13843b0..bcf600e 100644 (file)
@@ -21,6 +21,7 @@
 #include "cmd-zaprod.h"
 #include "cmd-zapwand.h"
 
+#include "player-item.h"
 #include "object-hook.h"
 
 
@@ -1288,7 +1289,7 @@ static void do_cmd_refill_torch(void)
        q = _("どの松明で明かりを強めますか? ", "Refuel with which torch? ");
        s = _("他に松明がない。", "You have no extra torches.");
 
-       if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
+       if (get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
 
        /* Get the item (in the pack) */
        if (item >= 0)
index d7e068b..9bb566d 100644 (file)
@@ -5637,7 +5637,6 @@ static void do_cmd_knowledge_uniques(void)
        {
                monster_race *r_ptr = &r_info[who[k]];
 
-               /* Print a message */
                fprintf(fff, _("     %s (レベル%d)\n", "     %s (level %d)\n"), r_name + r_ptr->name, (int)r_ptr->level);
        }
 
@@ -6140,9 +6139,7 @@ static void do_cmd_knowledge_kill_count(void)
 
                        if (dead)
                        {
-                               /* Print a message */
-                               fprintf(fff, "     %s\n",
-                                   (r_name + r_ptr->name));
+                               fprintf(fff, "     %s\n", (r_name + r_ptr->name));
                                Total++;
                        }
                }
index 6f9106c..a478c29 100644 (file)
@@ -5641,14 +5641,12 @@ void inven_item_charges(INVENTORY_IDX item)
        /* Multiple charges */
        if (o_ptr->pval != 1)
        {
-               /* Print a message */
                msg_format("You have %d charges remaining.", o_ptr->pval);
        }
 
        /* Single charge */
        else
        {
-               /* Print a message */
                msg_format("You have %d charge remaining.", o_ptr->pval);
        }
 #endif
@@ -5669,7 +5667,6 @@ void inven_item_describe(INVENTORY_IDX item)
        /* Get a description */
        object_desc(o_name, o_ptr, 0);
 
-       /* Print a message */
 #ifdef JP
        /* "no more" の場合はこちらで表示する */
        if (o_ptr->number <= 0)
@@ -5689,7 +5686,7 @@ void inven_item_describe(INVENTORY_IDX item)
 }
 
 /*!
- * @brief ã\82¢ã\82¤ã\83\86ã\83 ã\81®残り所持数メッセージを表示する /
+ * @brief ã\82¢ã\82¤ã\83\86ã\83 ã\82\92å¢\97ã\82\84ã\81\97残り所持数メッセージを表示する /
  * Increase the "number" of an item in the inventory
  * @param item 所持数を増やしたいプレイヤーのアイテム所持スロット
  * @param num 増やしたい量
@@ -5834,14 +5831,12 @@ void floor_item_charges(INVENTORY_IDX item)
        /* Multiple charges */
        if (o_ptr->pval != 1)
        {
-               /* Print a message */
                msg_format("There are %d charges remaining.", o_ptr->pval);
        }
 
        /* Single charge */
        else
        {
-               /* Print a message */
                msg_format("There is %d charge remaining.", o_ptr->pval);
        }
 #endif
@@ -5862,7 +5857,6 @@ void floor_item_describe(INVENTORY_IDX item)
        /* Get a description */
        object_desc(o_name, o_ptr, 0);
 
-       /* Print a message */
 #ifdef JP
        /* "no more" の場合はこちらで表示を分ける */
        if (o_ptr->number <= 0)