Lines Matching refs:singleobj

252 	struct obj *singleobj;  local
277 singleobj = obj;
280 singleobj = splitobj(obj, obj->quan - 1L);
281 obj_extract_self(singleobj);
284 singleobj->owornmask = 0; /* threw one of multiple weapons in hand? */
286 if (singleobj->cursed && (dx || dy) && !rn2(7)) {
288 if(is_ammo(singleobj))
292 The(xname(singleobj)), mon_nam(mon));
301 (void) drop_throw(singleobj, 0, bhitpos.x, bhitpos.y);
310 if (sym) tmp_at(DISP_FLASH, obj_to_glyph(singleobj));
315 if (ohitmon(mtmp, singleobj, range, TRUE))
320 if (singleobj->oclass == GEM_CLASS &&
321 singleobj->otyp <= LAST_GEM+9 /* 9 glass colors */
323 if (singleobj->otyp > LAST_GEM) {
324 You("catch the %s.", xname(singleobj));
327 makeknown(singleobj->otyp);
328 dropy(singleobj);
332 (void)hold_another_object(singleobj,
333 "You catch, but drop, %s.", xname(singleobj),
338 if (singleobj->oclass == POTION_CLASS) {
339 if (!Blind) singleobj->dknown = 1;
340 potionhit(&youmonst, singleobj, FALSE);
343 switch(singleobj->otyp) {
346 if (!touch_petrifies(&mons[singleobj->corpsenm])) {
348 singleobj->corpsenm);
355 hitu = thitu(8, 0, singleobj, (char *)0);
358 dam = dmgval(singleobj, &youmonst);
362 objects[singleobj->otyp].oc_skill == P_BOW) {
367 if(singleobj->otyp == ELVEN_ARROW) dam++;
370 hitv += 8 + singleobj->spe;
372 hitu = thitu(hitv, dam, singleobj, (char *)0);
374 if (hitu && singleobj->opoisoned) {
380 Strcpy(onmbuf, xname(singleobj));
381 otmp = *singleobj;
392 if(hitu && (singleobj->otyp == CREAM_PIE ||
393 singleobj->otyp == BLINDING_VENOM)) {
395 if(singleobj->otyp == CREAM_PIE) {
406 if (hitu && singleobj->otyp == EGG) {
415 (void) drop_throw(singleobj, hitu, u.ux, u.uy);
428 (void) drop_throw(singleobj, 0, bhitpos.x, bhitpos.y);