summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-19 11:19:35 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-19 11:19:35 +0000
commit811db79a78d57a056981f56879af1dcc5e3c6eea (patch)
treeb4f524f47017155c22e2899c956ea80f68b221cb /crawl-ref/source/items.cc
parentbea5c32865b925d7c2e994554cfb66853242d63a (diff)
downloadcrawl-ref-811db79a78d57a056981f56879af1dcc5e3c6eea.tar.gz
crawl-ref-811db79a78d57a056981f56879af1dcc5e3c6eea.zip
Rename show_turns to show_gold_turns, and modify the documentation
accordingly. Also, don't print that "bringing you to a total of ..." message if you previously had no gold, and change some ints to unsigned to quiet some compiler warnings. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4361 c06c8d41-db1a-0410-9941-cceddc491573
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;