* @param mode オプション
* @return なし
*/
-void display_player_equippy(TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode)
+void display_player_equippy(player_type *creature_ptr, TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode)
{
int i, max_i;
for (i = INVEN_RARM; i < max_i; i++)
{
/* Object */
- o_ptr = &p_ptr->inventory_list[i];
+ o_ptr = &creature_ptr->inventory_list[i];
a = object_attr(o_ptr);
c = object_char(o_ptr);
row = 12;
col = 1;
- display_player_equippy(row-2, col+8, 0);
+ display_player_equippy(creature_ptr, row-2, col+8, 0);
c_put_str(TERM_WHITE, "abcdefghijkl@", row-1, col+8);
#ifdef JP
row = 12;
col = 26;
- display_player_equippy(row-2, col+8, 0);
+ display_player_equippy(creature_ptr, row-2, col+8, 0);
c_put_str(TERM_WHITE, "abcdefghijkl@", row-1, col+8);
row = 12;
col = 51;
- display_player_equippy(row-2, col+12, 0);
+ display_player_equippy(creature_ptr, row-2, col+12, 0);
c_put_str(TERM_WHITE, "abcdefghijkl@", row-1, col+12);
row = 3;
col = 1;
- display_player_equippy(row-2, col+12, DP_WP);
+ display_player_equippy(creature_ptr, row-2, col+12, DP_WP);
c_put_str(TERM_WHITE, "ab@", row-1, col+12);
row = 3;
col = col + 12 + 7;
- display_player_equippy(row-2, col+13, 0);
+ display_player_equippy(creature_ptr, row-2, col+13, 0);
c_put_str(TERM_WHITE, "abcdefghijkl@", row-1, col+13);
#ifdef JP
row = 3;
col = col + 12 + 17;
- display_player_equippy(row-2, col+14, 0);
+ display_player_equippy(creature_ptr, row-2, col+14, 0);
c_put_str(TERM_WHITE, "abcdefghijkl@", row-1, col+14);
extern errr process_pref_file(player_type *creature_ptr, concptr name);
extern errr process_autopick_file(player_type *creature_ptr, concptr name);
extern errr process_histpref_file(player_type *creature_ptr, concptr name);
-extern void print_equippy(void);
-extern void display_player_equippy(TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode);
+extern void display_player_equippy(player_type *player_ptr, TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode);
extern errr check_time_init(void);
extern errr check_load_init(void);
extern errr check_time(void);
*/
#define IS_ASCII_GRAPHICS(A) (!((A) & 0x80))
-
static int feat_priority; /*!< マップ縮小表示時に表示すべき地形の優先度を保管する */
static byte display_autopick; /*!< 自動拾い状態の設定フラグ */
static int match_autopick;
#define COL_STATBAR 0
#define MAX_COL_STATBAR (-26)
-
+void print_equippy(player_type *creature_ptr);
/*!
* @brief 画面左の能力値表示を行うために指定位置から13キャラ分を空白消去後指定のメッセージを明るい青で描画する /
if (creature_ptr->redraw & (PR_EQUIPPY))
{
creature_ptr->redraw &= ~(PR_EQUIPPY);
- print_equippy(); /* To draw / delete equippy chars */
+ print_equippy(creature_ptr); /* To draw / delete equippy chars */
}
if (creature_ptr->redraw & (PR_MISC))
/*!
* @brief プレイヤーの装備一覧シンボルを固定位置に表示する
+ * @param creature_ptr プレーヤーへの参照ポインタ
* @return なし
*/
-void print_equippy(void)
+void print_equippy(player_type *creature_ptr)
{
- display_player_equippy(ROW_EQUIPPY, COL_EQUIPPY, 0);
+ display_player_equippy(creature_ptr, ROW_EQUIPPY, COL_EQUIPPY, 0);
}
/*!