OSDN Git Service

[Refactor] #3539 Renamed get_stock() to input_stock()
authorHourier <66951241+Hourier@users.noreply.github.com>
Mon, 10 Jul 2023 12:23:31 +0000 (21:23 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Mon, 10 Jul 2023 13:37:09 +0000 (22:37 +0900)
src/store/museum.cpp
src/store/purchase-order.cpp
src/store/store.cpp
src/store/store.h

index 727534c..b025b3b 100644 (file)
@@ -26,7 +26,7 @@ void museum_remove_object(PlayerType *player_ptr)
     }
 
     COMMAND_CODE item;
-    if (!get_stock(&item, _("どのアイテムの展示をやめさせますか?", "Which item do you want to order to remove? "), 0, i - 1, StoreSaleType::MUSEUM)) {
+    if (!input_stock(&item, _("どのアイテムの展示をやめさせますか?", "Which item do you want to order to remove? "), 0, i - 1, StoreSaleType::MUSEUM)) {
         return;
     }
 
index 4d25b08..77d435c 100644 (file)
@@ -85,7 +85,7 @@ static bool show_store_select_item(COMMAND_CODE *item, const int i, StoreSaleTyp
         break;
     }
 
-    return get_stock(item, prompt, 0, i - 1, store_num) != 0;
+    return input_stock(item, prompt, 0, i - 1, store_num) != 0;
 }
 
 /*!
index 8cac259..ba50229 100644 (file)
@@ -153,7 +153,7 @@ int store_check_num(ItemEntity *o_ptr, StoreSaleType store_num)
  * @param j 選択範囲の最大値
  * @return 実際に選択したらTRUE、キャンセルしたらFALSE
  */
-int get_stock(COMMAND_CODE *com_val, concptr pmt, int i, int j, [[maybe_unused]] StoreSaleType store_num)
+int input_stock(COMMAND_CODE *com_val, concptr pmt, int i, int j, [[maybe_unused]] StoreSaleType store_num)
 {
     if (repeat_pull(com_val) && (*com_val >= i) && (*com_val <= j)) {
         return true;
@@ -227,7 +227,7 @@ void store_examine(PlayerType *player_ptr, StoreSaleType store_num)
     }
 
     COMMAND_CODE item;
-    if (!get_stock(&item, _("どれを調べますか?", "Which item do you want to examine? "), 0, i - 1, store_num)) {
+    if (!input_stock(&item, _("どれを調べますか?", "Which item do you want to examine? "), 0, i - 1, store_num)) {
         return;
     }
     item = item + store_top;
index b822602..92a2b03 100644 (file)
@@ -29,4 +29,4 @@ void store_maintenance(PlayerType *player_ptr, int town_num, StoreSaleType store
 void store_init(int town_num, StoreSaleType store_num);
 void store_examine(PlayerType *player_ptr, StoreSaleType store_num);
 int store_check_num(ItemEntity *o_ptr, StoreSaleType store_num);
-int get_stock(COMMAND_CODE *com_val, concptr pmt, int i, int j, StoreSaleType store_num);
+int input_stock(COMMAND_CODE *com_val, concptr pmt, int i, int j, StoreSaleType store_num);