| 5882 | } |
| 5883 | |
| 5884 | staticfn char * |
| 5885 | shk_owns(char *buf, struct obj *obj) |
| 5886 | { |
| 5887 | struct monst *shkp; |
| 5888 | coordxy x, y; |
| 5889 | |
| 5890 | if (get_obj_location(obj, &x, &y, 0) |
| 5891 | && (obj->unpaid || (obj->where == OBJ_FLOOR && !obj->no_charge |
| 5892 | && costly_spot(x, y)))) { |
| 5893 | shkp = shop_keeper(inside_shop(x, y)); |
| 5894 | return strcpy(buf, shkp ? s_suffix(shkname(shkp)) : the_your[0]); |
| 5895 | } |
| 5896 | return (char *) 0; |
| 5897 | } |
| 5898 | |
| 5899 | staticfn char * |
| 5900 | mon_owns(char *buf, struct obj *obj) |
no test coverage detected