char out_desc[23][MAX_NLEN];
int target_item_label = 0;
int wid, hgt;
+ char inven_spellbook_label[24];
+ /* See cmd5.c */
+ extern bool select_spellbook;
/* Starting column */
col = command_gap;
z = i + 1;
}
+ if (select_spellbook)
+ {
+ int index;
+
+ strcpy(inven_spellbook_label, "abcdefghijklmnopqrstuvw");
+ for (i = 0; i < INVEN_PACK; i++)
+ {
+ if (get_tag(&index, ('a' + i)))
+ {
+ inven_spellbook_label[i] = ' ';
+ inven_spellbook_label[index] = ('a' + i);
+ }
+ }
+ }
+
/* Display the inventory */
for (k = 0, i = 0; i < z; i++)
{
}
else strcpy(tmp_val, " ");
}
+ else if (i <= INVEN_PACK && select_spellbook)
+ {
+ sprintf(tmp_val, "%c)", inven_spellbook_label[i]);
+ }
else
+ {
/* Prepare an index --(-- */
sprintf(tmp_val, "%c)", index_to_label(i));
+ }
/* Clear the line with the (possibly indented) index */
put_str(tmp_val, j + 1, col);
* Also, the tag "@xn" will work as well, where "n" is a tag-char,
* and "x" is the "current" command_cmd code.
*/
-static int get_tag(int *cp, char tag)
+int get_tag(int *cp, char tag)
{
int i;
cptr s;
#ifdef JP
if (!use_menu)
strcat(out_val, " '-'¾²¾å,");
- if (allow_equip)
+ else if (allow_equip)
strcat(out_val, " '4' ¾²¾å,");
else
strcat(out_val, " '4'or'6' ¾²¾å,");
#else
if (!use_menu)
strcat(out_val, " - for floor,");
- if (allow_equip)
+ else if (allow_equip)
strcat(out_val, " 4 for floor,");
else
strcat(out_val, " 4 or 6 for floor,");