summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc15
1 files changed, 4 insertions, 11 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 33206f31c5..ecdf5945ea 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -751,10 +751,10 @@ int spellbook_contents( item_def &book, read_book_action_type action,
int colour = DARKGREY;
if (action == RBOOK_USE_STAFF)
{
- if (you.experience_level >= level_diff
- && (book.base_type == OBJ_BOOKS?
- you.magic_points >= level_diff
- : book.plus >= level_diff * ROD_CHARGE_MULT))
+ if (book.base_type == OBJ_BOOKS?
+ you.experience_level >= level_diff
+ && you.magic_points >= level_diff
+ : book.plus >= level_diff * ROD_CHARGE_MULT)
{
colour = LIGHTGREY;
}
@@ -1499,13 +1499,6 @@ int staff_spell( int staff )
return (-1);
}
- if (you.experience_level < diff)
- {
- mprf("You need to be at least level %d to use that.", diff);
- crawl_state.zero_turns_taken();
- return (-1);
- }
-
const int flags = get_spell_flags(spell);
// Labyrinths block divinations.
if (you.level_type == LEVEL_LABYRINTH