#ifdef ALLOW_EASY_FLOOR /* TNB */
- if (easy_floor) return get_item_floor(cp, pmt, str, mode);
+ if (easy_floor || use_menu) return get_item_floor(cp, pmt, str, mode);
#endif /* ALLOW_EASY_FLOOR -- TNB */
}
}
-
/* Require at least one legal choice */
if (!allow_floor && (i1 > i2) && (e1 > e2))
{
case '\r':
case '\n':
{
- /* Validate the item */
- if (!get_item_okay(get_item_label))
+ if (command_wrk == USE_FLOOR)
{
- bell();
- break;
+ /* Special index */
+ (*cp) = -get_item_label;
}
-
- /* Allow player to "refuse" certain actions */
- if (!get_item_allow(get_item_label))
+ else
{
- done = TRUE;
- break;
+ /* Validate the item */
+ if (!get_item_okay(get_item_label))
+ {
+ bell();
+ break;
+ }
+
+ /* Allow player to "refuse" certain actions */
+ if (!get_item_allow(get_item_label))
+ {
+ done = TRUE;
+ break;
+ }
+
+ /* Accept that choice */
+ (*cp) = get_item_label;
}
- /* Accept that choice */
- (*cp) = get_item_label;
item = TRUE;
done = TRUE;
break;
/* Append */
#ifdef JP
-if (allow_equip)
-{
- if (use_menu)
- {
- if (allow_floor)
- strcat(out_val, " '6' ÁõÈ÷ÉÊ,");
- else
- strcat(out_val, " '4'or'6' ÁõÈ÷ÉÊ,");
- }
- else strcat(out_val, " '/' ÁõÈ÷ÉÊ,");
-}
-else if (select_the_force)
- strcat(out_val, " 'w'Îýµ¤½Ñ,");
+ if (allow_equip)
+ {
+ if (!use_menu)
+ strcat(out_val, " '/' ÁõÈ÷ÉÊ,");
+ else if (allow_floor)
+ strcat(out_val, " '6' ÁõÈ÷ÉÊ,");
+ else
+ strcat(out_val, " '4'or'6' ÁõÈ÷ÉÊ,");
+ }
+ else if (select_the_force)
+ strcat(out_val, " 'w'Îýµ¤½Ñ,");
#else
-if (allow_equip)
-{
- if (use_menu)
- {
- if (allow_floor)
- strcat(out_val, " 6 for Equip,");
- else
- strcat(out_val, " 4 or 6 for Equip,");
- }
- else strcat(out_val, " / for Equip,");
-}
-else if (select_the_force)
- strcat(out_val, " w for the Force,");
+ if (allow_equip)
+ {
+ 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,");
+ }
+ else if (select_the_force)
+ strcat(out_val, " w for the Force,");
#endif
/* Append */
+ if (allow_floor)
+ {
#ifdef JP
-if (allow_floor)
-{
- if (use_menu)
- {
- if (allow_equip)
- strcat(out_val, " '4' ¾²¾å,");
- else
- strcat(out_val, " '4'or'6' ¾²¾å,");
- }
- else strcat(out_val, " '-'¾²¾å,");
-}
+ if (!use_menu)
+ strcat(out_val, " '-'¾²¾å,");
+ if (allow_equip)
+ strcat(out_val, " '4' ¾²¾å,");
+ else
+ strcat(out_val, " '4'or'6' ¾²¾å,");
#else
- if (allow_floor) strcat(out_val, " - for floor,");
+ if (!use_menu)
+ strcat(out_val, " - for floor,");
+ if (allow_equip)
+ strcat(out_val, " 4 for floor,");
+ else
+ strcat(out_val, " 4 or 6 for floor,");
#endif
+ }
}
/* Append */
+ if (allow_inven)
+ {
#ifdef JP
-if (allow_inven)
-{
- if (use_menu)
- {
- if (allow_floor)
- strcat(out_val, " '4' »ý¤Áʪ,");
- else
- strcat(out_val, " '4'or'6' »ý¤Áʪ,");
- }
- else strcat(out_val, " '/' »ý¤Áʪ,");
-}
+ if (!use_menu)
+ strcat(out_val, " '/' »ý¤Áʪ,");
+ else if (allow_floor)
+ strcat(out_val, " '4' »ý¤Áʪ,");
+ else
+ strcat(out_val, " '4'or'6' »ý¤Áʪ,");
#else
- if (allow_inven) strcat(out_val, " / for Inven,");
-#endif
+ 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
+ }
/* Append */
+ if (allow_floor)
+ {
#ifdef JP
-if (allow_floor)
-{
- if (use_menu)
- {
- if (allow_floor)
- strcat(out_val, " '6' ¾²¾å,");
- else
- strcat(out_val, " '4'or'6' ¾²¾å,");
- }
- else strcat(out_val, " '-'¾²¾å,");
-}
+ if (!use_menu)
+ strcat(out_val, " '-'¾²¾å,");
+ else if (allow_inven)
+ strcat(out_val, " '6' ¾²¾å,");
+ else
+ strcat(out_val, " '4'or'6' ¾²¾å,");
#else
- if (allow_floor) strcat(out_val, " - for floor,");
+ 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
-
+ }
}
/* Viewing floor */
if (allow_inven && allow_equip)
{
#ifdef JP
-strcat(out_val, " '4' ÁõÈ÷ÉÊ, '6' »ý¤Áʪ,");
+ strcat(out_val, " '4' ÁõÈ÷ÉÊ, '6' »ý¤Áʪ,");
#else
- strcat(out_val, " / for Inven,");
+ strcat(out_val, " 4 for Equip, 6 for Inven,");
#endif
}
else if (allow_inven)
{
#ifdef JP
-strcat(out_val, " '4'or'6' »ý¤Áʪ,");
+ strcat(out_val, " '4'or'6' »ý¤Áʪ,");
#else
- strcat(out_val, " / for Inven,");
+ strcat(out_val, " 4 or 6 for Inven,");
#endif
}
else if (allow_equip)
{
#ifdef JP
-strcat(out_val, " '4'or'6' ÁõÈ÷ÉÊ,");
+ strcat(out_val, " '4'or'6' ÁõÈ÷ÉÊ,");
#else
- strcat(out_val, " / for Equip,");
+ strcat(out_val, " 4 or 6 for Equip,");
#endif
}
else if (allow_inven)
{
#ifdef JP
-strcat(out_val, " '/' »ý¤Áʪ,");
+ strcat(out_val, " '/' »ý¤Áʪ,");
#else
strcat(out_val, " / for Inven,");
#endif
else if (allow_equip)
{
#ifdef JP
-strcat(out_val, " '/'ÁõÈ÷ÉÊ,");
+ strcat(out_val, " '/'ÁõÈ÷ÉÊ,");
#else
strcat(out_val, " / for Equip,");
#endif
case '\r':
case '\n':
{
- /* Validate the item */
- if (!get_item_okay(get_item_label))
+ if (command_wrk == USE_FLOOR)
{
- bell();
- break;
+ /* Special index */
+ (*cp) = -get_item_label;
}
-
- /* Allow player to "refuse" certain actions */
- if (!get_item_allow(get_item_label))
+ else
{
- done = TRUE;
- break;
+ /* Validate the item */
+ if (!get_item_okay(get_item_label))
+ {
+ bell();
+ break;
+ }
+
+ /* Allow player to "refuse" certain actions */
+ if (!get_item_allow(get_item_label))
+ {
+ done = TRUE;
+ break;
+ }
+
+ /* Accept that choice */
+ (*cp) = get_item_label;
}
- /* Accept that choice */
- (*cp) = get_item_label;
item = TRUE;
done = TRUE;
break;