Lines Matching defs:otmp
213 struct obj *otmp;
221 otmp = getobj("#-)/", "write with");
222 if (!otmp)
225 if (otmp == &zeroobj)
226 otmp = 0;
227 if (otmp && otmp->otyp == WAN_FIRE && otmp->spe) {
229 otmp->spe--;
231 /* first wield otmp */
232 if (otmp != uwep) {
237 otmp = uwep;
239 if (!otmp)
241 else if (otmp->cursed)
243 aobjnam(otmp, "weld"),
244 (otmp->quan == 1) ? "itself" : "themselves");
246 pline("You now wield %s.", doname(otmp));
247 setuwep(otmp);
250 if (!otmp)
252 else if (otmp->otyp == DAGGER || otmp->otyp == TWO_HANDED_SWORD ||
253 otmp->otyp == CRYSKNIFE ||
254 otmp->otyp == LONG_SWORD || otmp->otyp == AXE) {
256 if ((int) otmp->spe <= -3) {
259 aobjnam(otmp, "are"));
291 otmp->spe++;
302 case ENGRAVE: /* here otmp != 0 */
304 int len2 = (otmp->spe + 3) * 2 + 1;
306 pline("Your %s dull.", aobjnam(otmp, "get"));
310 otmp->spe = -3;
313 otmp->spe -= len / 2;