summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-13 20:13:50 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-13 20:13:50 +0000
commitaa0fd003178a75843f1162975bfc59d5e729ac10 (patch)
treea015b55fe5cc76d21910df0e4378d829ad742631 /crawl-ref/source/spl-book.h
parent242dc5781f55d94eab065f53b41e78dd34280dd0 (diff)
downloadcrawl-ref-aa0fd003178a75843f1162975bfc59d5e729ac10.tar.gz
crawl-ref-aa0fd003178a75843f1162975bfc59d5e729ac10.zip
Cleaned up spellbook handling code, fixes 1699962.
Also fixed a bad bug with spell validity (good thing that spellbooks 1-4 are long, huh...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1300 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.h')
-rw-r--r--crawl-ref/source/spl-book.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/crawl-ref/source/spl-book.h b/crawl-ref/source/spl-book.h
index 80631f1feb..a577b97f80 100644
--- a/crawl-ref/source/spl-book.h
+++ b/crawl-ref/source/spl-book.h
@@ -18,13 +18,6 @@
#include "menu.h"
#include "FixVec.h"
-
-// used in dungeon.cc, it_use3.cc, spl-book.cc, spl-book.h - {dlb}
-#define SPELLBOOK_SIZE 9
-// used in spl-book.cc, spl-book.h - {dlb}
-#define NUMBER_SPELLBOOKS 60
-
-
// updated 24may2000 {dlb}
/* ***********************************************************************
* called from: dungeon - effects - shopping
@@ -32,10 +25,6 @@
char book_rarity(unsigned char which_book);
-// updated 24may2000 {dlb}
-/* ***********************************************************************
- * called from: it_use3 - item_use - spl-book
- * *********************************************************************** */
bool is_valid_spell_in_book( unsigned int splbook, int spell );
@@ -52,13 +41,9 @@ unsigned char read_book( item_def &item, int action );
* *********************************************************************** */
bool learn_spell(void);
-
-// updated 24may2000 {dlb}
-/* ***********************************************************************
- * called from: it_use3 - item_use - spl-book
- * *********************************************************************** */
spell_type which_spell_in_book(int sbook_type, int spl);
+// returns amount practised (or -1 for abort)
int staff_spell( int zap_device_2 );
bool undead_cannot_memorise(unsigned char spell, unsigned char being);