diff options
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index a11b5648b5..893853c075 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1049,8 +1049,14 @@ static int _ammo_count(const item_def *launcher) continue; const item_def &item = you.inv[i]; - if (item.base_type == OBJ_MISSILES && item.sub_type == mt) + if (item.base_type != OBJ_MISSILES) + continue; + + if (item.sub_type == mt + || mt == MI_STONE && item.sub_type == MI_SLING_BULLET) + { count += item.quantity; + } } return (count); |