Home | History | Annotate | Download | only in hack

Lines Matching defs:mtmp

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