From 73743384249aa60c229a03215d5629b07421a2dc Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sat, 27 Jul 2002 19:23:20 +0000 Subject: [PATCH] payment messages 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shk.c b/src/shk.c index 96d115ebc..7bff75753 100644 --- 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) {