Home
last modified time | relevance | path

Searched refs:mtmp2 (Results 1 – 10 of 10) sorted by relevance

/original-bsd/games/hack/
H A Dhack.worm.c136 mtmp2 = newmonst(0);
137 *mtmp2 = *mtmp;
138 mtmp2->mxlth = mtmp2->mnamelth = 0;
142 monfree(mtmp2);
145 tmp2 = mtmp2->wormno;
157 mtmp2->mhpmax = mtmp2->mhp =
159 mtmp2->mx = wtmp->wx;
160 mtmp2->my = wtmp->wy;
161 mtmp2->nmon = fmon;
162 fmon = mtmp2;
[all …]
H A Dhack.dog.c110 register struct monst *mtmp2; local
274 mtmp2 = m_at(nx,ny);
276 mtmp2->data->mlet == 'c')
280 if(hitmm(mtmp, mtmp2) == 1 && rn2(4) &&
281 mtmp2->mlstmv != moves &&
282 hitmm(mtmp2,mtmp) == 2) return(2);
384 register struct monst *mtmp2; local
407 *mtmp2 = *mtmp;
408 mtmp2->mxlth = sizeof(struct edog);
410 initedog(mtmp2);
[all …]
H A Dhack.do_name.c51 register struct monst *mtmp, *mtmp2; in do_mname() local
84 mtmp2 = newmonst(mtmp->mxlth + lth); in do_mname()
85 *mtmp2 = *mtmp; in do_mname()
87 ((char *) mtmp2->mextra)[i] = ((char *) mtmp->mextra)[i]; in do_mname()
88 mtmp2->mnamelth = lth; in do_mname()
89 (void) strcpy(NAME(mtmp2), buf); in do_mname()
90 replmon(mtmp,mtmp2); in do_mname()
H A Dhack.save.c204 register struct monst *mtmp, *mtmp2; local
216 mtmp2 = 0;
223 else mtmp2->nmon = mtmp;
231 mtmp2 = mtmp;
233 if(first && mtmp2->nmon){
235 mtmp2->nmon = 0;
H A Dhack.wizard.c181 register struct monst *mtmp2; local
183 if(mtmp2 = makemon(PM_WIZARD, mtmp->mx, mtmp->my)) {
185 unpmon(mtmp2);
186 mtmp2->mappearance = wizapp[rn2(sizeof(wizapp)-1)];
H A Dhack.lev.c106 register struct monst *mtmp2; local
114 mtmp2 = mtmp->nmon;
120 mtmp = mtmp2;
190 register struct monst *mtmp, *mtmp2; local
193 for(mtmp = fmon; mtmp; mtmp = mtmp2) {
196 mtmp2 = mtmp->nmon;
H A Dhack.vault.c9 replgd(mtmp,mtmp2) struct monst *mtmp, *mtmp2; {} variable
252 replgd(mtmp,mtmp2) in replgd() argument
253 register struct monst *mtmp, *mtmp2; in replgd()
256 guard = mtmp2;
H A Dhack.mon.c240 register struct monst *mtmp2; local
413 mtmp2 = m_at(nix,niy);
414 if(hitmm(mtmp,mtmp2) == 1 && rn2(4) &&
415 hitmm(mtmp2,mtmp) == 2) return(2);
599 replmon(mtmp,mtmp2) in replmon() argument
600 register struct monst *mtmp, *mtmp2; in replmon()
604 mtmp2->nmon = fmon;
605 fmon = mtmp2;
606 if(u.ustuck == mtmp) u.ustuck = mtmp2;
607 if(mtmp2->isshk) replshk(mtmp,mtmp2);
[all …]
H A Dhack.read.c183 register struct monst *mtmp, *mtmp2; in doread() local
201 for(mtmp = fmon; mtmp; mtmp = mtmp2){ in doread()
202 mtmp2 = mtmp->nmon; in doread()
H A Dhack.shk.c23 replshk(mtmp,mtmp2) struct monst *mtmp, *mtmp2; {} variable
88 replshk(mtmp,mtmp2) in replshk() argument
89 register struct monst *mtmp, *mtmp2; in replshk()
92 shopkeeper = mtmp2;