]> granicus.if.org Git - nethack/commitdiff
payment messages
authornethack.allison <nethack.allison>
Sat, 27 Jul 2002 19:23:20 +0000 (19:23 +0000)
committernethack.allison <nethack.allison>
Sat, 27 Jul 2002 19:23:20 +0000 (19:23 +0000)
Change the message for paying off consumed items to
"You paid for a xxxx at a cost of nnn gold pieces."
to distinguish it from objects that you still have in your inventory which is
"You bought a xxx for nnn gold pieces."

src/shk.c

index 96d115ebce7b52f4dfbad6030f81c344faf5967a..7bff7575378cfc4851200d7130effb81e3374c6f 100644 (file)
--- a/src/shk.c
+++ b/src/shk.c
@@ -1534,7 +1534,9 @@ boolean itemize;
        }
 
        pay(ltmp, shkp);
-       shk_names_obj(shkp, obj, "bought %s for %ld gold piece%s.%s", ltmp, "");
+       shk_names_obj(shkp, obj, consumed ?
+                       "paid for %s at a cost of %ld gold piece%s.%s" :
+                       "bought %s for %ld gold piece%s.%s", ltmp, "");
        obj->quan = save_quan;          /* restore original count */
        /* quan => amount just bought, save_quan => remaining unpaid count */
        if (consumed) {