diff options
author | Chris Oelmueller <chris.oelmueller@gmail.com> | 2014-04-25 00:59:28 +0200 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-04-30 02:54:56 -0400 |
commit | ce54174c6db7c8233c180256df4a0fb97caa9abe (patch) | |
tree | bdd0a17aab0f6404c0c3ed85498f1b501257120d /crawl-ref/source/shopping.cc | |
parent | dcd822ac7093e25c03aac6fede56a5505678c528 (diff) | |
download | crawl-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.cc | 6 |
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; |