Home | History | Annotate | Download | only in hack

Lines Matching defs:otmp

76 off_msg(struct obj *otmp)
78 pline("You were wearing %s.", doname(otmp));
84 struct obj *otmp;
89 otmp = (!uarmh && !uarms && !uarmg) ? uarm :
94 if (!otmp)
96 if (!(otmp->owornmask & (W_ARMOR - W_ARM2))) {
100 if (otmp == uarmg && uwep && uwep->cursed) { /* myers@uwmacc */
104 (void) armoroff(otmp);
143 dorr(struct obj *otmp)
145 if (cursed(otmp))
147 ringoff(otmp);
148 off_msg(otmp);
153 cursed(struct obj *otmp)
155 if (otmp->cursed) {
163 armoroff(struct obj *otmp)
165 int delay = -objects[otmp->otyp].oc_delay;
166 if (cursed(otmp))
168 setworn((struct obj *) 0, otmp->owornmask & W_ARMOR);
171 switch (otmp->otyp) {
182 off_msg(otmp);
190 struct obj *otmp;
195 otmp = getobj("[", "wear");
196 if (!otmp)
198 if (otmp->owornmask & W_ARMOR) {
202 if (otmp->otyp == HELMET) {
208 } else if (otmp->otyp == SHIELD) {
215 } else if (otmp->otyp == PAIR_OF_GLOVES) {
226 if (otmp->otyp != ELVEN_CLOAK || uarm2) {
234 if (otmp == uwep && uwep->cursed) {
240 setworn(otmp, mask);
241 if (otmp == uwep)
243 delay = -objects[otmp->otyp].oc_delay;
248 otmp->known = 1;
255 struct obj *otmp;
263 otmp = getobj("=", "wear");
264 if (!otmp)
266 if (otmp->owornmask & W_RING) {
270 if (otmp == uleft || otmp == uright) {
274 if (otmp == uwep && uwep->cursed) {
300 setworn(otmp, mask);
301 if (otmp == uwep)
303 oldprop = u.uprops[PROP(otmp->otyp)].p_flgs;
304 u.uprops[PROP(otmp->otyp)].p_flgs |= mask;
305 switch (otmp->otyp) {
314 u.ustr += otmp->spe;
315 u.ustrmax += otmp->spe;
323 u.udaminc += otmp->spe;
326 prinv(otmp);
395 struct obj *otmp;
403 if ((otmp = uleft) != Null(obj)) {
405 dropx(otmp);
407 if ((otmp = uright) != Null(obj)) {
409 dropx(otmp);
412 if ((otmp = uwep) != Null(obj)) {
415 dropx(otmp);