exist, treat the name as a spell name and try to find a spellbook containing that spell.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5425 c06c8d41-db1a-0410-9941-cceddc491573
LOAF3UOCD7BGVGFWA5IPJT55URGZSKJJDMUIP6CN2VVWM5UHWTBQC static bool _book_from_spell(const char* specs, item_def &item){spell_type type = spell_by_name(specs, true);if (type == SPELL_NO_SPELL)return false;for (int i = 0; i < NUM_BOOKS; i++)for (int j = 0; j < 8; j++)if (which_spell_in_book(i, j) == type){item.sub_type = i;return true;}return false;}