HomeSort by: relevance | last modified time | path
    Searched defs:otmp (Results 1 - 22 of 22) sorted by relevancy

  /src/games/hack/
hack.bones.c 81 struct obj *otmp; local in function:savebones
96 otmp = invent;
97 while (otmp) {
98 otmp->ox = u.ux;
99 otmp->oy = u.uy;
100 otmp->age = 0; /* very long ago */
101 otmp->owornmask = 0;
103 otmp->cursed = 1;
104 if (!otmp->nobj) {
105 otmp->nobj = fobj
    [all...]
hack.mkobj.c 77 struct obj *otmp = mkobj(let); local in function:mkobj_at
78 otmp->ox = x;
79 otmp->oy = y;
80 otmp->nobj = fobj;
81 fobj = otmp;
82 return (otmp);
88 struct obj *otmp = mksobj(otyp); local in function:mksobj_at
89 otmp->ox = x;
90 otmp->oy = y;
91 otmp->nobj = fobj
115 struct obj *otmp; local in function:mksobj
    [all...]
hack.steal.c 118 struct obj *otmp; local in function:stealarm
120 for (otmp = invent; otmp; otmp = otmp->nobj)
121 if (otmp->o_id == stealoid) {
125 freeinv(otmp);
126 pline("%s steals %s!", Monnam(mtmp), doname(otmp));
127 mpickobj(mtmp, otmp);
145 struct obj *otmp; local in function:steal
240 struct obj *otmp; local in function:stealamulet
260 struct obj *otmp, *otmp2; local in function:relobj
    [all...]
hack.wizard.c 89 struct obj *otmp; local in function:amulet
97 for (otmp = invent; otmp; otmp = otmp->nobj)
98 if (otmp->olet == AMULET_SYM && !otmp->spe) {
120 struct obj *otmp; local in function:wiz_hit
122 for (otmp = fobj; otmp; otmp = otmp->nobj
    [all...]
hack.potion.c 77 struct obj *otmp, *objs; local in function:dodrink
81 otmp = getobj("!", "drink");
82 if (!otmp)
84 if (!strcmp(objects[otmp->otyp].oc_descr, "smoky") && !rn2(13)) {
88 switch (otmp->otyp) {
146 strange_feeling(otmp, "You feel threatened.");
161 strange_feeling(otmp, "You feel a pull downward.");
248 impossible("What a funny potion! (%u)", otmp->otyp);
255 if (otmp->dknown && !objects[otmp->otyp].oc_name_known)
    [all...]
hack.save.c 165 struct obj *otmp; local in function:dorecover
170 for (otmp = invent; otmp; otmp = otmp->nobj)
171 if (otmp->owornmask)
172 setworn(otmp, otmp->owornmask);
209 for (otmp = fobj; otmp; otmp = otmp->nobj
246 struct obj *otmp, *otmp2 = NULL; local in function:restobjchn
    [all...]
hack.do.c 532 struct obj *otmp; local in function:splitobj
533 otmp = newobj(0);
534 *otmp = *obj; /* copies whole structure */
535 otmp->o_id = flags.ident++;
536 otmp->onamelth = 0;
539 otmp->quan -= num;
540 otmp->owt = weight(otmp); /* -= obj->owt ? */
541 obj->nobj = otmp;
543 splitbill(obj, otmp);
    [all...]
hack.do_wear.c 76 off_msg(struct obj *otmp)
78 pline("You were wearing %s.", doname(otmp));
84 struct obj *otmp; local in function:doremarm
89 otmp = (!uarmh && !uarms && !uarmg) ? uarm :
94 if (!otmp)
96 if (!(otmp->owornmask & (W_ARMOR - W_ARM2))) {
100 if (otmp == uarmg && uwep && uwep->cursed) { /* myers@uwmacc */
104 (void) armoroff(otmp);
143 dorr(struct obj *otmp)
145 if (cursed(otmp))
190 struct obj *otmp; local in function:doweararm
255 struct obj *otmp; local in function:dowearring
395 struct obj *otmp; local in function:glibr
    [all...]
hack.read.c 105 struct obj *otmp = some_armor(); local in function:doread
106 if (!otmp) {
112 objects[otmp->otyp].oc_name);
113 otmp->rustfree = 1;
116 if (otmp->spe > 3 && rn2(otmp->spe)) {
118 objects[otmp->otyp].oc_name);
119 useup(otmp);
123 objects[otmp->otyp].oc_name);
124 otmp->cursed = 0
130 struct obj *otmp = some_armor(); local in function:doread
    [all...]
hack.apply.c 229 struct obj *otmp; local in function:out_ice_box
233 for (otmp = fcobj; otmp->nobj != obj; otmp = otmp->nobj)
234 if (!otmp->nobj)
236 otmp->nobj = obj->nobj;
248 struct obj *otmp; local in function:use_ice_box
250 for (otmp = fcobj; otmp; otmp = otmp->nobj
    [all...]
hack.do_name.c 176 struct obj *otmp, *otmp2; local in function:do_oname
204 for (otmp = invent;; otmp = otmp->nobj) {
205 if (!otmp)
207 if (otmp->nobj == obj) {
208 otmp->nobj = otmp2;
hack.eat.c 170 struct obj *otmp; local in function:doeat
176 for (otmp = fobj; otmp; otmp = otmp->nobj) {
177 if (otmp->ox == u.ux && otmp->oy == u.uy &&
178 otmp->olet == FOOD_SYM) {
180 (otmp->quan == 1) ? "is" : "are",
181 doname(otmp),
    [all...]
hack.engrave.c 213 struct obj *otmp; local in function:doengrave
221 otmp = getobj("#-)/", "write with");
222 if (!otmp)
225 if (otmp == &zeroobj)
226 otmp = 0;
227 if (otmp && otmp->otyp == WAN_FIRE && otmp->spe) {
229 otmp->spe--;
231 /* first wield otmp */
    [all...]
hack.c 153 struct obj *otmp = NULL; local in function:domove
230 while ((otmp = sobj_at(ENORMOUS_ROCK, u.ux + u.dx, u.uy + u.dy)) != NULL){
247 delobj(otmp);
252 delobj(otmp);
261 delobj(otmp);
264 otmp->ox = rx;
265 otmp->oy = ry;
266 /* pobj(otmp); */
268 atl(rx, ry, otmp->olet);
932 struct obj *otmp = invent local in function:inv_weight
956 struct obj *otmp = invent; local in function:inv_cnt
    [all...]
hack.objnam.c 406 aobjnam(struct obj *otmp, const char *verb)
408 char *bp = xname(otmp);
415 if (otmp->quan != 1) {
416 Snprintf(prefix, sizeof(prefix), "%u ", otmp->quan);
422 if (otmp->quan != 1)
644 struct obj *otmp; local in function:readobjnam
646 otmp = mksobj(typ);
648 otmp->owt += 15;
651 otmp->quan = cnt;
653 if (spe > 3 && spe > otmp->spe
    [all...]
hack.zap.c 89 /* bhitm: monster mtmp was hit by the effect of wand otmp */
91 bhitm(struct monst *mtmp, struct obj *otmp)
94 switch (otmp->otyp) {
122 objects[otmp->otyp].oc_name_known = 1;
139 impossible("What an interesting wand (%u)", otmp->otyp);
144 * object obj was hit by the effect of wand otmp
148 bhito(struct obj *obj, struct obj *otmp)
155 switch (otmp->otyp) {
195 impossible("What an interesting wand (%u)", otmp->otyp);
223 struct obj *otmp = o_at(u.ux, u.uy) local in function:dozap
250 struct obj *otmp; local in function:dozap
397 struct obj *otmp; local in function:bhit
    [all...]
hack.end.c 226 struct obj *otmp; local in function:done
250 for (otmp = invent; otmp; otmp = otmp->nobj) {
251 if (otmp->olet == GEM_SYM) {
252 objects[otmp->otyp].oc_name_known = 1;
253 i = otmp->quan * objects[otmp->otyp].g_val;
255 worthlessct += otmp->quan
    [all...]
hack.pri.c 394 struct obj *otmp; local in function:prl
414 } else if ((otmp = o_at(x, y)) && room->typ != POOL)
415 atl(x, y, otmp->olet);
433 struct obj *otmp; local in function:news0
443 else if (!Blind && (otmp = o_at(x, y)))
444 tmp = otmp->olet;
hack.invent.c 87 assigninvlet(struct obj *otmp)
96 if (obj != otmp) {
102 if (i == otmp->invlet)
103 otmp->invlet = 0;
105 if ((i = otmp->invlet) &&
116 otmp->invlet = (inuse[i] ? NOINVSYM :
124 struct obj *otmp; local in function:addinv
129 otmp = 0;
131 for (otmp = invent; /* otmp */ ; otmp = otmp->nobj)
183 struct obj *otmp; local in function:freeinv
208 struct obj *otmp; local in function:freeobj
287 struct obj *otmp; local in function:o_at
298 struct obj *otmp; local in function:sobj_at
309 struct obj *otmp; local in function:carried
319 struct obj *otmp; local in function:carrying
366 struct obj *otmp; local in function:mkgoldobj
386 struct obj *otmp; local in function:getobj
570 struct obj *otmp = invent; local in function:ggetobj
643 struct obj *otmp, *otmp2; local in function:askchain
689 struct obj *otmp; local in function:obj_to_let
730 struct obj *otmp; local in function:doinv
766 struct obj *otmp; local in function:dotypeinv
842 struct obj *otmp = NULL, *otmp0 = NULL; local in function:dolook
898 struct obj *otmp = fobj; local in function:stackobj
    [all...]
hack.mon.c 442 struct obj *otmp; local in function:m_move
443 for (otmp = fobj; otmp; otmp = otmp->nobj)
444 if (likeobjs || otmp->olet == GEM_SYM)
446 objects[otmp->otyp].g_val != 0)
447 if ((dd = DIST(omx, omy, otmp->ox, otmp->oy)) < mind) {
449 gx = otmp->ox
561 struct obj *otmp; local in function:mpickgems
    [all...]
hack.shk.c 595 struct obj *otmp = billobjs; local in function:dopayobj
599 while (otmp && otmp->nobj != obj)
600 otmp = otmp->nobj;
601 if (otmp)
602 otmp->nobj = obj->nobj;
680 splitbill(struct obj *obj, struct obj *otmp)
682 /* otmp has been split off from obj */
690 if (bp->bquan < otmp->quan)
717 struct obj *otmp; local in function:subfrombill
907 struct obj *otmp = invent; local in function:realhunger
    [all...]
  /src/sys/fs/nfs/common/
nfs_diskless.c 107 char *opts, *o, *otmp; local in function:nfs_parse_options
111 otmp = opts;
112 while ((o = strsep(&otmp, ":;, ")) != NULL) {

Completed in 253 milliseconds