Lines Matching defs:mon
391 /* fns called when mon/obj hit */
503 struct monst *mon;
560 if ((mon = m_at(sx, sy)) &&
561 (type != -1 || mon->data->mlet != 'D')) {
562 wakeup(mon);
563 if (rnd(20) < 18 + mon->data->ac) {
564 int tmp = zhit(mon, abstype);
565 if (mon->mhp < 1) {
567 if (cansee(mon->mx, mon->my))
569 Monnam(mon), fltxt);
570 mondied(mon);
572 killed(mon);
574 hit(fltxt, mon, exclam(tmp));
577 miss(fltxt, mon);
650 mon, int type) /* returns damage to mon */
660 if (strchr("Dg", mon->data->mlet))
663 if (strchr("YF", mon->data->mlet))
667 mon->mfroz = 1;
670 if (strchr("YFgf", mon->data->mlet))
673 if (mon->data->mlet == 'D')
677 if (strchr(UNDEAD, mon->data->mlet))
679 tmp = mon->mhp + 1;
682 mon->mhp -= tmp;