diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-02 16:32:48 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-02 16:32:48 +0000 |
commit | 84ca717b1d480e8dbf86510b5522a821e439a88a (patch) | |
tree | 1cafb985572b567fdf60fe531ea2a0a96f8e8f61 /crawl-ref/source/spl-book.cc | |
parent | 3c5008169d58c73e20fd400c3ed919fa5bd8a3bc (diff) | |
download | crawl-ref-84ca717b1d480e8dbf86510b5522a821e439a88a.tar.gz crawl-ref-84ca717b1d480e8dbf86510b5522a821e439a88a.zip |
[1862240] Allow mummies to use rods of smiting, removed minimum level-restriction for rods.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3171 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 15 |
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 |