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."
This commit is contained in:
nethack.allison
2002-07-27 19:23:20 +00:00
parent bca0aca579
commit 7374338424

View File

@@ -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) {