Searched refs:mtmp2 (Results 1 – 10 of 10) sorted by relevance
| /netbsd-src/games/hack/ |
| H A D | hack.worm.c | 210 struct monst *mtmp2; in cutworm() local 232 mtmp2 = newmonst(0); in cutworm() 233 *mtmp2 = *mtmp; in cutworm() 234 mtmp2->mxlth = mtmp2->mnamelth = 0; in cutworm() 237 if (rn2(3) || !getwn(mtmp2)) { in cutworm() 238 monfree(mtmp2); in cutworm() 241 tmp2 = mtmp2->wormno; in cutworm() 254 mtmp2->mhpmax = mtmp2->mhp = in cutworm() 255 d(mtmp2->data->mlevel, 8); in cutworm() 256 mtmp2->mx = wtmp->wx; in cutworm() [all …]
|
| H A D | hack.dog.c | 194 struct monst *mtmp2; in dog_move() local 367 mtmp2 = m_at(nx, ny); in dog_move() 368 if (mtmp2 == NULL) in dog_move() 370 if (mtmp2->data->mlevel >= mdat->mlevel + 2 || in dog_move() 371 mtmp2->data->mlet == 'c') in dog_move() 376 if (hitmm(mtmp, mtmp2) == 1 && rn2(4) && in dog_move() 377 mtmp2->mlstmv != moves && in dog_move() 378 hitmm(mtmp2, mtmp) == 2) in dog_move() 493 struct monst *mtmp2; in tamedog() local 516 mtmp2 = newmonst(sizeof(struct edog) + mtmp->mnamelth); in tamedog() [all …]
|
| H A D | hack.do_name.c | 125 struct monst *mtmp, *mtmp2; in do_mname() local 158 mtmp2 = newmonst(mtmp->mxlth + lth); in do_mname() 159 *mtmp2 = *mtmp; in do_mname() 161 ((char *) mtmp2->mextra)[i] = ((char *) mtmp->mextra)[i]; in do_mname() 162 mtmp2->mnamelth = lth; in do_mname() 163 (void) strcpy(NAME(mtmp2), buf); in do_mname() 164 replmon(mtmp, mtmp2); in do_mname()
|
| H A D | hack.save.c | 273 struct monst *mtmp, *mtmp2 = NULL; in restmonchn() local 285 mtmp2 = 0; in restmonchn() 295 mtmp2->nmon = mtmp; in restmonchn() 303 mtmp2 = mtmp; in restmonchn() 305 if (first && mtmp2->nmon) { in restmonchn() 307 mtmp2->nmon = 0; in restmonchn()
|
| H A D | hack.lev.c | 162 struct monst *mtmp2; in savemonchn() local 170 mtmp2 = mtmp->nmon; in savemonchn() 177 mtmp = mtmp2; in savemonchn() 244 struct monst *mtmp, *mtmp2; in getlev() local 246 for (mtmp = fmon; mtmp; mtmp = mtmp2) { in getlev() 249 mtmp2 = mtmp->nmon; in getlev()
|
| H A D | hack.mon.c | 319 struct monst *mtmp2; in m_move() local 499 mtmp2 = m_at(nix, niy); in m_move() 500 if (mtmp2 == NULL) in m_move() 502 if (hitmm(mtmp, mtmp2) == 1 && rn2(4) && in m_move() 503 hitmm(mtmp2, mtmp) == 2) in m_move() 721 replmon(struct monst *mtmp, struct monst *mtmp2) in replmon() argument 725 mtmp2->nmon = fmon; in replmon() 726 fmon = mtmp2; in replmon() 728 u.ustuck = mtmp2; in replmon() 729 if (mtmp2->isshk) in replmon() [all …]
|
| H A D | hack.wizard.c | 274 struct monst *mtmp2; in clonewiz() local 276 if ((mtmp2 = makemon(PM_WIZARD, mtmp->mx, mtmp->my)) != NULL) { in clonewiz() 278 unpmon(mtmp2); in clonewiz() 279 mtmp2->mappearance = wizapp[rn2(sizeof(wizapp) - 1)]; in clonewiz()
|
| H A D | hack.vault.c | 89 replgd(struct monst *mtmp __unused, struct monst *mtmp2 __unused) in replgd() 378 replgd(struct monst *mtmp, struct monst *mtmp2) in replgd() argument 381 guard = mtmp2; in replgd()
|
| H A D | hack.read.c | 257 struct monst *mtmp, *mtmp2; in doread() local 276 for (mtmp = fmon; mtmp; mtmp = mtmp2) { in doread() 277 mtmp2 = mtmp->nmon; in doread()
|
| H A D | hack.shk.c | 143 replshk(struct monst *mtmp, struct monst *mtmp2) in replshk() argument 212 replshk(struct monst *mtmp, struct monst *mtmp2) in replshk() argument 215 shopkeeper = mtmp2; in replshk()
|