From 6fe9d2d6362915f3ab999971c87dd2f4d09e905f Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 21 Feb 2009 19:52:14 +0000 Subject: * Tweak spell number of randart books some more. * Loosen restrictions on spell levels of unknown spells for normal books, so there are more matches even for untrained schools. * Add a new option dump_book_spells that, if set to true (default), will dump the spells even for non-randart book. Useful if you don't know the books' contents by heart and want to know spells at your disposal without checking some spoilers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9143 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/chardump.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/chardump.cc') diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 20f0e392e3..0eeacc8e8d 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -804,7 +804,9 @@ static void _sdump_inventory(dump_params &par) text += "\n" " (" + origin_desc(you.inv[j]) + ")"; } - if (is_dumpable_artefact( you.inv[j], false )) + if (is_dumpable_artefact( you.inv[j], false ) + || Options.dump_book_spells + && you.inv[j].base_type == OBJ_BOOKS) { text2 = get_item_description( you.inv[j], false, @@ -822,7 +824,7 @@ static void _sdump_inventory(dump_params &par) } } text += "\n\n"; -} // end dump_inventory() +} //--------------------------------------------------------------- // -- cgit v1.2.3-54-g00ecf