summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index aaa31a7b80..a93f00eacb 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -291,30 +291,30 @@ 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" : "" );
+ snprintf(info, INFO_SIZE, "You have %d gold piece%s.", you.gold,
+ you.gold != 1 ? "s" : "");
textcolor(YELLOW);
}
else if (total_cost > you.gold)
{
- 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" : "",
- total_cost - you.gold,
- (total_cost - you.gold > 1) ? "s" : "" );
+ 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" : "",
+ total_cost - you.gold,
+ (total_cost - you.gold != 1) ? "s" : "");
textcolor(LIGHTRED);
}
else
{
- 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 - total_cost,
- (you.gold - total_cost > 1) ? "s" : "" );
+ 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 - total_cost,
+ (you.gold - total_cost != 1) ? "s" : "");
textcolor(YELLOW);
}