| /src/games/hack/ |
| hack.wizard.c | 90 struct monst *mtmp; local in function:amulet 95 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 96 if (mtmp->data->mlet == '1' && mtmp->msleep && !rn2(40)) 99 mtmp->msleep = 0; 100 if (dist(mtmp->mx, mtmp->my) > 2 262 struct monst *mtmp; local in function:aggravate [all...] |
| hack.mhitu.c | 77 mhitu(struct monst *mtmp) 79 const struct permonst *mdat = mtmp->data; 86 if (mtmp != u.ustuck) { 89 monnam(mtmp)); 93 done_in_by(mtmp); 98 switch (mdat->mlet) { /* now mtmp == u.ustuck */ 100 youswld(mtmp, (u.uac > 0) ? u.uac + 4 : 4, 104 youswld(mtmp, rnd(6), 7, "The lurker above"); 107 youswld(mtmp, d(2, 4), 12, "The purple worm"); 115 done_in_by(mtmp); [all...] |
| hack.mon.c | 91 struct monst *mtmp; local in function:movemon 99 * note that mtmp or mtmp->nmon might get killed while mtmp 103 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 104 if (mtmp->mlstmv < moves) 110 mtmp->mlstmv = moves 579 struct monst *mtmp; local in function:mfndpos 738 struct monst *mtmp; local in function:relmon 765 struct monst *mtmp; local in function:dmonsfree 929 struct monst *mtmp; local in function:rescham [all...] |
| hack.dog.c | 88 struct monst *mtmp = makemon(&li_dog, u.ux, u.uy); local in function:makedog 89 if (!mtmp) 91 initedog(mtmp); 95 initedog(struct monst *mtmp) 97 mtmp->mtame = mtmp->mpeaceful = 1; 98 EDOG(mtmp)->hungrytime = 1000 + moves; 99 EDOG(mtmp)->eattime = 0; 100 EDOG(mtmp)->droptime = 0; 101 EDOG(mtmp)->dropdist = 10000 114 struct monst *mtmp; local in function:losedogs 132 struct monst *mtmp; local in function:keepdogs [all...] |
| hack.steal.c | 86 stealgold(struct monst *mtmp) 91 mtmp->mgold += gold->amount; 96 Monnam(mtmp)); 98 rloc(mtmp); 99 mtmp->mflee = 1; 104 mtmp->mgold += tmp; 105 rloc(mtmp); 106 mtmp->mflee = 1; 117 struct monst *mtmp; local in function:stealarm 122 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon [all...] |
| hack.makemon.c | 85 struct monst *mtmp; local in function:makemon 119 mtmp = newmonst(ptr->pxlth); 120 *mtmp = zeromonst; /* clear all entries in structure */ 122 ((char *) &(mtmp->mextra[0]))[i] = 0; 123 mtmp->nmon = fmon; 124 fmon = mtmp; 125 mtmp->m_id = flags.ident++; 126 mtmp->data = ptr; 127 mtmp->mxlth = ptr->pxlth; 129 mtmp->mhpmax = mtmp->mhp = 80 [all...] |
| hack.bones.c | 83 struct monst *mtmp; local in function:savebones 112 if (!(mtmp = makemon(PM_GHOST, u.ux, u.uy))) 114 mtmp->mx = u.ux; 115 mtmp->my = u.uy; 116 mtmp->msleep = 1; 117 (void) strcpy((char *) mtmp->mextra, plname); 119 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) [all...] |
| hack.do_name.c | 125 struct monst *mtmp, *mtmp2; local in function:do_mname 131 mtmp = m_at(cx, cy); 132 if (!mtmp) { 140 if (mtmp->mimic) { 148 pline("What do you want to call %s? ", lmonnam(mtmp)); 158 mtmp2 = newmonst(mtmp->mxlth + lth); 159 *mtmp2 = *mtmp; 160 for (i = 0; i < mtmp->mxlth; i++) 161 ((char *) mtmp2->mextra)[i] = ((char *) mtmp->mextra)[i]; 164 replmon(mtmp, mtmp2) [all...] |
| hack.search.c | 78 struct monst *mtmp; local in function:findit 109 } else if ((mtmp = m_at(zx, zy)) != NULL) 110 if (mtmp->mimic) { 111 seemimic(mtmp); 123 struct monst *mtmp; local in function:dosearch 151 if ((mtmp = m_at(x, y)) != NULL) 152 if (mtmp->mimic) { 153 seemimic(mtmp); 198 wakeup(struct monst *mtmp) 200 mtmp->msleep = 0 [all...] |
| hack.worm.c | 82 getwn(struct monst *mtmp) 87 mtmp->wormno = tmp; 95 initworm(struct monst *mtmp) 98 int tmp = mtmp->wormno; 103 wtmp->wx = mtmp->mx; 104 wtmp->wy = mtmp->my; 110 worm_move(struct monst *mtmp) 113 int tmp = mtmp->wormno; 115 wtmp->wx = mtmp->mx; 116 wtmp->wy = mtmp->my [all...] |
| hack.trap.c | 211 mintrap(struct monst *mtmp) 213 struct trap *trap = t_at(mtmp->mx, mtmp->my); 214 int wasintrap = mtmp->mtrapped; 217 mtmp->mtrapped = 0; /* perhaps teleported? */ 220 mtmp->mtrapped = 0; 223 int in_sight = cansee(mtmp->mx, mtmp->my); 225 if (mtmp->mtrapseen & (1 << tt)) { 230 mtmp->mtrapseen |= (1 << tt) [all...] |
| hack.lev.c | 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; local in function:getlev [all...] |
| hack.apply.c | 141 struct monst *mtmp; local in function:use_camera 155 if ((mtmp = bchit(u.dx, u.dy, COLNO, '!')) != NULL) { 156 if (mtmp->msleep) { 157 mtmp->msleep = 0; 158 pline("The flash awakens %s.", monnam(mtmp)); /* a3 */ 159 } else if (mtmp->data->mlet != 'y') 160 if (mtmp->mcansee || mtmp->mblinded) { 161 int tmp = dist(mtmp->mx, mtmp->my) 273 struct monst *mtmp = (struct monst *) 0; local in function:bchit 300 struct monst *mtmp = fmon; local in function:use_whistle 317 struct monst *mtmp = fmon; local in function:use_magic_whistle 441 struct monst *mtmp; local in function:use_pick_axe [all...] |
| hack.fight.c | 179 fightm(struct monst *mtmp) 183 if (mon != mtmp) { 184 if (DIST(mon->mx, mon->my, mtmp->mx, mtmp->my) < 3) 186 return (hitmm(mtmp, mon)); 346 attack(struct monst *mtmp) 351 mdat = mtmp->data; 356 if (mdat->mlet == 'L' && !mtmp->mfroz && !mtmp->msleep && 357 !mtmp->mconf && mtmp->mcansee && !rn2(7) & [all...] |
| hack.save.c | 225 struct monst *mtmp; local in function:dorecover 227 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 228 if (mtmp->m_id == mid) 232 u.ustuck = mtmp; 273 struct monst *mtmp, *mtmp2 = NULL; local in function:restmonchn 291 mtmp = newmonst(xl); 293 first = mtmp; [all...] |
| hack.read.c | 167 struct monst *mtmp; local in function:doread 169 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 170 if (cansee(mtmp->mx, mtmp->my)) { 172 mtmp->mflee = mtmp->mfroz = 173 mtmp->msleep = 0 246 struct monst *mtmp; local in function:doread 257 struct monst *mtmp, *mtmp2; local in function:doread 470 struct monst *mtmp; local in function:doread [all...] |
| hack.pri.c | 276 struct monst *mtmp; local in function:docrt 296 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 297 mtmp->mdispl = 0; 323 struct monst *mtmp; local in function:docorner 330 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon 393 struct monst *mtmp; local in function:prl 578 struct monst *mtmp; local in function:vism_at 641 struct monst *mtmp; local in function:seemons [all...] |
| hack.zap.c | 89 /* bhitm: monster mtmp was hit by the effect of wand otmp */ 91 bhitm(struct monst *mtmp, struct obj *otmp) 93 wakeup(mtmp); 96 if (u.uswallow || rnd(20) < 10 + mtmp->data->ac) { 98 hit("wand", mtmp, exclam(tmp)); 99 mtmp->mhp -= tmp; 100 if (mtmp->mhp < 1) 101 killed(mtmp); 103 miss("wand", mtmp); 106 mtmp->mspeed = MSLOW 276 struct monst *mtmp = u.ustuck; local in function:dozap 396 struct monst *mtmp; local in function:bhit 440 struct monst *mtmp; local in function:boomhit 692 struct monst *mtmp = NULL; local in function:revive [all...] |
| hack.shk.c | 143 replshk(struct monst *mtmp, struct monst *mtmp2) 191 shkname(struct monst *mtmp) /* called in do_name.c */ 193 return (ESHK(mtmp)->shknam); 197 shkdead(struct monst *mtmp) /* called in mon.c */ 199 struct eshk *eshk = ESHK(mtmp); 203 if (mtmp == shopkeeper) { 212 replshk(struct monst *mtmp, struct monst *mtmp2) 214 if (mtmp == shopkeeper) { 225 struct monst *mtmp; local in function:setpaid 232 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon 288 struct monst *mtmp; local in function:inshop 354 struct monst *mtmp; local in function:findshk 637 struct monst *mtmp; local in function:bp_to_obj 940 struct monst *mtmp; local in function:shk_move [all...] |
| def.monst.h | 121 #define NAME(mtmp) (((char *) mtmp->mextra) + mtmp->mxlth)
|
| hack.potion.c | 78 struct monst *mtmp; local in function:dodrink 150 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 151 if (mtmp->mx > 0) 152 at(mtmp->mx, mtmp->my, mtmp->data->mlet); 453 struct monst *mtmp; local in function:ghost_from_bottle [all...] |
| hack.mkmaze.c | 92 struct monst *mtmp; local in function:makemaz 106 if ((mtmp = makemon(&hell_hound, zx, zy)) != NULL) 107 mtmp->msleep = 1; 108 if ((mtmp = makemon(PM_WIZARD, zx + 1, zy)) != NULL) { 109 mtmp->msleep = 1;
|
| hack.vault.c | 89 replgd(struct monst *mtmp __unused, struct monst *mtmp2 __unused) 163 struct monst *mtmp; local in function:setgd 164 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 165 if (mtmp->isgd) { 166 guard = mtmp; 378 replgd(struct monst *mtmp, struct monst *mtmp2) 380 if (mtmp == guard [all...] |
| hack.end.c | 133 done_in_by(struct monst *mtmp) 137 if (mtmp->data->mlet == ' ') { 139 "the ghost of %s", (char *) mtmp->mextra); 141 } else if (mtmp->mnamelth) { 143 mtmp->data->mname, NAME(mtmp)); 145 } else if (mtmp->minvis) { 146 Snprintf(buf, sizeof(buf), "invisible %s", mtmp->data->mname); 149 killer = mtmp->data->mname; 225 struct monst *mtmp; local in function:done [all...] |
| /src/lib/libpam/modules/pam_nologin/ |
| pam_nologin.c | 79 char *mtmp; local in function:pam_sm_authenticate 136 mtmp = malloc(len + 1); 137 if (mtmp != NULL) { 138 read(fd, mtmp, len); 139 mtmp[len] = '\0'; 140 pam_error(pamh, "%s", mtmp); 141 free(mtmp);
|