summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godpassive.cc
diff options
context:
space:
mode:
authorPekka Lampila <pekka.lampila@iki.fi>2013-04-12 15:39:25 +0300
committerNeil Moore <neil@s-z.org>2013-05-21 03:00:06 -0400
commit7627e13d3a372ce105ec4e11e65152c3c3c26813 (patch)
treeac895c91bb1d989d7563534956683c9cb7bed72c /crawl-ref/source/godpassive.cc
parentc760786370ebf743d72e1d30ba9faa13ac876852 (diff)
downloadcrawl-ref-7627e13d3a372ce105ec4e11e65152c3c3c26813.tar.gz
crawl-ref-7627e13d3a372ce105ec4e11e65152c3c3c26813.zip
Retain autopickup status on staves IDed by Ash
This allows having autopickup pick up one of each staff type. Same trick is already used on jewellery.
Diffstat (limited to 'crawl-ref/source/godpassive.cc')
-rw-r--r--crawl-ref/source/godpassive.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/godpassive.cc b/crawl-ref/source/godpassive.cc
index a1b39c4cb3..cd0d3cedab 100644
--- a/crawl-ref/source/godpassive.cc
+++ b/crawl-ref/source/godpassive.cc
@@ -415,8 +415,11 @@ bool god_id_item(item_def& item, bool silent)
ided = ISFLAG_KNOW_CURSE;
- if (item.base_type == OBJ_JEWELLERY && item_needs_autopickup(item))
+ if ((item.base_type == OBJ_JEWELLERY || item.base_type == OBJ_STAVES)
+ && item_needs_autopickup(item))
+ {
item.props["needs_autopickup"] = true;
+ }
if (is_weapon(item) || item.base_type == OBJ_ARMOUR)
ided |= ISFLAG_KNOW_PROPERTIES | ISFLAG_KNOW_TYPE;