diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-04-28 13:25:56 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-04-28 13:25:56 -0400 |
commit | f1bfef0f000886095c15114588e108e6ac18b223 (patch) | |
tree | 07719afc90e116a06ee8e1f37e3ef502d172a4ed /crawl-ref/source/artefact.cc | |
parent | 89a5294bf5ff38eb4450b238cdc5de00b04a6a1a (diff) | |
download | crawl-ref-f1bfef0f000886095c15114588e108e6ac18b223.tar.gz crawl-ref-f1bfef0f000886095c15114588e108e6ac18b223.zip |
Fix a problem with randart jewellery (N78291).
The base type showed up as revealed always, which was not the intended
behavior.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r-- | crawl-ref/source/artefact.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc index ebcaab387a..600348aa28 100644 --- a/crawl-ref/source/artefact.cc +++ b/crawl-ref/source/artefact.cc @@ -466,7 +466,13 @@ void artefact_desc_properties(const item_def &item, if (fake_rap != ARTP_NUM_PROPERTIES) { proprt[fake_rap] += fake_plus; - known[fake_rap] = true; + + if (item_ident(item, ISFLAG_KNOW_PROPERTIES) + || item_ident(item, ISFLAG_KNOW_TYPE)) + { + known[fake_rap] = true; + } + return; } |