diff options
author | Neil Moore <neil@s-z.org> | 2014-06-01 10:56:53 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-06-01 10:56:53 -0400 |
commit | 319559a1eff70eebe4ca4ae4facc39ca1a578ceb (patch) | |
tree | 14bff78ee5867b4695c1822b93324417c9e581cb /crawl-ref/source/shopping.cc | |
parent | 8da35e98ad92bab1c613fd6c31884472d50b5172 (diff) | |
download | crawl-ref-319559a1eff70eebe4ca4ae4facc39ca1a578ceb.tar.gz crawl-ref-319559a1eff70eebe4ca4ae4facc39ca1a578ceb.zip |
Count rod enchantment towards price (minmay)
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r-- | crawl-ref/source/shopping.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index 691e2bec26..b9ff155162 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -1792,8 +1792,10 @@ unsigned int item_value(item_def item, bool ident) valued = 150; else valued = 250; + + // Both max charges and enchantment. if (item_ident(item, ISFLAG_KNOW_PLUSES)) - valued += 50 * (item.plus2 / ROD_CHARGE_MULT); + valued += 50 * (item.plus2 / ROD_CHARGE_MULT + item.special); break; case OBJ_ORBS: |