summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-14 12:32:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-14 12:32:31 +0000
commit3f413ab79f31be4a7ae0de336ce11329505e7eed (patch)
tree16baa418a4975137cb09df1c51ff34c00179a8ac /crawl-ref/source/spl-book.cc
parent72d421a98654a1d73704397dfd9a4be3177289d0 (diff)
downloadcrawl-ref-3f413ab79f31be4a7ae0de336ce11329505e7eed.tar.gz
crawl-ref-3f413ab79f31be4a7ae0de336ce11329505e7eed.zip
* Show item type shortcuts in inventory. I think it's too intrusive for
ASCII even though it works well in tiles. * Always display memorise button because it's less confusing that way. I still can't work out why the error messages disappear right away. *sighs* * Add a short document on tiles creation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10673 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 6023dece43..ebcb7f6421 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -1475,14 +1475,15 @@ static bool _get_mem_list(spell_list &mem_spells,
return (false);
}
-bool has_spells_to_memorise()
+bool has_spells_to_memorise(bool silent)
{
spell_list mem_spells;
spells_to_books book_hash;
unsigned int num_unreadable;
unsigned int num_race;
- return _get_mem_list(mem_spells, book_hash, num_unreadable, num_race, true);
+ return _get_mem_list(mem_spells, book_hash, num_unreadable, num_race,
+ silent);
}
static bool _sort_mem_spells(spell_type a, spell_type b)
@@ -1739,8 +1740,6 @@ static bool _learn_spell_checks(spell_type specspell)
return (true);
}
-
-
bool learn_spell(spell_type specspell, const item_def *book,
bool is_safest_book)
{