summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-17 01:38:19 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-17 01:38:19 +0000
commitf8c5f8fbe018a1a08538d99a4b9c281a7e69709c (patch)
tree3ffa5b23d1d29fdbc741bec6d3cf2954d210de9b
parent1f5977e328ef1c57374d99d44fd3de295b58d49f (diff)
downloadcrawl-ref-f8c5f8fbe018a1a08538d99a4b9c281a7e69709c.tar.gz
crawl-ref-f8c5f8fbe018a1a08538d99a4b9c281a7e69709c.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9789 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/shopping.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 02ed7a0482..aaa31a7b80 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -807,7 +807,7 @@ unsigned int item_value( item_def item, bool ident )
if (item_type_known(item))
{
- switch (get_weapon_brand( item ))
+ switch (get_weapon_brand(item))
{
case SPWPN_NORMAL:
default: // randart
@@ -879,7 +879,7 @@ unsigned int item_value( item_def item, bool ident )
valued /= 10;
}
- if (item_ident( item, ISFLAG_KNOW_PLUSES ))
+ if (item_ident(item, ISFLAG_KNOW_PLUSES))
{
if (item.plus >= 0)
{
@@ -902,7 +902,6 @@ unsigned int item_value( item_def item, bool ident )
if (valued < 1)
valued = 1;
- //break;
}
if (item.plus2 < 0)
@@ -915,10 +914,10 @@ unsigned int item_value( item_def item, bool ident )
}
}
- if (is_random_artefact( item ))
+ if (is_random_artefact(item))
{
if (item_type_known(item))
- valued += (7 * randart_value( item ));
+ valued += (7 * randart_value(item));
else
valued += 50;
}
@@ -964,7 +963,7 @@ unsigned int item_value( item_def item, bool ident )
if (item_type_known(item))
{
- switch (get_ammo_brand( item ))
+ switch (get_ammo_brand(item))
{
case SPMSL_NORMAL:
default:
@@ -1009,7 +1008,7 @@ unsigned int item_value( item_def item, bool ident )
valued /= 10;
}
- if (item_ident( item, ISFLAG_KNOW_PLUSES ))
+ if (item_ident(item, ISFLAG_KNOW_PLUSES))
{
if (item.plus >= 0)
valued += (item.plus * 2);