Lines Matching defs:mtmp
160 savemonchn(int fd, struct monst *mtmp)
169 while (mtmp) {
170 mtmp2 = mtmp->nmon;
171 xl = mtmp->mxlth + mtmp->mnamelth;
173 bwrite(fd, mtmp, xl + sizeof(struct monst));
174 if (mtmp->minvent)
175 saveobjchn(fd, mtmp->minvent);
176 free(mtmp);
177 mtmp = mtmp2;
244 struct monst *mtmp, *mtmp2;
246 for (mtmp = fmon; mtmp; mtmp = mtmp2) {
249 mtmp2 = mtmp->nmon;
250 if (strchr(genocided, mtmp->data->mlet)) {
251 mondead(mtmp);
254 if (mtmp->mtame && tmoves > 250) {
255 mtmp->mtame = 0;
256 mtmp->mpeaceful = 0;
258 newhp = mtmp->mhp +
259 (strchr(MREGEN, mtmp->data->mlet) ? tmoves : tmoves / 20);
260 if (newhp > mtmp->mhpmax)
261 mtmp->mhp = mtmp->mhpmax;
263 mtmp->mhp = newhp;