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/it_use2.cc | |
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/it_use2.cc')
-rw-r--r-- | crawl-ref/source/it_use2.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index 8f55fe42d8..832e7bfe2a 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -601,15 +601,14 @@ void unuse_randart(const item_def &item) { ASSERT( is_random_artefact( item ) ); - const bool ident = fully_identified(item); - randart_properties_t proprt; - randart_wpn_properties( item, proprt ); + randart_known_props_t known; + randart_wpn_properties( item, proprt, known ); if (proprt[RAP_AC]) { you.redraw_armour_class = 1; - if (!ident) + if (!known[RAP_AC]) { mprf("You feel less %s.", proprt[RAP_AC] > 0? "well-protected" : "vulnerable"); @@ -619,7 +618,7 @@ void unuse_randart(const item_def &item) if (proprt[RAP_EVASION]) { you.redraw_evasion = 1; - if (!ident) + if (!known[RAP_EVASION]) { mprf("You feel less %s.", proprt[RAP_EVASION] > 0? "nimble" : "awkward"); |