/* Save the screen */
screen_save();
- /* Get size */
Term_get_size(&wid, &hgt);
/* Display Item name */
char o_name[MAX_NLEN];
int wid, hgt;
- /* Get size */
Term_get_size(&wid, &hgt);
/* Find the "final" slot */
char o_name[MAX_NLEN];
int wid, hgt;
- /* Get size */
Term_get_size(&wid, &hgt);
/* Display the equipment */
/* Starting column */
col = command_gap;
- /* Get size */
Term_get_size(&wid, &hgt);
/* Default "max-length" */
/* Is this item acceptable? */
if (!item_tester_okay(o_ptr)) continue;
- /* Describe the object */
object_desc(o_name, o_ptr, 0);
/* Save the object index, color, and description */
/* Get the index */
i = out_index[j];
- /* Get the item */
o_ptr = &inventory[i];
/* Clear the line */
/* Starting column */
col = command_gap;
- /* Get size */
Term_get_size(&wid, &hgt);
/* Maximal length */
/* Get the index */
i = out_index[j];
- /* Get the item */
o_ptr = &inventory[i];
/* Clear the line */
{
o_ptr = &o_list[0 - item];
}
-
- /* Describe */
object_desc(o_name, o_ptr, 0);
/* Prompt */
static bool get_item_allow(INVENTORY_IDX item)
{
cptr s;
-
object_type *o_ptr;
-
if (!command_cmd) return TRUE; /* command_cmd is no longer effective */
/* Inventory */
static char prev_tag = '\0';
char cur_tag = '\0';
-#ifdef ALLOW_EASY_FLOOR /* TNB */
-
if (easy_floor || use_menu) return get_item_floor(cp, pmt, str, mode);
-#endif /* ALLOW_EASY_FLOOR -- TNB */
-
/* Extract args */
if (mode & USE_EQUIP) equip = TRUE;
if (mode & USE_INVEN) inven = TRUE;
/* Special index */
k = 0 - (*cp);
-
- /* Acquire object */
o_ptr = &o_list[k];
/* Validate the item */
for (this_o_idx = cave[p_ptr->y][p_ptr->x].o_idx; this_o_idx; this_o_idx = next_o_idx)
{
object_type *o_ptr;
-
- /* Acquire object */
o_ptr = &o_list[this_o_idx];
/* Acquire next object */
/* Hack -- start out in "display" mode */
if (command_see)
{
- /* Save screen */
screen_save();
}
/* Hack -- Fix screen */
if (command_see)
{
- /* Load screen */
screen_load();
-
- /* Save screen */
screen_save();
}
{
/* Flip flag */
command_see = FALSE;
-
- /* Load screen */
screen_load();
}
/* Show the list */
else
{
- /* Save screen */
screen_save();
/* Flip flag */
/* Hack -- Fix screen */
if (command_see)
{
- /* Load screen */
screen_load();
-
- /* Save screen */
screen_save();
}
for (this_o_idx = cave[p_ptr->y][p_ptr->x].o_idx; this_o_idx; this_o_idx = next_o_idx)
{
object_type *o_ptr;
-
- /* Acquire object */
o_ptr = &o_list[this_o_idx];
/* Acquire next object */
/* Fix the screen if necessary */
if (command_see)
{
- /* Load screen */
screen_load();
/* Hack -- Cancel "display" */
if (command_cmd) prev_tag = cur_tag;
command_cmd = 0; /* Hack -- command_cmd is no longer effective */
}
-
- /* Result */
return (item);
}
-
-#ifdef ALLOW_EASY_FLOOR
-
/*!
* @brief 床下に落ちているオブジェクトの数を返す / scan_floor
* @param items オブジェクトのIDリストを返すための配列参照ポインタ
for (this_o_idx = cave[y][x].o_idx; this_o_idx; this_o_idx = next_o_idx)
{
object_type *o_ptr;
-
- /* Acquire object */
o_ptr = &o_list[this_o_idx];
/* Acquire next object */
/* Only one */
if (mode & 0x04) break;
}
-
- /* Result */
return num;
}
bool dont_need_to_show_weights = TRUE;
- /* Get size */
Term_get_size(&wid, &hgt);
/* Default length */
len = MAX((*min_width), 20);
-
/* Scan for objects in the grid, using item_tester_okay() */
floor_num = scan_floor(floor_list, y, x, 0x03);
{
o_ptr = &o_list[floor_list[i]];
- /* Describe the object */
object_desc(o_name, o_ptr, 0);
/* Save the index */
/* Get the index */
m = floor_list[out_index[j]];
- /* Get the item */
o_ptr = &o_list[m];
/* Clear the line */
/* Hack -- start out in "display" mode */
if (command_see)
{
- /* Save screen */
screen_save();
}
/* Append */
if (allow_equip)
{
-#ifdef JP
if (!use_menu)
- strcat(out_val, " '/' 装備品,");
+ strcat(out_val, _(" '/' 装備品,", " / for Equip,"));
else if (allow_floor)
- strcat(out_val, " '6' 装備品,");
+ strcat(out_val, _(" '6' 装備品,", " 6 for Equip,"));
else
- strcat(out_val, " '4'or'6' 装備品,");
-#else
- if (!use_menu)
- strcat(out_val, " / for Equip,");
- else if (allow_floor)
- strcat(out_val, " 6 for Equip,");
- else
- strcat(out_val, " 4 or 6 for Equip,");
-#endif
+ strcat(out_val, _(" '4'or'6' 装備品,", " 4 or 6 for Equip,"));
}
/* Append */
if (allow_floor)
{
-#ifdef JP
if (!use_menu)
- strcat(out_val, " '-'床上,");
+ strcat(out_val, _(" '-'床上,", " - for floor,"));
else if (allow_equip)
- strcat(out_val, " '4' 床上,");
+ strcat(out_val, _(" '4' 床上,", " 4 for floor,"));
else
- strcat(out_val, " '4'or'6' 床上,");
-#else
- if (!use_menu)
- strcat(out_val, " - for floor,");
- else if (allow_equip)
- strcat(out_val, " 4 for floor,");
- else
- strcat(out_val, " 4 or 6 for floor,");
-#endif
+ strcat(out_val, _(" '4'or'6' 床上,", " 4 or 6 for floor,"));
}
}
/* Append */
if (allow_inven)
{
-#ifdef JP
if (!use_menu)
- strcat(out_val, " '/' 持ち物,");
+ strcat(out_val, _(" '/' 持ち物,", " / for Inven,"));
else if (allow_floor)
- strcat(out_val, " '4' 持ち物,");
+ strcat(out_val, _(" '4' 持ち物,", " 4 for Inven,"));
else
- strcat(out_val, " '4'or'6' 持ち物,");
-#else
- if (!use_menu)
- strcat(out_val, " / for Inven,");
- else if (allow_floor)
- strcat(out_val, " 4 for Inven,");
- else
- strcat(out_val, " 4 or 6 for Inven,");
-#endif
+ strcat(out_val, _(" '4'or'6' 持ち物,", " 4 or 6 for Inven,"));
}
/* Append */
if (allow_floor)
{
-#ifdef JP
if (!use_menu)
- strcat(out_val, " '-'床上,");
+ strcat(out_val, _(" '-'床上,", " - for floor,"));
else if (allow_inven)
- strcat(out_val, " '6' 床上,");
+ strcat(out_val, _(" '6' 床上,", " 6 for floor,"));
else
- strcat(out_val, " '4'or'6' 床上,");
-#else
- if (!use_menu)
- strcat(out_val, " - for floor,");
- else if (allow_inven)
- strcat(out_val, " 6 for floor,");
- else
- strcat(out_val, " 4 or 6 for floor,");
-#endif
+ strcat(out_val, _(" '4'or'6' 床上,", " 4 or 6 for floor,"));
}
}
/* Hack -- Fix screen */
if (command_see)
{
- /* Load screen */
screen_load();
-
- /* Save screen */
screen_save();
}
/* Hack -- Fix screen */
if (command_see)
{
- /* Load screen */
screen_load();
-
- /* Save screen */
screen_save();
}
{
/* Flip flag */
command_see = FALSE;
-
- /* Load screen */
screen_load();
}
/* Show the list */
else
{
- /* Save screen */
screen_save();
/* Flip flag */
/* Hack -- Fix screen */
if (command_see)
{
- /* Load screen */
screen_load();
-
- /* Save screen */
screen_save();
}
/* Hack -- Fix screen */
if (command_see)
{
- /* Load screen */
screen_load();
-
- /* Save screen */
screen_save();
}
/* Hack -- Fix screen */
if (command_see)
{
- /* Load screen */
screen_load();
-
- /* Save screen */
screen_save();
}
/* Fix the screen if necessary */
if (command_see)
{
- /* Load screen */
screen_load();
/* Hack -- Cancel "display" */
if (command_cmd) prev_tag = cur_tag;
command_cmd = 0; /* Hack -- command_cmd is no longer effective */
}
-
- /* Result */
return (item);
}
/* Access the object */
o_ptr = &o_list[this_o_idx];
- /* Describe the object */
object_desc(o_name, o_ptr, 0);
/* Access the next object */
#endif /* ALLOW_EASY_SENSE */
- /* Describe the object */
object_desc(o_name, o_ptr, 0);
msg_format(_("%sがある。", "You see %s."), o_name);
#endif /* ALLOW_EASY_SENSE */
- /* Describe the object */
object_desc(o_name, o_ptr, 0);
msg_format(_("ザックには%sを入れる隙間がない。", "You have no room for %s."), o_name);
#endif /* ALLOW_EASY_SENSE */
- /* Describe the object */
object_desc(o_name, o_ptr, 0);
/* Build a prompt */
}
}
}
-
-#endif /* ALLOW_EASY_FLOOR */