Lines Matching refs:otmp

61 	struct obj *otmp;
63 for (otmp = ochain; otmp; otmp = otmp->nobj) {
64 if (otmp->cobj)
65 resetobjs(otmp->cobj,restore);
67 if (((otmp->otyp != CORPSE || otmp->corpsenm < SPECIAL_PM)
68 && otmp->otyp != STATUE)
69 && (!otmp->oartifact ||
70 (restore && (exist_artifact(otmp->otyp, ONAME(otmp))
71 || is_quest_artifact(otmp))))) {
72 otmp->oartifact = 0;
73 otmp->onamelth = 0;
74 *ONAME(otmp) = '\0';
75 } else if (otmp->oartifact && restore)
76 artifact_exists(otmp,ONAME(otmp),TRUE);
80 if(objects[otmp->otyp].oc_uses_known) otmp->known = 0;
81 otmp->dknown = otmp->bknown = 0;
82 otmp->rknown = 0;
83 otmp->invlet = 0;
84 otmp->no_charge = 0;
86 if (otmp->otyp == SLIME_MOLD) goodfruit(otmp->spe);
88 else if (otmp->otyp == SCR_MAIL) otmp->spe = 1;
90 else if (otmp->otyp == EGG) otmp->spe = 0;
91 else if (otmp->otyp == TIN) {
93 if (otmp->corpsenm >= LOW_PM &&
94 (mons[otmp->corpsenm].geno & G_UNIQ))
95 otmp->corpsenm = NON_PM;
96 } else if (otmp->otyp == AMULET_OF_YENDOR) {
98 otmp->otyp = FAKE_AMULET_OF_YENDOR;
99 curse(otmp);
100 } else if (otmp->otyp == CANDELABRUM_OF_INVOCATION) {
101 if (otmp->lamplit)
102 end_burn(otmp, TRUE);
103 otmp->otyp = WAX_CANDLE;
104 otmp->age = 50L; /* assume used */
105 if (otmp->spe > 0)
106 otmp->quan = (long)otmp->spe;
107 otmp->spe = 0;
108 otmp->owt = weight(otmp);
109 curse(otmp);
110 } else if (otmp->otyp == BELL_OF_OPENING) {
111 otmp->otyp = BELL;
112 curse(otmp);
113 } else if (otmp->otyp == SPE_BOOK_OF_THE_DEAD) {
114 otmp->otyp = SPE_BLANK_PAPER;
115 curse(otmp);
126 struct obj *otmp;
129 while ((otmp = invent) != 0) {
130 obj_extract_self(otmp);
131 obj_no_longer_held(otmp);
133 otmp->owornmask = 0;
135 if ((cont || artifact_light(otmp)) && obj_is_burning(otmp))
136 end_burn(otmp, TRUE); /* smother in statue */
138 if(otmp->otyp == SLIME_MOLD) goodfruit(otmp->spe);
140 if(rn2(5)) curse(otmp);
142 (void) add_to_minv(mtmp, otmp);
144 (void) add_to_container(cont, otmp);
146 place_object(otmp, u.ux, u.uy);
250 struct obj *otmp;
253 otmp = mk_named_object(STATUE, &mons[u.umonnum],
256 drop_upon_death((struct monst *)0, otmp);
257 if (!otmp) return; /* couldn't make statue */