diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-10 03:43:21 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-10 03:43:21 +0000 |
commit | 936f2a18fa5079cf5f5dac8277ace09848784843 (patch) | |
tree | 2a46bdba2cf6ba4e9b20b7f8805d290a74135d67 /crawl-ref/source/randart.h | |
parent | 3b3bb038d36521c1eb95b4dfd1b54ca14cef308f (diff) | |
download | crawl-ref-936f2a18fa5079cf5f5dac8277ace09848784843.tar.gz crawl-ref-936f2a18fa5079cf5f5dac8277ace09848784843.zip |
Remember and describe randart properties which have been learned via
wearing the randart. Breaks savefile compatibility for saved games
containing any randarts.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2403 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.h')
-rw-r--r-- | crawl-ref/source/randart.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/randart.h b/crawl-ref/source/randart.h index f57151b6de..45a8ac286a 100644 --- a/crawl-ref/source/randart.h +++ b/crawl-ref/source/randart.h @@ -94,16 +94,26 @@ bool does_unrandart_exist(int whun); * *********************************************************************** */ int find_okay_unrandart(unsigned char aclass, unsigned char atype = OBJ_RANDOM); -typedef FixedVector< int, RA_PROPERTIES > randart_properties_t; +typedef FixedVector< int, RA_PROPERTIES > randart_properties_t; +typedef FixedVector< bool, RA_PROPERTIES > randart_known_props_t; /* *********************************************************************** * called from: describe - fight - it_use2 - item_use - player * *********************************************************************** */ void randart_wpn_properties( const item_def &item, + randart_properties_t &proprt, + randart_known_props_t &known ); + +void randart_wpn_properties( const item_def &item, randart_properties_t &proprt ); +int randart_wpn_property( const item_def &item, int prop, + bool &known ); + int randart_wpn_property( const item_def &item, int prop ); +void randart_wpn_learn_prop( item_def &item, int prop ); +bool randart_wpn_known_prop( item_def &item, int prop ); /* *********************************************************************** * called from: dungeon |