Lines Matching defs:mon
363 * int (*fhitm)(), (*fhito)(); fns called when mon/obj hit
475 struct monst *mon;
530 if((mon = m_at(sx,sy)) &&
531 (type != -1 || mon->data->mlet != 'D')) {
532 wakeup(mon);
533 if(rnd(20) < 18 + mon->data->ac) {
534 int tmp = zhit(mon,abstype);
535 if(mon->mhp < 1) {
537 if(cansee(mon->mx,mon->my))
539 Monnam(mon), fltxt);
540 mondied(mon);
542 killed(mon);
544 hit(fltxt, mon, exclam(tmp));
547 miss(fltxt,mon);
615 /* returns damage to mon */
617 zhit(struct monst *mon, int type)
627 if(strchr("Dg", mon->data->mlet)) break;
629 if(strchr("YF", mon->data->mlet)) tmp += 7;
632 mon->mfroz = 1;
635 if(strchr("YFgf", mon->data->mlet)) break;
637 if(mon->data->mlet == 'D') tmp += 7;
640 if(strchr(UNDEAD, mon->data->mlet)) break;
641 tmp = mon->mhp+1;
644 mon->mhp -= tmp;