]> granicus.if.org Git - nethack/commitdiff
"The" Invocation items in farewell message
authorcohrs <cohrs>
Tue, 12 Feb 2002 04:42:40 +0000 (04:42 +0000)
committercohrs <cohrs>
Tue, 12 Feb 2002 04:42:40 +0000 (04:42 +0000)
src/end.c

index fc26a84cbfb497d0f2b62680b5565d0a18f2207b..282ce827f9090ecc30a63a9e053e4ae7e1260149 100644 (file)
--- a/src/end.c
+++ b/src/end.c
@@ -494,7 +494,8 @@ winid endwin;
            otmp->known = otmp->bknown = otmp->dknown =
                otmp->rknown = 1;
            /* assumes artifacts don't have quan>1 */
-           Sprintf(pbuf, "%s (worth %ld %s and %ld points)",
+           Sprintf(pbuf, "%s%s (worth %ld %s and %ld points)",
+               !otmp->oartifact ? "The " : "",
                otmp->oartifact ? artifact_name(xname(otmp), &dummy) :
                        OBJ_NAME(objects[otmp->otyp]),
                arti_cost(otmp), currency(2L),