diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-26 13:46:39 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-26 13:46:39 +1000 |
commit | 0a55f4c9f2c0a4c004a1bd6d9a2385b61134c233 (patch) | |
tree | f156ee573352fcb25976c531bbda4875ff0d420a /crawl-ref/source/spl-book.cc | |
parent | 9db07b06e8c59d76596875751e239e5fff4ac50e (diff) | |
download | crawl-ref-0a55f4c9f2c0a4c004a1bd6d9a2385b61134c233.tar.gz crawl-ref-0a55f4c9f2c0a4c004a1bd6d9a2385b61134c233.zip |
Auto-ID rods when wielded (cbus).
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index af1a551caa..66d9c9d194 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -1924,23 +1924,7 @@ int staff_spell( int staff ) return (-1); } - bool need_id = false; - if (!item_type_known(istaff)) - { - set_ident_type( OBJ_STAVES, istaff.sub_type, ID_KNOWN_TYPE ); - set_ident_flags( istaff, ISFLAG_KNOW_TYPE ); - need_id = true; - } - if (!item_ident( istaff, ISFLAG_KNOW_PLUSES)) - { - set_ident_flags( istaff, ISFLAG_KNOW_PLUSES ); - need_id = true; - } - if (need_id) - { - mprf(MSGCH_EQUIPMENT, "%s", istaff.name(DESC_INVENTORY_EQUIP).c_str()); - you.wield_change = true; - } + // ID code got moved to item_use::wield_effects. {due} const int num_spells = count_staff_spells(istaff, false); |