summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-15 17:34:34 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-15 17:34:34 +0000
commite7502d19aa3e63aebc07e0899ac166671bef84e3 (patch)
tree4d41cc7426506631d09e246f2883dc5806c3c8fd /crawl-ref/source/makeitem.cc
parentb5bfdcc6e042fd21a41375b49a9fd47a525a3102 (diff)
downloadcrawl-ref-e7502d19aa3e63aebc07e0899ac166671bef84e3.tar.gz
crawl-ref-e7502d19aa3e63aebc07e0899ac166671bef84e3.zip
Implement part of [2595777]: Mark (non-unrandart) knives as mundane
items, as clubs, giant clubs, and giant spiked clubs are. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9091 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index b12423e474..bbcee00cdb 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -1494,7 +1494,8 @@ static bool _item_is_mundane(const item_def& item)
case OBJ_WEAPONS:
retval = (item.sub_type == WPN_CLUB
|| item.sub_type == WPN_GIANT_CLUB
- || item.sub_type == WPN_GIANT_SPIKED_CLUB);
+ || item.sub_type == WPN_GIANT_SPIKED_CLUB
+ || item.sub_type == WPN_KNIFE);
break;
default:
break;