summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2014-04-25 00:59:28 +0200
committerShmuale Mark <shm.mark@gmail.com>2014-04-30 02:54:56 -0400
commitce54174c6db7c8233c180256df4a0fb97caa9abe (patch)
treebdd0a17aab0f6404c0c3ed85498f1b501257120d /crawl-ref/source/shopping.cc
parentdcd822ac7093e25c03aac6fede56a5505678c528 (diff)
downloadcrawl-ref-ce54174c6db7c8233c180256df4a0fb97caa9abe.tar.gz
crawl-ref-ce54174c6db7c8233c180256df4a0fb97caa9abe.zip
Account for ARTP_STEALTH when pricing artefacts
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 4bc65d9df1..5e9dc43827 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -875,6 +875,12 @@ int artefact_value(const item_def &item)
if (prop[ ARTP_NEGATIVE_ENERGY ] > 0)
ret += 3 + 3 * (prop[ARTP_NEGATIVE_ENERGY] * prop[ARTP_NEGATIVE_ENERGY]);
+ // Discount Stlth-, charge for Stlth+
+ ret += 2 * prop[ARTP_STEALTH];
+ // Stlth+ costs more than Stlth- cheapens
+ if (prop[ARTP_STEALTH] > 0)
+ ret += 2 * prop[ARTP_STEALTH];
+
// only one meaningful level:
if (prop[ ARTP_POISON ])
ret += 6;