| 2153 | } |
| 2154 | |
| 2155 | boolean |
| 2156 | is_worn(struct obj *otmp) |
| 2157 | { |
| 2158 | return (otmp->owornmask & (W_ARMOR | W_ACCESSORY | W_SADDLE | W_WEAPONS)) |
| 2159 | ? TRUE |
| 2160 | : FALSE; |
| 2161 | } |
| 2162 | |
| 2163 | /* is 'obj' being used by the hero? worn, wielded, active lamp or leash; |
| 2164 | not to be confused with obj->in_use, which finishes using up an item |
no outgoing calls
no test coverage detected