1: shopkeeper is currently in her shop or its boundary; 0: not */
| 1036 | |
| 1037 | /* 1: shopkeeper is currently in her shop or its boundary; 0: not */ |
| 1038 | int |
| 1039 | inhishop(struct monst *shkp) |
| 1040 | { |
| 1041 | char *shkrooms; |
| 1042 | struct eshk *eshkp = ESHK(shkp); |
| 1043 | |
| 1044 | if (!on_level(&eshkp->shoplevel, &u.uz)) |
| 1045 | return FALSE; |
| 1046 | shkrooms = in_rooms(shkp->mx, shkp->my, SHOPBASE); |
| 1047 | return (strchr(shkrooms, eshkp->shoproom) != 0); |
| 1048 | } |
| 1049 | |
| 1050 | /* return the shopkeeper for rooms[rmno-2]; returns Null if there isn't one */ |
| 1051 | struct monst * |
no test coverage detected