OSDN Git Service

[Refactor] #39321 kamaenaoshi() を verify_equip_slot() に改名.
authordeskull <deskull@users.sourceforge.jp>
Wed, 14 Aug 2019 15:05:46 +0000 (00:05 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 14 Aug 2019 15:05:46 +0000 (00:05 +0900)
src/cmd-basic.c
src/cmd-basic.h
src/cmd-item.c
src/store.c

index d7bacba..de01417 100644 (file)
@@ -2818,7 +2818,7 @@ bool do_cmd_throw(player_type *creature_ptr, int mult, bool boomerang, OBJECT_ID
        }
        else if (equiped_item)
        {
-               kamaenaoshi(item);
+               verify_equip_slot(item);
                calc_android_exp(creature_ptr);
        }
 
index 2e7b47a..efa95e4 100644 (file)
@@ -30,4 +30,4 @@ extern bool do_cmd_throw(player_type *creature_ptr, int mult, bool boomerang, OB
 extern bool easy_open_door(player_type *creature_ptr, POSITION y, POSITION x);
 extern bool exe_disarm(player_type *creature_ptr, POSITION y, POSITION x, DIRECTION dir);
 
-extern void kamaenaoshi(INVENTORY_IDX item);
+extern void verify_equip_slot(INVENTORY_IDX item);
index eccf0a0..773aaf7 100644 (file)
@@ -437,7 +437,7 @@ void do_cmd_wield(player_type *creature_ptr)
  * @param item 持ち替えを行いたい装備部位ID
  * @return なし
  */
-void kamaenaoshi(INVENTORY_IDX item)
+void verify_equip_slot(INVENTORY_IDX item)
 {
        object_type *o_ptr, *new_o_ptr;
        GAME_TEXT o_name[MAX_NLEN];
@@ -548,7 +548,7 @@ void do_cmd_takeoff(player_type *creature_ptr)
 
        /* Take off the item */
        (void)inven_takeoff(item, 255);
-       kamaenaoshi(item);
+       verify_equip_slot(item);
        calc_android_exp(creature_ptr);
        creature_ptr->redraw |= (PR_EQUIPPY);
 }
@@ -598,7 +598,7 @@ void do_cmd_drop(void)
 
        if (item >= INVEN_RARM)
        {
-               kamaenaoshi(item);
+               verify_equip_slot(item);
                calc_android_exp(p_ptr);
        }
 
index 6c25b2e..ad20364 100644 (file)
@@ -5183,7 +5183,7 @@ static void store_sell(void)
        if ((choice == 0) && (item >= INVEN_RARM))
        {
                calc_android_exp(p_ptr);
-               kamaenaoshi(item);
+               verify_equip_slot(item);
        }
 }