comment bit

- the dropx comment has been wrong for a while, time to accept that
This commit is contained in:
cohrs
2002-04-01 00:20:58 +00:00
parent 6519e5a127
commit 587fe0b9e7
3 changed files with 9 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ taking partial count of merged objects from a container while your pack
animal_parts are not always appropriate for ravens
prevent panic if tombstone window cannot be created
clarify travel command behavior in the Guidebook
touch_artifact checks needed when snagging w/bullwhip and stealing
Platform- and/or Interface-Specific Fixes

View File

@@ -2267,7 +2267,10 @@ struct obj *obj;
pline("Snatching %s is a fatal mistake.", kbuf);
instapetrify(kbuf);
}
otmp = hold_another_object(otmp, "You drop %s!",
if (!touch_artifact(otmp, &youmonst))
dropy(otmp);
else
otmp = hold_another_object(otmp, "You drop %s!",
doname(otmp), (const char *)0);
break;
default:

View File

@@ -1111,6 +1111,10 @@ struct attack *mattk;
pline("%s finishes taking off %s suit.",
Monnam(mdef), mhis(mdef));
}
if (!touch_artifact(otmp, &youmonst)) {
dropy(otmp);
continue;
}
/* give the object to the character */
otmp = hold_another_object(otmp, "You steal %s.",
doname(otmp), "You steal: ");