summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-30 03:10:52 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-30 03:10:52 +0000
commit31151c9dae68053ae4240151ea97feab423ed6da (patch)
tree962c0ef66507514bc96a0cbef5b452f76560472c /crawl-ref/source/itemprop.cc
parentf988965b472fba78de9e85684fcc1504dc163408 (diff)
downloadcrawl-ref-31151c9dae68053ae4240151ea97feab423ed6da.tar.gz
crawl-ref-31151c9dae68053ae4240151ea97feab423ed6da.zip
Mark sling bullets as not having a racial type in set_equip_race(),
since they're effectively a special variety of stone, and since slings are never generated with a racial type either. Update relevant comments as well. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2943 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index a6fe89442f..85c76271ea 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -650,7 +650,9 @@ void set_equip_race( item_def &item, unsigned long flags )
break;
case OBJ_MISSILES:
- if (item.sub_type == MI_STONE || item.sub_type == MI_LARGE_ROCK
+ if (item.sub_type == MI_STONE
+ || item.sub_type == MI_LARGE_ROCK
+ || item.sub_type == MI_SLING_BULLET
|| item.sub_type == MI_THROWING_NET)
{
return;