From 021366461aba2e0504b2722d28d2b967778b3702 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 2 Dec 2008 14:09:20 +0000 Subject: The start of randart spellbooks. Never randomly generated and only created via the wizard command &+, since there's no logic to how the random set of spells are selected and there's no valuation code in shopping.cc. No randart manuals or books of destruction, since I have no clue what they'd be like. The code allows for any book or spell to have its normal set of spells overridden by an arbitrary/customized set of spells, but this is only used by randart spellbooks as of now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7722 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 6c6eaaedf3..bb053758d6 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4295,7 +4295,7 @@ static void handle_read_book(int item_slot) return; } - const spell_type spell = which_spell_in_book(book.sub_type, + const spell_type spell = which_spell_in_book(book, letter_to_index(ltr)); if (spell == SPELL_NO_SPELL) { -- cgit v1.2.3-54-g00ecf