Lines Matching refs:mtmp
91 bhitm(struct monst *mtmp, struct obj *otmp) in bhitm() argument
93 wakeup(mtmp); in bhitm()
96 if (u.uswallow || rnd(20) < 10 + mtmp->data->ac) { in bhitm()
98 hit("wand", mtmp, exclam(tmp)); in bhitm()
99 mtmp->mhp -= tmp; in bhitm()
100 if (mtmp->mhp < 1) in bhitm()
101 killed(mtmp); in bhitm()
103 miss("wand", mtmp); in bhitm()
106 mtmp->mspeed = MSLOW; in bhitm()
109 mtmp->mspeed = MFAST; in bhitm()
112 if (strchr(UNDEAD, mtmp->data->mlet)) { in bhitm()
113 mtmp->mhp -= rnd(8); in bhitm()
114 if (mtmp->mhp < 1) in bhitm()
115 killed(mtmp); in bhitm()
117 mtmp->mflee = 1; in bhitm()
121 if (newcham(mtmp, &mons[rn2(CMNUM)])) in bhitm()
125 mtmp->mcan = 1; in bhitm()
128 rloc(mtmp); in bhitm()
131 mtmp->minvis = 1; in bhitm()
135 mstatusline(mtmp); in bhitm()
276 struct monst *mtmp = u.ustuck; in dozap() local
279 monnam(mtmp)); in dozap()
280 mtmp->mhp = 1; /* almost dead */ in dozap()
281 unstuck(mtmp); in dozap()
282 mnexto(mtmp); in dozap()
359 hit(const char *str, struct monst *mtmp, const char *force) in hit() argument
363 if (!cansee(mtmp->mx, mtmp->my)) in hit()
366 pline("The %s hits %s%s", str, monnam(mtmp), force); in hit()
370 miss(const char *str, struct monst *mtmp) in miss() argument
372 if (!cansee(mtmp->mx, mtmp->my)) in miss()
375 pline("The %s misses %s.", str, monnam(mtmp)); in miss()
396 struct monst *mtmp; in bhit() local
409 if ((mtmp = m_at(bhitpos.x, bhitpos.y)) != NULL) { in bhit()
412 return (mtmp); in bhit()
414 (*fhitm) (mtmp, obj); in bhit()
440 struct monst *mtmp; in boomhit() local
459 if ((mtmp = m_at(bhitpos.x, bhitpos.y)) != NULL) { in boomhit()
461 return (mtmp); in boomhit()
692 struct monst *mtmp = NULL; in revive() local
700 mtmp = mkmon_at(CORPSE_I_TO_C(obj->otyp), obj->ox, obj->oy); in revive()
703 return (!!mtmp); /* TRUE if some monster created */ in revive()