/openbsd-current/games/hack/ |
H A D | hack.mkobj.c | 80 mksobj_at(int otyp, int x, int y) argument 82 struct obj *otmp = mksobj(otyp); 107 mksobj(int otyp) argument 110 char let = objects[otyp].oc_olet; 118 otmp->otyp = otyp; 122 otmp->quan = (otmp->otyp <= ROCK) ? rn1(6,6) : 1; 130 if(otmp->otyp >= CORPSE) break; 133 if(otmp->otyp == TIN) 156 if(otmp->otyp [all...] |
H A D | hack.do_wear.c | 159 int delay = -objects[otmp->otyp].oc_delay; 165 switch(otmp->otyp) { 195 if(otmp->otyp == HELMET){ 201 } else if(otmp->otyp == SHIELD){ 203 if(uwep && uwep->otyp == TWO_HANDED_SWORD) 206 } else if(otmp->otyp == PAIR_OF_GLOVES) { 218 if(otmp->otyp != ELVEN_CLOAK || uarm2) { 233 delay = -objects[otmp->otyp].oc_delay; 289 oldprop = u.uprops[PROP(otmp->otyp)].p_flgs; 290 u.uprops[PROP(otmp->otyp)] [all...] |
H A D | hack.wield.c | 95 } else if(uarms && wep->otyp == TWO_HANDED_SWORD) 136 if(uwep->otyp == WORM_TOOTH && amount > 0) { 137 uwep->otyp = CRYSKNIFE; 143 if(uwep->otyp == CRYSKNIFE && amount < 0) { 144 uwep->otyp = WORM_TOOTH;
|
H A D | hack.eat.c | 192 if(otmp->otyp == TIN){ 194 switch(uwep->otyp) { 234 ftmp = &objects[otmp->otyp]; 236 if(otmp->otyp >= CORPSE && eatcorpse(otmp)) goto eatx; 237 if(!rn2(7) && otmp->otyp != FORTUNE_COOKIE) { 262 switch(otmp->otyp){ 289 if(otmp->otyp >= CORPSE) 294 if(otmp->otyp == DEAD_LIZARD && (Confusion > 2)) 298 if(otmp->otyp == CARROT && !Blind){ 304 if(otmp->otyp [all...] |
H A D | hack.dog.c | 167 (obj->otyp == TRIPE_RATION) ? DOGFOOD : 168 (obj->otyp < CARROT) ? ACCFOOD : 169 (obj->otyp < CORPSE) ? MANFOOD : 171 obj->otyp == DEAD_COCKATRICE) 197 xchar gx, gy, gtyp, otyp; /* current goal */ local 244 if((otyp = dogfood(obj)) <= CADAVER){ 265 otyp = dogfood(obj); 266 if(otyp > gtyp || otyp == UNDEF) continue; 268 if(otyp < MANFOO [all...] |
H A D | hack.potion.c | 81 if(!strcmp(objects[otmp->otyp].oc_descr, "smoky") && !rn2(13)) { 85 switch(otmp->otyp){ 236 impossible("What a funny potion! (%u)", otmp->otyp); 243 if(otmp->dknown && !objects[otmp->otyp].oc_name_known) { 245 objects[otmp->otyp].oc_name_known = 1; 247 } else if(!objects[otmp->otyp].oc_uname) 278 if(!objects[obj->otyp].oc_name_known && !objects[obj->otyp].oc_uname) 308 if(!isyou && !rn2(3)) switch(obj->otyp) { 360 switch(obj->otyp) { [all...] |
H A D | hack.do.c | 128 if(obj->otyp == CRYSKNIFE) 129 obj->otyp = WORM_TOOTH; 369 if(obj->otyp == EXPENSIVE_CAMERA) { 372 } else if(obj->otyp == EGG) { 384 } else if(obj->otyp == BOOMERANG) { 391 if(obj->otyp == PICK_AXE && shkcatch(obj)) 394 mon = bhit(u.dx, u.dy, (obj->otyp == ICE_BOX) ? 1 : 404 if(obj->otyp < ROCK) { 406 uwep->otyp != obj->otyp [all...] |
H A D | hack.fight.c | 216 } else if(obj->olet == WEAPON_SYM || obj->otyp == PICK_AXE) { 217 if(obj == uwep && (obj->otyp > SPEAR || obj->otyp < BOOMERANG)) 221 tmp = rnd(objects[obj->otyp].wldam); 222 if(obj->otyp == TWO_HANDED_SWORD) tmp += d(2,6); 223 else if(obj->otyp == FLAIL) tmp += rnd(4); 225 tmp = rnd(objects[obj->otyp].wsdam); 228 if(!thrown && obj == uwep && obj->otyp == BOOMERANG 238 if(mon->data->mlet == 'O' && obj->otyp == TWO_HANDED_SWORD && 241 } else switch(obj->otyp) { [all...] |
H A D | hack.zap.c | 90 switch(otmp->otyp) { 114 objects[otmp->otyp].oc_name_known = 1; 131 impossible("What an interesting wand (%u)", otmp->otyp); 145 switch(otmp->otyp) { 148 mkobj_at((obj->otyp == ROCK || obj->otyp == ENORMOUS_ROCK) 154 if(obj->otyp == ENORMOUS_ROCK) 182 impossible("What an interesting wand (%u)", otmp->otyp); 201 if(!(objects[obj->otyp].bits & NODIR) && !getdir(1)) 204 if(objects[obj->otyp] [all...] |
H A D | hack.read.c | 90 switch(scroll->otyp) { 104 objects[otmp->otyp].oc_name); 110 objects[otmp->otyp].oc_name); 115 objects[otmp->otyp].oc_name); 128 objects[otmp->otyp].oc_name); 216 objects[uwep->otyp].oc_name); 225 objects[uwep->otyp].oc_name); 486 scroll->otyp); 488 if(!objects[scroll->otyp].oc_name_known) { 490 objects[scroll->otyp] [all...] |
H A D | def.objclass.h | 81 #define ARM_BONUS(obj) ((10 - objects[obj->otyp].a_ac) + obj->spe)
|
H A D | hack.objnam.c | 101 typename(int otyp) argument 104 struct objclass *ocl = &objects[otyp]; 127 if(otyp >= TURQUOISE && otyp <= JADE) 171 int nn = objects[obj->otyp].oc_name_known; 172 char *an = objects[obj->otyp].oc_name; 173 char *dn = objects[obj->otyp].oc_descr; 174 char *un = objects[obj->otyp].oc_uname; 193 if(obj->otyp == DEAD_HOMUNCULUS && pl) { 201 if(obj->otyp [all...] |
H A D | hack.engrave.c | 222 if(otmp && otmp->otyp == WAN_FIRE && otmp->spe) { 249 if(otmp->otyp == DAGGER || otmp->otyp == TWO_HANDED_SWORD || 250 otmp->otyp == CRYSKNIFE || 251 otmp->otyp == LONG_SWORD || otmp->otyp == AXE) {
|
H A D | def.obj.h | 71 uchar otyp; member in struct:obj
|
H A D | hack.u_init.c | 341 obj->otyp = trop->trotyp; 343 if(obj->otyp == WAN_WISHING) /* gitpyr!robert */ 344 obj->otyp = WAN_DEATH; 345 obj->owt = weight(obj); /* defined after setting otyp+quan */ 348 switch(obj->otyp){
|
H A D | hack.trap.c | 299 if(uwep && uwep->otyp == DEAD_COCKATRICE){ 302 killer = objects[uwep->otyp].oc_name; 533 obj->otyp = SCR_BLANK_PAPER;
|
H A D | hack.invent.c | 284 if(otmp->ox == x && otmp->oy == y && otmp->otyp == n) 305 if(otmp->otyp == type) 808 if(Blind && otmp->otyp == DEAD_COCKATRICE && !uarmg) { 852 if(obj->otyp == otmp->otyp && 859 (obj->olet == WEAPON_SYM && obj->otyp < BOOMERANG)))) {
|
H A D | hack.shk.c | 848 tmp = 10*rnd((obj->otyp == EXPENSIVE_CAMERA) ? 150 : 30); 859 if(obj->otyp == SCR_MAIL) 879 if(obj->otyp < BOOMERANG) 881 else if(obj->otyp == LONG_SWORD || 882 obj->otyp == TWO_HANDED_SWORD) 906 tmp += objects[otmp->otyp].nutrition;
|
H A D | hack.apply.c | 92 switch(obj->otyp){ 327 if(u.uswallow || !uwep || uwep->otyp != PICK_AXE ||
|
H A D | hack.mhitu.c | 130 (!uarm || objects[uarm->otyp].a_can < rnd(3) || !rn2(50)); 304 uarm->otyp < STUDDED_LEATHER_ARMOR &&
|
H A D | hack.do_name.c | 249 str1 = &(objects[obj->otyp].oc_uname);
|
H A D | hack.end.c | 249 objects[otmp->otyp].oc_name_known = 1; 250 i = otmp->quan*objects[otmp->otyp].g_val;
|
H A D | hack.pri.c | 580 if(obj->olet == FOOD_SYM && obj->otyp >= CORPSE 586 if(obj->olet == FOOD_SYM && obj->otyp >= CORPSE
|
H A D | hack.mon.c | 422 objects[otmp->otyp].g_val != 0) 532 if (mtmp->data->mlet != 'u' || objects[otmp->otyp].g_val != 0){
|
H A D | hack.c | 458 if(obj->otyp == DEAD_COCKATRICE && !uarmg){ 465 if(obj->otyp == SCR_SCARE_MONSTER){
|