Home | History | Annotate | Download | only in hack

Lines Matching defs:otmp

170 	struct obj     *otmp;
176 for (otmp = fobj; otmp; otmp = otmp->nobj) {
177 if (otmp->ox == u.ux && otmp->oy == u.uy &&
178 otmp->olet == FOOD_SYM) {
180 (otmp->quan == 1) ? "is" : "are",
181 doname(otmp),
182 (otmp->quan == 1) ? "it" : "one");
184 if (otmp->quan != 1)
185 (void) splitobj(otmp, 1);
186 freeobj(otmp);
187 otmp = addinv(otmp);
188 addtobill(otmp);
193 otmp = getobj("%", "eat");
194 if (!otmp)
197 if (otmp->otyp == TIN) {
221 if (otmp->quan > 1) {
224 obj = splitobj(otmp, 1);
225 if (otmp == uwep)
228 dropx(otmp);
235 tin.tin = otmp;
240 ftmp = &objects[otmp->otyp];
242 if (otmp->otyp >= CORPSE && eatcorpse(otmp))
244 if (!rn2(7) && otmp->otyp != FORTUNE_COOKIE) {
269 switch (otmp->otyp) {
298 if (otmp->otyp >= CORPSE)
303 if (otmp->otyp == DEAD_LIZARD && (Confusion > 2))
307 if (otmp->otyp == CARROT && !Blind) {
313 if (otmp->otyp == FORTUNE_COOKIE) {
319 } else if (otmp->otyp == LUMP_OF_ROYAL_JELLY) {
344 useup(otmp);
456 poisonous(struct obj *otmp)
458 return (strchr(POISONOUS, CORPSE_I_TO_C(otmp->otyp)) != 0);
463 eatcorpse(struct obj *otmp)
465 char let = CORPSE_I_TO_C(otmp->otyp);
467 if (let != 'a' && moves > otmp->age + 50 + rn2(100)) {
472 u.usick_cause = objects[otmp->otyp].oc_name;