summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-06-01 10:58:24 -0400
committerNeil Moore <neil@s-z.org>2014-06-01 10:58:24 -0400
commit3441e6d64d92f4b750885abab6cea84f507db422 (patch)
tree5fb6081676036b23e302dd741d5ddfa2cb88240e /crawl-ref/source/shopping.cc
parent319559a1eff70eebe4ca4ae4facc39ca1a578ceb (diff)
downloadcrawl-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.cc8
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))
{