summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 05:14:32 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 05:14:32 +0000
commit94b43ee8dcbc9c0244e6c86250b0393399118bc2 (patch)
tree984adaebbbc241d86db91218ef8a8fb585de7657 /crawl-ref/source/shopping.cc
parent12e8a8922368a4bd47be85a418785ec0d9318392 (diff)
downloadcrawl-ref-94b43ee8dcbc9c0244e6c86250b0393399118bc2.tar.gz
crawl-ref-94b43ee8dcbc9c0244e6c86250b0393399118bc2.zip
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8490 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index ebd5c9ed25..3f0a8f4a17 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -286,7 +286,7 @@ static bool _in_a_shop( int shopidx )
if (!total_cost)
{
snprintf( info, INFO_SIZE, "You have %d gold piece%s.", you.gold,
- you.gold == 1 ? "" : "s" );
+ you.gold > 1 ? "s" : "" );
textcolor(YELLOW);
}
@@ -295,9 +295,9 @@ static bool _in_a_shop( int shopidx )
snprintf( info, INFO_SIZE, "You now have %d gold piece%s. "
"You are short %d gold piece%s for the purchase.",
you.gold,
- you.gold == 1 ? "" : "s",
+ you.gold > 1 ? "s" : "",
total_cost - you.gold,
- (total_cost - you.gold == 1) ? "" : "s" );
+ (total_cost - you.gold > 1) ? "s" : "" );
textcolor(LIGHTRED);
}
@@ -306,9 +306,9 @@ static bool _in_a_shop( int shopidx )
snprintf( info, INFO_SIZE, "You now have %d gold piece%s. "
"After the purchase, you will have %d gold piece%s.",
you.gold,
- you.gold == 1 ? "" : "s",
+ you.gold > 1 ? "s" : "",
you.gold - total_cost,
- (you.gold - total_cost == 1) ? "" : "s" );
+ (you.gold - total_cost > 1) ? "s" : "" );
textcolor(YELLOW);
}