/* Enable "increments" */
bool allow_inc = FALSE;
+/*
+ * @brief アイテムが格納可能な数より多いかをチェックする
+ * @param なし
+ * @return エラーコード
+ * オプション powerup_home が設定されていると我が家が 20 ページまで使える /
+ * Free space is always usable
+ */
+static errr check_free_space(void)
+{
+ if ((cur_store_num == STORE_HOME) && !powerup_home)
+ if (st_ptr->stock_num < ((st_ptr->stock_size) / 10))
+ return 1;
+ else if (st_ptr->stock_num < st_ptr->stock_size)
+ return 1;
+
+ return 0;
+}
+
/*!
* @brief 店舗に品を置くスペースがあるかどうかの判定を返す /
* Check to see if the shop will be carrying too many objects -RAK-
}
}
- /* Free space is always usable */
- /*
- * オプション powerup_home が設定されていると
- * 我が家が 20 ページまで使える
- */
- if ((cur_store_num == STORE_HOME) && !powerup_home) {
- if (st_ptr->stock_num < ((st_ptr->stock_size) / 10)) {
- return 1;
- }
- } else {
- if (st_ptr->stock_num < st_ptr->stock_size) {
- return 1;
- }
- }
-
- return 0;
+ return check_free_space();
}
/*!