takes your corpse

use corpse_xname to generate corpse names as a result of yname() and
also as used in the steal code.  Now messages read "your XXX corpse".
This commit is contained in:
cohrs
2002-02-10 07:34:26 +00:00
parent 316a94d50f
commit c789541cb7
2 changed files with 7 additions and 2 deletions

View File

@@ -309,7 +309,9 @@ gotobj:
cant_take:
pline("%s tries to %s your %s but gives up.",
Monnam(mtmp), how[rn2(SIZE(how))],
(otmp->owornmask & W_ARMOR) ? equipname(otmp) : xname(otmp));
(otmp->owornmask & W_ARMOR) ? equipname(otmp) :
(otmp->otyp == CORPSE) ? corpse_xname(otmp, FALSE) :
xname(otmp));
/* the fewer items you have, the less likely the thief
is going to stick around to try again (0) instead of
running away (1) */