summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-02-27 11:55:45 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-02-27 11:55:45 -0700
commitc77c54ec808704ad06338c50d6358d0845dde403 (patch)
tree3df26cac3b423e8c857d003f4b3d14775982cea9 /crawl-ref/source/shopping.cc
parentbc91c1a70fa22b8bed8363131c1eacf5f928ffcc (diff)
downloadcrawl-ref-c77c54ec808704ad06338c50d6358d0845dde403.tar.gz
crawl-ref-c77c54ec808704ad06338c50d6358d0845dde403.zip
Remove some duplicate item value checks.
These were arificially inflating the value of very negatively enchanted items (usually armour).
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 60b3d946a5..4ea71f164e 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -1316,11 +1316,7 @@ unsigned int item_value(item_def item, bool ident)
}
if (item_ident(item, ISFLAG_KNOW_PLUSES))
- {
valued += 10 * item.plus + 50 * item.plus2;
- if (valued < 1)
- valued = 1;
- }
if (is_artefact(item))
{
@@ -1417,12 +1413,7 @@ unsigned int item_value(item_def item, bool ident)
valued += (item.plus * 2);
if (item.plus < 0)
- {
valued += item.plus * item.plus * item.plus;
-
- if (valued < 1)
- valued = 1;
- }
}
break;
@@ -1554,11 +1545,7 @@ unsigned int item_value(item_def item, bool ident)
}
if (item_ident(item, ISFLAG_KNOW_PLUSES))
- {
valued += 50 * item.plus;
- if (valued < 1)
- valued = 1;
- }
if (is_artefact(item))
{