summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/chardump.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-21 19:52:14 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-21 19:52:14 +0000
commit6fe9d2d6362915f3ab999971c87dd2f4d09e905f (patch)
tree3815ce19535e80e61c54ab53234616c885688d2a /crawl-ref/source/chardump.cc
parent2846de53110f56c1732a3e9b2ab71b396af3c5a0 (diff)
downloadcrawl-ref-6fe9d2d6362915f3ab999971c87dd2f4d09e905f.tar.gz
crawl-ref-6fe9d2d6362915f3ab999971c87dd2f4d09e905f.zip
* 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
Diffstat (limited to 'crawl-ref/source/chardump.cc')
-rw-r--r--crawl-ref/source/chardump.cc6
1 files changed, 4 insertions, 2 deletions
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()
+}
//---------------------------------------------------------------
//