-static object_type *choose_object(cptr q, cptr s)
-{
- OBJECT_IDX item;
-
- if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR | USE_EQUIP))) return NULL;
-
- /* Get the item (in the pack) */
- if (item >= 0) return &inventory[item];
-
- /* Get the item (on the floor) */
- else return &o_list[0 - item];
-}
-
-
-/*
- * Choose an item and get auto-picker entry from it.
- */