From ffc2688d711c6741e0ed21d09b9137ae7f173c2a Mon Sep 17 00:00:00 2001 From: zelgadis Date: Fri, 5 Dec 2008 06:09:49 +0000 Subject: 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 --- crawl-ref/source/spl-book.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spl-book.h') 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 -- cgit v1.2.3-54-g00ecf