Lines Matching defs:otmp
166 struct obj *otmp;
172 for(otmp = fobj; otmp; otmp = otmp->nobj) {
173 if(otmp->ox == u.ux && otmp->oy == u.uy &&
174 otmp->olet == FOOD_SYM) {
176 (otmp->quan == 1) ? "is" : "are",
177 doname(otmp),
178 (otmp->quan == 1) ? "it" : "one");
180 if(otmp->quan != 1)
181 (void) splitobj(otmp, 1);
182 freeobj(otmp);
183 otmp = addinv(otmp);
184 addtobill(otmp);
189 otmp = getobj("%", "eat");
190 if(!otmp) return(0);
192 if(otmp->otyp == TIN){
216 if(otmp->quan > 1) {
219 obj = splitobj(otmp, 1);
220 if(otmp == uwep) setuwep(obj);
222 dropx(otmp);
229 tin.tin = otmp;
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 == FORTUNE_COOKIE) {
311 if(otmp->otyp == LUMP_OF_ROYAL_JELLY) {
333 useup(otmp);
441 poisonous(struct obj *otmp)
443 return(strchr(POISONOUS, CORPSE_I_TO_C(otmp->otyp)) != 0);
448 eatcorpse(struct obj *otmp)
450 char let = CORPSE_I_TO_C(otmp->otyp);
453 if(let != 'a' && moves > otmp->age + 50 + rn2(100)) {
458 u.usick_cause = objects[otmp->otyp].oc_name;