Searched refs:otmp (Results 26 - 50 of 144) sorted by relevance

123456

/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dweapon.c122 * of "otmp" against the monster.
125 hitval(otmp, mon)
126 struct obj *otmp;
131 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp));
134 tmp += otmp->spe;
137 tmp += objects[otmp->otyp].oc_hitbon;
142 if (Is_weapon && otmp->blessed &&
145 if (is_spear(otmp) &&
149 if (otmp
328 struct obj *otmp; local
361 register struct obj *otmp; local
488 register struct obj *otmp; local
[all...]
H A Dpray.c122 struct obj *otmp; local
169 ((otmp = unchanger()) != 0 && otmp->cursed)))
184 otmp = which_armor(u.usteed, W_SADDLE);
185 if (Cursed_obj(otmp, SADDLE)) return TROUBLE_SADDLE;
208 register struct obj *otmp; local
212 for (otmp = invent; otmp; otmp = otmp
268 struct obj *otmp = 0; local
936 register struct obj *otmp; local
990 struct obj *otmp; local
1035 register struct obj* otmp; local
1122 register struct obj *otmp; local
1847 register struct obj *otmp; local
[all...]
H A Dwizard.c102 register struct obj *otmp; local
104 for(otmp = mtmp->minvent; otmp; otmp = otmp->nobj)
105 if(otmp->otyp == AMULET_OF_YENDOR) return(1);
113 register struct obj *otmp; local
115 for(otmp = mtmp->minvent; otmp; otmp
159 register struct obj *otmp; local
191 register struct obj *otmp; local
223 register struct obj *otmp; local
337 struct obj *otmp; local
[all...]
H A Dmthrowu.c141 ohitmon(mtmp, otmp, range, verbose)
143 struct obj *otmp; /* missile; might be destroyed by drop_throw */
156 tmp = 5 + find_mac(mtmp) + omon_adj(mtmp, otmp, FALSE);
159 if (vis) miss(distant_name(otmp, mshot_xname), mtmp);
163 (void) drop_throw(otmp, 0, mtmp->mx, mtmp->my);
166 } else if (otmp->oclass == POTION_CLASS) {
169 if (vis) otmp->dknown = 1;
170 potionhit(mtmp, otmp, FALSE);
173 damage = dmgval(otmp, mtmp);
174 if (otmp
488 struct obj *otmp, *mwep; local
622 register struct obj *otmp; local
737 register struct obj *otmp; local
753 struct obj *otmp = *obj_p; local
[all...]
H A Ddetect.c29 register struct obj* otmp; local
35 for (otmp = obj->cobj; otmp; otmp = otmp->nobj)
36 if (otmp->oclass == oclass) return otmp;
37 else if (Has_contents(otmp) && (temp = o_in(otmp, oclass)))
49 register struct obj* otmp; local
67 struct obj *otmp; local
84 register struct obj *otmp; local
411 register struct obj *obj, *otmp = (struct obj *)0; local
1053 register struct obj *otmp; local
[all...]
H A Dengrave.c459 struct obj *otmp; /* Object selected with which to engrave */ local
504 otmp = getobj(styluses, "write with");
505 if(!otmp) return(0); /* otmp == zeroobj if fingers */
507 if (otmp == &zeroobj) writer = makeplural(body_part(FINGER));
508 else writer = xname(otmp);
513 if (!freehand() && otmp != uwep && !otmp->owornmask) {
523 if (otmp->oclass != WAND_CLASS && !can_reach_floor()) {
533 if (otmp
[all...]
H A Dlock.c134 register struct obj *otmp; local
180 while ((otmp = xlock.box->cobj) != 0) {
181 obj_extract_self(otmp);
182 if(!rn2(3) || otmp->oclass == POTION_CLASS) {
183 chest_shatter_msg(otmp);
185 loss += stolen_value(otmp, u.ux, u.uy,
187 if (otmp->quan == 1L) {
188 obfree(otmp, (struct obj *) 0);
191 useup(otmp);
193 if (xlock.box->otyp == ICE_BOX && otmp
232 struct obj *otmp; local
439 register struct obj *otmp; local
[all...]
H A Dobjnam.c797 not_fully_identified(otmp)
798 register struct obj *otmp;
802 if (otmp->oclass == COIN_CLASS) return FALSE; /* always fully ID'd */
805 if (!otmp->known || !otmp->dknown ||
807 (!otmp->bknown && otmp->otyp != SCR_MAIL) ||
809 !otmp->bknown ||
811 !objects[otmp->otyp].oc_name_known) /* ?redundant? */
813 if (otmp
1757 register struct obj *otmp; local
[all...]
H A Dmon.c664 register struct obj *otmp; local
672 for (otmp = level.objects[mtmp->mx][mtmp->my];
673 otmp; otmp = otmp->nexthere) {
674 if (mtmp->data == &mons[PM_RUST_MONSTER] && !is_rustprone(otmp))
676 if (is_metallic(otmp) && !obj_resists(otmp, 5, 95) &&
677 touch_artifact(otmp,mtmp)) {
678 if (mtmp->data == &mons[PM_RUST_MONSTER] && otmp
753 register struct obj *otmp, *otmp2; local
871 register struct obj *otmp, *otmp2; local
1273 struct obj *otmp; local
1363 struct obj *otmp = which_armor(mon, W_AMUL); local
1601 struct obj *otmp, *obj, *oldminvent; local
1749 register struct obj *otmp; local
2553 register struct obj *otmp, *otmp2; local
2640 struct obj *otmp; local
[all...]
H A Dpotion.c328 register struct obj *otmp; local
360 otmp = getobj(beverages, "drink");
361 if(!otmp) return(0);
362 otmp->in_use = TRUE; /* you've opened the stopper */
366 potion_descr = OBJ_DESCR(objects[otmp->otyp]);
372 useup(otmp);
377 djinni_from_bottle(otmp);
378 useup(otmp);
382 return dopotion(otmp);
386 dopotion(otmp)
1696 struct obj *otmp; local
[all...]
H A Dzap.c101 /* bhitm: monster mtmp was hit by the effect of wand or spell otmp */
103 bhitm(mtmp, otmp)
105 struct obj *otmp;
110 int dmg, otyp = otmp->otyp;
134 (void) resist(mtmp, otmp->oclass, dmg, TELL);
140 if (!resist(mtmp, otmp->oclass, 0, NOTELL)) {
141 mon_adjust_speed(mtmp, -1, otmp);
152 if (!resist(mtmp, otmp->oclass, 0, NOTELL)) {
153 mon_adjust_speed(mtmp, 1, otmp);
169 if (!resist(mtmp, otmp
367 struct obj *otmp; local
740 struct obj *otmp, *otmp2; local
1033 register struct obj *otmp, *otmp2; local
1206 struct obj *otmp; local
1717 register struct obj *otmp, *next_obj; local
2241 struct obj *otmp; local
2291 struct obj *otmp; local
3285 struct obj *otmp; local
3528 struct obj *otmp; local
4096 struct obj *otmp, nothing; local
[all...]
H A Dread.c171 p_glow1(otmp)
172 register struct obj *otmp;
174 Your("%s %s briefly.", xname(otmp),
175 otense(otmp, Blind ? "vibrate" : "glow"));
179 p_glow2(otmp,color)
180 register struct obj *otmp;
184 xname(otmp),
185 otense(otmp, Blind ? "vibrate" : "glow"),
652 register struct obj *otmp; local
674 otmp
1342 register struct obj *otmp; local
[all...]
H A Dshk.c189 struct obj *otmp; local
204 for (otmp = level.objects[sx][sy]; otmp; otmp = otmp->nexthere)
205 otmp->no_charge = 0;
1426 struct obj *otmp; local
1430 if ((otmp = bp_to_obj(bp)) != 0) {
1434 if (bp->useup) otmp->quan = bp->bquan;
1440 if (pass == bp->useup && otmp
1777 register struct obj *otmp; local
1937 register struct obj *otmp; local
1966 register struct obj *otmp; local
1985 register struct obj *otmp; local
2003 register struct obj *otmp; local
2139 register struct obj *otmp; local
2343 register struct obj *otmp; local
2383 register struct obj *otmp; local
2408 register struct obj *otmp; local
3070 register struct obj *otmp; local
3626 register struct obj *otmp; local
3646 register struct obj *otmp; local
[all...]
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dpray.c122 struct obj *otmp; local
169 ((otmp = unchanger()) != 0 && otmp->cursed)))
184 otmp = which_armor(u.usteed, W_SADDLE);
185 if (Cursed_obj(otmp, SADDLE)) return TROUBLE_SADDLE;
208 register struct obj *otmp; local
212 for (otmp = invent; otmp; otmp = otmp
268 struct obj *otmp = 0; local
936 register struct obj *otmp; local
990 struct obj *otmp; local
1035 register struct obj* otmp; local
1122 register struct obj *otmp; local
1847 register struct obj *otmp; local
[all...]
H A Dwizard.c102 register struct obj *otmp; local
104 for(otmp = mtmp->minvent; otmp; otmp = otmp->nobj)
105 if(otmp->otyp == AMULET_OF_YENDOR) return(1);
113 register struct obj *otmp; local
115 for(otmp = mtmp->minvent; otmp; otmp
159 register struct obj *otmp; local
191 register struct obj *otmp; local
223 register struct obj *otmp; local
337 struct obj *otmp; local
[all...]
H A Dmthrowu.c141 ohitmon(mtmp, otmp, range, verbose)
143 struct obj *otmp; /* missile; might be destroyed by drop_throw */
156 tmp = 5 + find_mac(mtmp) + omon_adj(mtmp, otmp, FALSE);
159 if (vis) miss(distant_name(otmp, mshot_xname), mtmp);
163 (void) drop_throw(otmp, 0, mtmp->mx, mtmp->my);
166 } else if (otmp->oclass == POTION_CLASS) {
169 if (vis) otmp->dknown = 1;
170 potionhit(mtmp, otmp, FALSE);
173 damage = dmgval(otmp, mtmp);
174 if (otmp
488 struct obj *otmp, *mwep; local
622 register struct obj *otmp; local
737 register struct obj *otmp; local
753 struct obj *otmp = *obj_p; local
[all...]
H A Ddetect.c29 register struct obj* otmp; local
35 for (otmp = obj->cobj; otmp; otmp = otmp->nobj)
36 if (otmp->oclass == oclass) return otmp;
37 else if (Has_contents(otmp) && (temp = o_in(otmp, oclass)))
49 register struct obj* otmp; local
67 struct obj *otmp; local
84 register struct obj *otmp; local
411 register struct obj *obj, *otmp = (struct obj *)0; local
1053 register struct obj *otmp; local
[all...]
H A Dengrave.c459 struct obj *otmp; /* Object selected with which to engrave */ local
504 otmp = getobj(styluses, "write with");
505 if(!otmp) return(0); /* otmp == zeroobj if fingers */
507 if (otmp == &zeroobj) writer = makeplural(body_part(FINGER));
508 else writer = xname(otmp);
513 if (!freehand() && otmp != uwep && !otmp->owornmask) {
523 if (otmp->oclass != WAND_CLASS && !can_reach_floor()) {
533 if (otmp
[all...]
H A Dlock.c134 register struct obj *otmp; local
180 while ((otmp = xlock.box->cobj) != 0) {
181 obj_extract_self(otmp);
182 if(!rn2(3) || otmp->oclass == POTION_CLASS) {
183 chest_shatter_msg(otmp);
185 loss += stolen_value(otmp, u.ux, u.uy,
187 if (otmp->quan == 1L) {
188 obfree(otmp, (struct obj *) 0);
191 useup(otmp);
193 if (xlock.box->otyp == ICE_BOX && otmp
232 struct obj *otmp; local
439 register struct obj *otmp; local
[all...]
H A Dobjnam.c797 not_fully_identified(otmp)
798 register struct obj *otmp;
802 if (otmp->oclass == COIN_CLASS) return FALSE; /* always fully ID'd */
805 if (!otmp->known || !otmp->dknown ||
807 (!otmp->bknown && otmp->otyp != SCR_MAIL) ||
809 !otmp->bknown ||
811 !objects[otmp->otyp].oc_name_known) /* ?redundant? */
813 if (otmp
1757 register struct obj *otmp; local
[all...]
H A Dmon.c664 register struct obj *otmp; local
672 for (otmp = level.objects[mtmp->mx][mtmp->my];
673 otmp; otmp = otmp->nexthere) {
674 if (mtmp->data == &mons[PM_RUST_MONSTER] && !is_rustprone(otmp))
676 if (is_metallic(otmp) && !obj_resists(otmp, 5, 95) &&
677 touch_artifact(otmp,mtmp)) {
678 if (mtmp->data == &mons[PM_RUST_MONSTER] && otmp
753 register struct obj *otmp, *otmp2; local
871 register struct obj *otmp, *otmp2; local
1273 struct obj *otmp; local
1363 struct obj *otmp = which_armor(mon, W_AMUL); local
1601 struct obj *otmp, *obj, *oldminvent; local
1749 register struct obj *otmp; local
2553 register struct obj *otmp, *otmp2; local
2640 struct obj *otmp; local
[all...]
H A Dpotion.c328 register struct obj *otmp; local
360 otmp = getobj(beverages, "drink");
361 if(!otmp) return(0);
362 otmp->in_use = TRUE; /* you've opened the stopper */
366 potion_descr = OBJ_DESCR(objects[otmp->otyp]);
372 useup(otmp);
377 djinni_from_bottle(otmp);
378 useup(otmp);
382 return dopotion(otmp);
386 dopotion(otmp)
1696 struct obj *otmp; local
[all...]
H A Dzap.c101 /* bhitm: monster mtmp was hit by the effect of wand or spell otmp */
103 bhitm(mtmp, otmp)
105 struct obj *otmp;
110 int dmg, otyp = otmp->otyp;
134 (void) resist(mtmp, otmp->oclass, dmg, TELL);
140 if (!resist(mtmp, otmp->oclass, 0, NOTELL)) {
141 mon_adjust_speed(mtmp, -1, otmp);
152 if (!resist(mtmp, otmp->oclass, 0, NOTELL)) {
153 mon_adjust_speed(mtmp, 1, otmp);
169 if (!resist(mtmp, otmp
367 struct obj *otmp; local
740 struct obj *otmp, *otmp2; local
1033 register struct obj *otmp, *otmp2; local
1206 struct obj *otmp; local
1717 register struct obj *otmp, *next_obj; local
2241 struct obj *otmp; local
2291 struct obj *otmp; local
3285 struct obj *otmp; local
3528 struct obj *otmp; local
4096 struct obj *otmp, nothing; local
[all...]
H A Dread.c171 p_glow1(otmp)
172 register struct obj *otmp;
174 Your("%s %s briefly.", xname(otmp),
175 otense(otmp, Blind ? "vibrate" : "glow"));
179 p_glow2(otmp,color)
180 register struct obj *otmp;
184 xname(otmp),
185 otense(otmp, Blind ? "vibrate" : "glow"),
652 register struct obj *otmp; local
674 otmp
1342 register struct obj *otmp; local
[all...]
H A Dshk.c189 struct obj *otmp; local
204 for (otmp = level.objects[sx][sy]; otmp; otmp = otmp->nexthere)
205 otmp->no_charge = 0;
1426 struct obj *otmp; local
1430 if ((otmp = bp_to_obj(bp)) != 0) {
1434 if (bp->useup) otmp->quan = bp->bquan;
1440 if (pass == bp->useup && otmp
1777 register struct obj *otmp; local
1937 register struct obj *otmp; local
1966 register struct obj *otmp; local
1985 register struct obj *otmp; local
2003 register struct obj *otmp; local
2139 register struct obj *otmp; local
2343 register struct obj *otmp; local
2383 register struct obj *otmp; local
2408 register struct obj *otmp; local
3070 register struct obj *otmp; local
3626 register struct obj *otmp; local
3646 register struct obj *otmp; local
[all...]

Completed in 179 milliseconds

123456