screen_save();
/* Display the p_ptr->inventory_list */
- (void)show_inven(0, USE_FULL);
+ (void)show_inven(0, USE_FULL, item_tester_tval);
#ifdef JP
sprintf(out_val, "持ち物: 合計 %3d.%1d kg (限界の%ld%%) コマンド: ",
if (easy_floor) command_wrk = (USE_EQUIP);
screen_save();
- (void)show_equip(0, USE_FULL);
+ (void)show_equip(0, USE_FULL, item_tester_tval);
/* Build a prompt */
#ifdef JP
if (p_ptr->equip_cnt)
{
Term_clear();
- (void)show_equip(0, USE_FULL);
+ (void)show_equip(0, USE_FULL, item_tester_tval);
prt(_("装備していたアイテム: -続く-", "You are using: -more-"), 0, 0);
if (inkey() == ESCAPE) return;
if (p_ptr->inven_cnt)
{
Term_clear();
- (void)show_inven(0, USE_FULL);
+ (void)show_inven(0, USE_FULL, item_tester_tval);
prt(_("持っていたアイテム: -続く-", "You are carrying: -more-"), 0, 0);
if (inkey() == ESCAPE) return;
extern bool item_tester_okay(object_type *o_ptr, OBJECT_TYPE_VALUE tval);
extern void display_inven(void);
extern void display_equip(void);
-extern COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode);
-extern COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode);
+extern COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode, OBJECT_TYPE_VALUE tval);
+extern COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode, OBJECT_TYPE_VALUE tval);
extern void toggle_inven_equip(void);
/*
* @details
* Hack -- do not display "trailing" empty slots
*/
-COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode)
+COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode, OBJECT_TYPE_VALUE tval)
{
COMMAND_CODE i;
int j, k, l, z = 0;
z = i + 1;
}
- prepare_label_string(inven_label, USE_INVEN, item_tester_tval);
+ prepare_label_string(inven_label, USE_INVEN, tval);
/* Display the p_ptr->inventory_list */
for (k = 0, i = 0; i < z; i++)
o_ptr = &p_ptr->inventory_list[i];
/* Is this item acceptable? */
- if (!item_tester_okay(o_ptr, item_tester_tval) && !(mode & USE_FULL)) continue;
+ if (!item_tester_okay(o_ptr, tval) && !(mode & USE_FULL)) continue;
object_desc(o_name, o_ptr, 0);
if (!command_wrk)
{
/* Redraw if needed */
- if (command_see) get_item_label = show_inven(menu_line, mode);
+ if (command_see) get_item_label = show_inven(menu_line, mode, item_tester_tval);
}
/* Equipment screen */
else
{
/* Redraw if needed */
- if (command_see) get_item_label = show_equip(menu_line, mode);
+ if (command_see) get_item_label = show_equip(menu_line, mode, item_tester_tval);
}
/* Viewing p_ptr->inventory_list */
n2 = I2A(i2);
/* Redraw if needed */
- if (command_see) get_item_label = show_inven(menu_line, mode);
+ if (command_see) get_item_label = show_inven(menu_line, mode, item_tester_tval);
}
/* Equipment screen */
n2 = I2A(e2 - INVEN_RARM);
/* Redraw if needed */
- if (command_see) get_item_label = show_equip(menu_line, mode);
+ if (command_see) get_item_label = show_equip(menu_line, mode, item_tester_tval);
}
/* Floor screen */
* @param target_item アイテムの選択処理を行うか否か。
* @return 選択したアイテムのタグ
*/
-COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode)
+COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode, OBJECT_TYPE_VALUE tval)
{
COMMAND_CODE i;
int j, k, l;
o_ptr = &p_ptr->inventory_list[i];
/* Is this item acceptable? */
- if (!(select_ring_slot ? is_ring_slot(i) : item_tester_okay(o_ptr, item_tester_tval) || (mode & USE_FULL)) &&
+ if (!(select_ring_slot ? is_ring_slot(i) : item_tester_okay(o_ptr, tval) || (mode & USE_FULL)) &&
(!((((i == INVEN_RARM) && p_ptr->hidarite) || ((i == INVEN_LARM) && p_ptr->migite)) && p_ptr->ryoute) ||
(mode & IGNORE_BOTHHAND_SLOT))) continue;
col = (len > wid - 4) ? 0 : (wid - len - 1);
#endif
- prepare_label_string(equip_label, USE_EQUIP, item_tester_tval);
+ prepare_label_string(equip_label, USE_EQUIP, tval);
/* Output each entry */
for (j = 0; j < k; j++)