Home
last modified time | relevance | path

Searched refs:otyp (Results 1 – 25 of 28) sorted by relevance

12

/netbsd-src/games/hack/
H A Dhack.mkobj.c86 mksobj_at(int otyp, int x, int y) in mksobj_at() argument
88 struct obj *otmp = mksobj(otyp); in mksobj_at()
113 mksobj(int otyp) in mksobj() argument
116 char let = objects[otyp].oc_olet; in mksobj()
124 otmp->otyp = otyp; in mksobj()
128 otmp->quan = (otmp->otyp <= ROCK) ? rn1(6, 6) : 1; in mksobj()
137 if (otmp->otyp >= CORPSE) in mksobj()
141 if (otmp->otyp == TIN) in mksobj()
167 if (otmp->otyp == WAN_WISHING) in mksobj()
171 (objects[otmp->otyp].bits & NODIR) ? 11 : 4); in mksobj()
[all …]
H A Dhack.do_wear.c165 int delay = -objects[otmp->otyp].oc_delay; in armoroff()
171 switch (otmp->otyp) { in armoroff()
202 if (otmp->otyp == HELMET) { in doweararm()
208 } else if (otmp->otyp == SHIELD) { in doweararm()
211 if (uwep && uwep->otyp == TWO_HANDED_SWORD) in doweararm()
215 } else if (otmp->otyp == PAIR_OF_GLOVES) { in doweararm()
226 if (otmp->otyp != ELVEN_CLOAK || uarm2) { in doweararm()
243 delay = -objects[otmp->otyp].oc_delay; in doweararm()
303 oldprop = u.uprops[PROP(otmp->otyp)].p_flgs; in dowearring()
304 u.uprops[PROP(otmp->otyp)].p_flgs |= mask; in dowearring()
[all …]
H A Dhack.eat.c197 if (otmp->otyp == TIN) { in doeat()
199 switch (uwep->otyp) { in doeat()
240 ftmp = &objects[otmp->otyp]; in doeat()
242 if (otmp->otyp >= CORPSE && eatcorpse(otmp)) in doeat()
244 if (!rn2(7) && otmp->otyp != FORTUNE_COOKIE) { in doeat()
269 switch (otmp->otyp) { in doeat()
298 if (otmp->otyp >= CORPSE) in doeat()
303 if (otmp->otyp == DEAD_LIZARD && (Confusion > 2)) in doeat()
307 if (otmp->otyp == CARROT && !Blind) { in doeat()
313 if (otmp->otyp == FORTUNE_COOKIE) { in doeat()
[all …]
H A Dhack.do.c134 if (obj->otyp == CRYSKNIFE) in dropy()
135 obj->otyp = WORM_TOOTH; in dropy()
377 if (obj->otyp == EXPENSIVE_CAMERA) { in dothrow()
380 } else if (obj->otyp == EGG) { in dothrow()
392 } else if (obj->otyp == BOOMERANG) { in dothrow()
399 if (obj->otyp == PICK_AXE && shkcatch(obj)) in dothrow()
402 mon = bhit(u.dx, u.dy, (obj->otyp == ICE_BOX) ? 1 : in dothrow()
414 if (obj->otyp < ROCK) { in dothrow()
416 uwep->otyp != obj->otyp + (BOW - ARROW)) in dothrow()
421 } else if (obj->otyp == BOOMERANG) in dothrow()
[all …]
H A Dhack.potion.c84 if (!strcmp(objects[otmp->otyp].oc_descr, "smoky") && !rn2(13)) { in dodrink()
88 switch (otmp->otyp) { in dodrink()
248 impossible("What a funny potion! (%u)", otmp->otyp); in dodrink()
255 if (otmp->dknown && !objects[otmp->otyp].oc_name_known) { in dodrink()
257 objects[otmp->otyp].oc_name_known = 1; in dodrink()
259 } else if (!objects[otmp->otyp].oc_uname) in dodrink()
290 if (!objects[obj->otyp].oc_name_known && !objects[obj->otyp].oc_uname) in strange_feeling()
321 switch (obj->otyp) { in potionhit()
370 switch (obj->otyp) { in potionbreathe()
439 if (obj->otyp == ARROW || obj->otyp == DART || in dodip()
[all …]
H A Dhack.dog.c170 (obj->otyp == TRIPE_RATION) ? DOGFOOD : in dogfood()
171 (obj->otyp < CARROT) ? ACCFOOD : in dogfood()
172 (obj->otyp < CORPSE) ? MANFOOD : in dogfood()
174 obj->otyp == DEAD_COCKATRICE) in dogfood()
201 xchar gx = 0, gy = 0, gtyp, otyp; /* current goal */ in dog_move() local
251 if ((otyp = dogfood(obj)) <= CADAVER) { in dog_move()
278 otyp = dogfood(obj); in dog_move()
279 if (otyp > gtyp || otyp == UNDEF) in dog_move()
283 if (otyp < MANFOOD && in dog_move()
285 if (otyp < gtyp || (otyp == gtyp && in dog_move()
[all …]
H A Dhack.zap.c94 switch (otmp->otyp) { in bhitm()
122 objects[otmp->otyp].oc_name_known = 1; in bhitm()
139 impossible("What an interesting wand (%u)", otmp->otyp); in bhitm()
155 switch (otmp->otyp) { in bhito()
161 mkobj_at((obj->otyp == ROCK || obj->otyp == ENORMOUS_ROCK) in bhito()
167 if (obj->otyp == ENORMOUS_ROCK) in bhito()
195 impossible("What an interesting wand (%u)", otmp->otyp); in bhito()
215 if (!(objects[obj->otyp].bits & NODIR) && !getdir(1)) in dozap()
218 if (objects[obj->otyp].bits & IMMEDIATE) { in dozap()
230 switch (obj->otyp) { in dozap()
[all …]
H A Dhack.fight.c230 } else if (obj->olet == WEAPON_SYM || obj->otyp == PICK_AXE) { in hmon()
231 if (obj == uwep && (obj->otyp > SPEAR || obj->otyp < BOOMERANG)) in hmon()
235 tmp = rnd(objects[obj->otyp].wldam); in hmon()
236 if (obj->otyp == TWO_HANDED_SWORD) in hmon()
238 else if (obj->otyp == FLAIL) in hmon()
241 tmp = rnd(objects[obj->otyp].wsdam); in hmon()
244 if (!thrown && obj == uwep && obj->otyp == BOOMERANG in hmon()
256 obj->otyp == TWO_HANDED_SWORD && in hmon()
260 switch (obj->otyp) { in hmon()
391 if (uwep->olet == WEAPON_SYM || uwep->otyp == PICK_AXE) in attack()
[all …]
H A Dhack.objnam.c102 typename(int otyp) in typename() argument
106 struct objclass *ocl = &objects[otyp]; in typename()
127 if (otyp >= TURQUOISE && otyp <= JADE) in typename()
175 int nn = objects[obj->otyp].oc_name_known; in xname()
176 const char *an = objects[obj->otyp].oc_name; in xname()
177 const char *dn = objects[obj->otyp].oc_descr; in xname()
178 char *un = objects[obj->otyp].oc_uname; in xname()
197 if (obj->otyp == DEAD_HOMUNCULUS && pl) { in xname()
205 if (obj->otyp == WORM_TOOTH && pl) { in xname()
210 if (obj->otyp == CRYSKNIFE && pl) { in xname()
[all …]
H A Dhack.wield.c100 } else if (uarms && wep->otyp == TWO_HANDED_SWORD) in dowield()
141 if (uwep->otyp == WORM_TOOTH && amount > 0) { in chwepon()
142 uwep->otyp = CRYSKNIFE; in chwepon()
147 if (uwep->otyp == CRYSKNIFE && amount < 0) { in chwepon()
148 uwep->otyp = WORM_TOOTH; in chwepon()
H A Dhack.read.c97 switch (scroll->otyp) { in doread()
112 objects[otmp->otyp].oc_name); in doread()
118 objects[otmp->otyp].oc_name); in doread()
123 objects[otmp->otyp].oc_name); in doread()
136 objects[otmp->otyp].oc_name); in doread()
229 objects[uwep->otyp].oc_name); in doread()
237 objects[uwep->otyp].oc_name); in doread()
520 scroll->otyp); in doread()
522 if (!objects[scroll->otyp].oc_name_known) { in doread()
524 objects[scroll->otyp].oc_name_known = 1; in doread()
[all …]
H A Dhack.engrave.c227 if (otmp && otmp->otyp == WAN_FIRE && otmp->spe) { in doengrave()
252 else if (otmp->otyp == DAGGER || otmp->otyp == TWO_HANDED_SWORD || in doengrave()
253 otmp->otyp == CRYSKNIFE || in doengrave()
254 otmp->otyp == LONG_SWORD || otmp->otyp == AXE) { in doengrave()
H A Dhack.u_init.c349 obj->otyp = trop->trotyp; in ini_inv()
350 else if (obj->otyp == WAN_WISHING) /* gitpyr!robert */ in ini_inv()
351 obj->otyp = WAN_DEATH; in ini_inv()
355 switch (obj->otyp) { in ini_inv()
H A Dhack.invent.c301 if (otmp->ox == x && otmp->oy == y && otmp->otyp == n) in sobj_at()
322 if (otmp->otyp == type) in carrying()
867 if (Blind && otmp->otyp == DEAD_COCKATRICE && !uarmg) { in dolook()
910 if (obj->otyp == otmp->otyp && in merged()
917 (obj->olet == WEAPON_SYM && obj->otyp < BOOMERANG)))) { in merged()
H A Dhack.trap.c305 if (uwep && uwep->otyp == DEAD_COCKATRICE) { in selftouch()
308 killer = objects[uwep->otyp].oc_name; in selftouch()
539 obj->otyp = SCR_BLANK_PAPER; in drown()
H A Dhack.shk.c852 tmp = 10 * rnd((obj->otyp == EXPENSIVE_CAMERA) ? 150 : 30); in getprice()
863 if (obj->otyp == SCR_MAIL) in getprice()
883 if (obj->otyp < BOOMERANG) in getprice()
885 else if (obj->otyp == LONG_SWORD || in getprice()
886 obj->otyp == TWO_HANDED_SWORD) in getprice()
910 tmp += objects[otmp->otyp].nutrition; in realhunger()
H A Ddef.objclass.h82 #define ARM_BONUS(obj) ((10 - objects[obj->otyp].a_ac) + obj->spe)
H A Ddef.obj.h72 uchar otyp; member
H A Dhack.mhitu.c134 (!uarm || objects[uarm->otyp].a_can < rnd(3) || !rn2(50)); in mhitu()
317 uarm->otyp < STUDDED_LEATHER_ARMOR && in mhitu()
H A Dhack.apply.c95 switch (obj->otyp) { in doapply()
339 if (u.uswallow || !uwep || uwep->otyp != PICK_AXE || in dig()
H A Dhack.do_name.c259 str1 = &(objects[obj->otyp].oc_uname); in docall()
H A Dhack.pri.c626 if (obj->olet == FOOD_SYM && obj->otyp >= CORPSE in seeobjs()
632 if (obj->olet == FOOD_SYM && obj->otyp >= CORPSE in seeobjs()
H A Dhack.end.c252 objects[otmp->otyp].oc_name_known = 1; in done()
253 i = otmp->quan * objects[otmp->otyp].g_val; in done()
H A Dhack.mon.c446 objects[otmp->otyp].g_val != 0) in m_move()
565 if (mtmp->data->mlet != 'u' || objects[otmp->otyp].g_val != 0) { in mpickgems()
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/
H A Dzvol.h49 extern int zvol_open(dev_t *devp, int flag, int otyp, cred_t *cr);
51 extern int zvol_close(dev_t dev, int flag, int otyp, cred_t *cr);

12