Lines Matching refs:mtmp
143 replshk(struct monst *mtmp, struct monst *mtmp2)
191 shkname(struct monst *mtmp) /* called in do_name.c */
193 return (ESHK(mtmp)->shknam);
197 shkdead(struct monst *mtmp) /* called in mon.c */
199 struct eshk *eshk = ESHK(mtmp);
203 if (mtmp == shopkeeper) {
212 replshk(struct monst *mtmp, struct monst *mtmp2)
214 if (mtmp == shopkeeper) {
225 struct monst *mtmp;
232 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon)
233 for (obj = mtmp->minvent; obj; obj = obj->nobj)
235 for (mtmp = fallen_down; mtmp; mtmp = mtmp->nmon)
236 for (obj = mtmp->minvent; obj; obj = obj->nobj)
288 struct monst *mtmp;
302 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon)
304 mtmp->msleep = 0;
354 struct monst *mtmp;
355 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon)
356 if (mtmp->isshk && ESHK(mtmp)->shoproom == roomno
357 && ESHK(mtmp)->shoplevel == dlevel) {
358 shopkeeper = mtmp;
637 struct monst *mtmp;
645 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon)
646 mtmp->minvent)) != NULL)
648 for (mtmp = fallen_down; mtmp; mtmp = mtmp->nmon)
649 if ((obj = o_on(id, mtmp->minvent)) != NULL)
940 struct monst *mtmp;
1081 mtmp = m_at(nix, niy);
1082 if (mtmp == NULL)
1084 if (hitmm(shkp, mtmp) == 1 && rn2(3) &&
1085 hitmm(mtmp, shkp) == 2)
1140 follower(struct monst *mtmp)
1142 return (mtmp->mtame || strchr("1TVWZi&, ", mtmp->data->mlet)
1144 || (mtmp->isshk && ESHK(mtmp)->following)