Home | History | Annotate | Download | only in hack

Lines Matching defs:mtmp

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