summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-05 22:03:07 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-05 22:03:07 +1000
commit504bcf4bd3bc5297ca3c508193d7590bae6c1836 (patch)
treef80a50efbea21577b6db8e5dabfd36aa876b090d /crawl-ref/source/spl-book.cc
parentfc0e79dabbc83e24ac32461ab67cdd1cef765e91 (diff)
downloadcrawl-ref-504bcf4bd3bc5297ca3c508193d7590bae6c1836.tar.gz
crawl-ref-504bcf4bd3bc5297ca3c508193d7590bae6c1836.zip
Combine player_knows_spell, player_has_spell into player::has_spell.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 0b095e471d..baa38eb5e5 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -1393,7 +1393,7 @@ static bool _get_mem_list(spell_list &mem_spells,
{
const spell_type spell = i->first;
- if (spell == current_spell || player_knows_spell(spell))
+ if (spell == current_spell || you.has_spell(spell))
num_known++;
else if (you_cannot_memorise(spell))
num_race++;
@@ -1720,7 +1720,7 @@ static bool _learn_spell_checks(spell_type specspell)
return (false);
}
- if (player_knows_spell(specspell))
+ if (you.has_spell(specspell))
{
mpr("You already know that spell!");
return (false);