Lines Matching refs:mtmp

141 	struct monst *mtmp;  in use_camera()  local
155 if ((mtmp = bchit(u.dx, u.dy, COLNO, '!')) != NULL) { in use_camera()
156 if (mtmp->msleep) { in use_camera()
157 mtmp->msleep = 0; in use_camera()
158 pline("The flash awakens %s.", monnam(mtmp)); /* a3 */ in use_camera()
159 } else if (mtmp->data->mlet != 'y') in use_camera()
160 if (mtmp->mcansee || mtmp->mblinded) { in use_camera()
161 int tmp = dist(mtmp->mx, mtmp->my); in use_camera()
163 if (cansee(mtmp->mx, mtmp->my)) in use_camera()
164 pline("%s is blinded by the flash!", Monnam(mtmp)); in use_camera()
165 setmangry(mtmp); in use_camera()
166 if (tmp < 9 && !mtmp->isshk && rn2(4)) { in use_camera()
167 mtmp->mflee = 1; in use_camera()
169 mtmp->mfleetim = rnd(100); in use_camera()
172 mtmp->mcansee = mtmp->mblinded = 0; in use_camera()
174 tmp2 = mtmp->mblinded; in use_camera()
178 mtmp->mblinded = tmp2; in use_camera()
179 mtmp->mcansee = 0; in use_camera()
273 struct monst *mtmp = (struct monst *) 0; in bchit() local
281 if ((mtmp = m_at(bchx, bchy)) != NULL) in bchit()
293 return (mtmp); in bchit()
300 struct monst *mtmp = fmon; in use_whistle() local
302 while (mtmp) { in use_whistle()
303 if (dist(mtmp->mx, mtmp->my) < u.ulevel * 20) { in use_whistle()
304 if (mtmp->msleep) in use_whistle()
305 mtmp->msleep = 0; in use_whistle()
306 if (mtmp->mtame) in use_whistle()
307 EDOG(mtmp)->whistletime = moves; in use_whistle()
309 mtmp = mtmp->nmon; in use_whistle()
317 struct monst *mtmp = fmon; in use_magic_whistle() local
319 while (mtmp) { in use_magic_whistle()
320 if (mtmp->mtame) in use_magic_whistle()
321 mnexto(mtmp); in use_magic_whistle()
322 mtmp = mtmp->nmon; in use_magic_whistle()
441 struct monst *mtmp; in use_pick_axe() local
479 if ((mtmp = m_at(rx, ry)) && attack(mtmp)) in use_pick_axe()