summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 6cc75ce3bd..541b339301 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1475,9 +1475,17 @@ int move_item_to_player( int obj, int quant_got, bool quiet )
if (!quiet)
{
- mprf("You pick up %d gold piece%s, bringing you to a "
- "total of %d gold pieces.",
- quant_got, (quant_got > 1) ? "s" : "", you.gold );
+ if (quant_got == you.gold)
+ {
+ mprf("You pick up %d gold piece%s.",
+ quant_got, (quant_got > 1) ? "s" : "");
+ }
+ else
+ {
+ mprf("You pick up %d gold piece%s, bringing you to a "
+ "total of %d gold pieces.",
+ quant_got, (quant_got > 1) ? "s" : "", you.gold );
+ }
}
you.turn_is_over = true;