Home
last modified time | relevance | path

Searched refs:uball (Results 1 – 12 of 12) sorted by relevance

/original-bsd/games/hack/
H A Dhack.trap.c357 if(!uchain || !uball){
361 uball->ox = uchain->ox = u.ux;
362 uball->oy = uchain->oy = u.uy;
366 if(!carried(uball)){
367 uball->nobj = fobj;
368 fobj = uball;
374 if(!carried(uball)){ in unplacebc()
375 freeobj(uball); in unplacebc()
376 unpobj(uball); in unplacebc()
H A Dhack.steal.c137 if(Punished && otmp == uball){
142 uball->spe = 0;
143 uball = (struct obj *) 0; /* superfluous */
H A Dhack.do.c197 if(uwep != uball && rn2(3)){
217 if(uwep != uball && !up /* %% */ && rn2(5)){
324 (!Punished || obj != uball) ? 8 : !u.ustuck ? 5 : 1, in dothrow()
360 if(!Punished || obj != uball) tmp += 2; in dothrow()
409 if(Punished && obj == uball && in dothrow()
H A Dhack.read.c136 uball->spe = 0; in doread()
137 uball->owornmask &= ~W_BALL; in doread()
138 uchain = uball = (struct obj *) 0; in doread()
415 uball->owt += 15; in doread()
421 uball->spe = 1; /* special ball (see save) */ in doread()
H A Dhack.Decl.c22 *uleft = 0, *uchain = 0, *uball = 0; variable
H A Dhack.c225 if(carried(uball)) { in domove()
230 if(DIST(u.ux+u.dx, u.uy+u.dy, uball->ox, uball->oy) < 3){ in domove()
232 movobj(uchain, uball->ox, uball->oy); in domove()
236 if(inv_weight() + (int) uball->owt/2 > 0) { in domove()
243 movobj(uball, uchain->ox, uchain->oy); in domove()
244 unpobj(uball); /* BAH %% */ in domove()
H A Dhack.worn.c18 { W_BALL, &uball },
H A Dhack.save.c146 if(!uball){
152 uball = otmp;
H A Dhack.h48 extern struct obj *uball; /* defined if PUNISHED */
H A Dhack.u_init.c183 uarm = uarm2 = uarmh = uarms = uarmg = uwep = uball = uchain = in u_init()
H A Dhack.apply.c116 (Punished && (obj == uball || obj == uchain))){
H A Dhack.zap.c76 if(obj == uball || obj == uchain)