diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-05 06:09:49 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-05 06:09:49 +0000 |
commit | ffc2688d711c6741e0ed21d09b9137ae7f173c2a (patch) | |
tree | 2bcb3c0af9dd86d969dd44ed78e3748118997572 /crawl-ref/source/spl-book.h | |
parent | 0c5066560faff5d49fe240c76c650d00bea2129d (diff) | |
download | crawl-ref-ffc2688d711c6741e0ed21d09b9137ae7f173c2a.tar.gz crawl-ref-ffc2688d711c6741e0ed21d09b9137ae7f173c2a.zip |
Non-weighted themed randart spellbooks, and prices for randart spellbooks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7746 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.h')
-rw-r--r-- | crawl-ref/source/spl-book.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-book.h b/crawl-ref/source/spl-book.h index f61432d83d..41abf8a158 100644 --- a/crawl-ref/source/spl-book.h +++ b/crawl-ref/source/spl-book.h @@ -13,6 +13,8 @@ #include "externs.h" #include "FixVec.h" +#define SPELLBOOK_SIZE 8 + class formatted_string; enum read_book_action_type @@ -26,8 +28,9 @@ enum read_book_action_type /* *********************************************************************** * called from: dungeon - effects - shopping * *********************************************************************** */ -int book_rarity(unsigned char which_book); - +int book_rarity(unsigned char which_book); +int spell_rarity(spell_type which_spell); +void init_spell_rarities(); bool is_valid_spell_in_book( const item_def &book, int spell ); bool is_valid_spell_in_book( int splbook, int spell ); @@ -68,6 +71,8 @@ int rod_shield_leakage(); bool make_book_level_randart(item_def &book, int level = -1, int num_spells = -1); bool make_book_theme_randart(item_def &book, - int school_one = 0, int school_two = 0, + int disc1 = 0, int disc2 = 0, int num_spells = -1, int max_levels = -1); + +bool book_has_title(const item_def &book); #endif |