is 'obj' being used by the hero? worn, wielded, active lamp or leash; not to be confused with obj->in_use, which finishes using up an item (destroys it) if restoring a save file finds that bit set */
| 2164 | not to be confused with obj->in_use, which finishes using up an item |
| 2165 | (destroys it) if restoring a save file finds that bit set */ |
| 2166 | boolean |
| 2167 | is_inuse(struct obj *obj) |
| 2168 | { |
| 2169 | return (carried(obj) && (is_worn(obj) || tool_being_used(obj))); |
| 2170 | } |
| 2171 | |
| 2172 | /* extra xprname() input that askchain() can't pass through safe_qbuf() */ |
| 2173 | static struct xprnctx { |
no test coverage detected