assuming mtmp->mleashed has been checked */
| 877 | |
| 878 | /* assuming mtmp->mleashed has been checked */ |
| 879 | struct obj * |
| 880 | get_mleash(struct monst *mtmp) |
| 881 | { |
| 882 | struct obj *otmp; |
| 883 | |
| 884 | for (otmp = gi.invent; otmp; otmp = otmp->nobj) |
| 885 | if (otmp->otyp == LEASH && (unsigned) otmp->leashmon == mtmp->m_id) |
| 886 | break; |
| 887 | return otmp; |
| 888 | } |
| 889 | |
| 890 | staticfn boolean |
| 891 | mleashed_next2u(struct monst *mtmp) |
no outgoing calls
no test coverage detected