OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authordeskull <deskull@users.sourceforge.jp>
Tue, 5 Mar 2019 14:29:15 +0000 (23:29 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 5 Mar 2019 14:29:15 +0000 (23:29 +0900)
src/cmd-item.c
src/spells3.c
src/store.c

index b575391..0f770c5 100644 (file)
@@ -594,14 +594,9 @@ void do_cmd_drop(void)
                return;
        }
 
-
-       /* See how many items */
        if (o_ptr->number > 1)
        {
-               /* Get a quantity */
                amt = get_quantity(NULL, o_ptr->number);
-
-               /* Allow user abort */
                if (amt <= 0) return;
        }
 
@@ -707,13 +702,9 @@ void do_cmd_destroy(void)
                } /* while (TRUE) */
        }
 
-       /* See how many items */
        if (o_ptr->number > 1)
        {
-               /* Get a quantity */
                amt = get_quantity(NULL, o_ptr->number);
-
-               /* Allow user abort */
                if (amt <= 0) return;
        }
 
index 9cac278..2140428 100644 (file)
@@ -1102,8 +1102,7 @@ void brand_weapon(int brand_type)
 {
        OBJECT_IDX item;
        object_type *o_ptr;
-       concptr        q, s;
-
+       concptr q, s;
 
        /* Assume enchant weapon */
        item_tester_hook = object_allow_enchant_melee_weapon;
@@ -1808,7 +1807,6 @@ bool alchemy(void)
        /* See how many items */
        if (o_ptr->number > 1)
        {
-               /* Get a quantity */
                amt = get_quantity(NULL, o_ptr->number);
 
                /* Allow user abort */
index db58b60..f6445c3 100644 (file)
@@ -4627,11 +4627,7 @@ static void store_purchase(void)
                {
                        msg_format(_("一つにつき $%ldです。", "That costs %ld gold per item."), (long)(best));
                }
-
-               /* Get a quantity */
                amt = get_quantity(NULL, o_ptr->number);
-
-               /* Allow user abort */
                if (amt <= 0) return;
        }
        j_ptr = &forge;
@@ -4895,7 +4891,6 @@ static void store_sell(void)
 
        object_type forge;
        object_type *q_ptr;
-
        object_type *o_ptr;
 
        concptr q, s;
@@ -4943,13 +4938,9 @@ static void store_sell(void)
        /* Assume one item */
        amt = 1;
 
-       /* Find out how many the player wants (letter means "all") */
        if (o_ptr->number > 1)
        {
-               /* Get a quantity */
                amt = get_quantity(NULL, o_ptr->number);
-
-               /* Allow user abort */
                if (amt <= 0) return;
        }
        q_ptr = &forge;