diff options
author | Neil Moore <neil@s-z.org> | 2014-06-01 10:58:24 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-06-01 10:58:24 -0400 |
commit | 3441e6d64d92f4b750885abab6cea84f507db422 (patch) | |
tree | 5fb6081676036b23e302dd741d5ddfa2cb88240e /crawl-ref/source/shopping.cc | |
parent | 319559a1eff70eebe4ca4ae4facc39ca1a578ceb (diff) | |
download | crawl-ref-3441e6d64d92f4b750885abab6cea84f507db422.tar.gz crawl-ref-3441e6d64d92f4b750885abab6cea84f507db422.zip |
Increase the price of enchanted blowguns.
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r-- | crawl-ref/source/shopping.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index b9ff155162..b1529b8bf2 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -1102,7 +1102,13 @@ unsigned int item_value(item_def item, bool ident) } if (item_ident(item, ISFLAG_KNOW_PLUSES)) - valued += 10 * item.plus + 50 * item.plus2; + { + // Blowguns have only plus, no plus2 + if (item.sub_type == WPN_BLOWGUN) + valued += 50 * item.plus; + else + valued += 10 * item.plus + 50 * item.plus2; + } if (is_artefact(item)) { |