diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-11 03:23:34 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-11 03:23:34 +0000 |
commit | 37bace0de351260e14b6e1102e2f8f101d2bb162 (patch) | |
tree | 1b3b023d0920599c78d81bbae7a09fe909b2b2cb /crawl-ref/source/randart.h | |
parent | 767d1c86be4624c7c91da0b398134319d5aab612 (diff) | |
download | crawl-ref-37bace0de351260e14b6e1102e2f8f101d2bb162.tar.gz crawl-ref-37bace0de351260e14b6e1102e2f8f101d2bb162.zip |
For unidentified randart jewellery, remember and display obvious-from-wearing
effects caused by the base type item as if they were randart properties.
Related changes:
* Equpping or unequipping a ring of magical power or staff of power will
give a message about mana capacity increasing/decreasing.
* The randart property RAP_MAGICAL_POWER has been added.
randart_wpn_property() doesn't yet give this to any randarts, but
the rest of the code for it is in place.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2419 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.h')
-rw-r--r-- | crawl-ref/source/randart.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/randart.h b/crawl-ref/source/randart.h index 22af923d45..27ff3a3b19 100644 --- a/crawl-ref/source/randart.h +++ b/crawl-ref/source/randart.h @@ -47,12 +47,13 @@ enum randart_prop_type RAP_DAMAGE, RAP_CURSED, RAP_STEALTH, + RAP_MAGICAL_POWER, // 30 RAP_NUM_PROPERTIES }; // used in files.cc, newgame.cc, randart.cc {dlb} #define NO_UNRANDARTS 53 -#define RA_PROPERTIES 30 +#define RA_PROPERTIES RAP_NUM_PROPERTIES // Reserving the upper bits for later expansion/versioning. #define RANDART_SEED_MASK 0x00ffffff @@ -100,6 +101,10 @@ typedef FixedVector< bool, RA_PROPERTIES > randart_known_props_t; /* *********************************************************************** * called from: describe - fight - it_use2 - item_use - player * *********************************************************************** */ +void randart_desc_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, randart_known_props_t &known ); |