From bca18c2aa4a437d136fa9c1a3885b993a065c837 Mon Sep 17 00:00:00 2001 From: dolorous Date: Wed, 11 Feb 2009 17:02:11 +0000 Subject: Fix part of [2578176]: Fix help database lookups of spell names, so that Bolt of Inaccuracy is properly listed as being in one of the rods of destruction. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9024 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/command.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/command.cc') diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 55023f0af5..ae0c88f9a1 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -1343,7 +1343,8 @@ static bool _do_description(std::string key, std::string type, append_missile_info(desc); desc += "$"; } - else if (get_item_by_name(&mitm[thing_created], name, OBJ_BOOKS) + else if (type == "spell" + || get_item_by_name(&mitm[thing_created], name, OBJ_BOOKS) || get_item_by_name(&mitm[thing_created], name, OBJ_STAVES)) { if (!_append_books(desc, mitm[thing_created], key)) -- cgit v1.2.3-54-g00ecf