summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-03-19 18:55:38 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-04-27 16:01:08 -0400
commita5c5f62ab8b6da919c58377e2c251380f65cc653 (patch)
tree6ed62dc1a6099075587d5bef360df48a26afefc3 /crawl-ref/source/artefact.cc
parent9da1fa0942dabbe43d7ea81e1c8649ece15c5274 (diff)
downloadcrawl-ref-a5c5f62ab8b6da919c58377e2c251380f65cc653.tar.gz
crawl-ref-a5c5f62ab8b6da919c58377e2c251380f65cc653.zip
Auto-id jewellery on equip.
In the case of rings/amulets that identified themselves when they had an effect, the player would want to try to put themselves in a position where the item would identify, which was techincally optimal but quite annoying. There were a few items that never would identify, but on the whole it's not worth keeping around the behavior just for them. The ID code is pretty confusing and it's quite possible the implementation is not ideal or there are actual bugs.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index f66763fea2..ebcaab387a 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -442,12 +442,6 @@ void artefact_desc_properties(const item_def &item,
artefact_prop_type fake_rap = ARTP_NUM_PROPERTIES;
int fake_plus = 1;
- // The base jewellery type is one whose property is revealed by
- // wearing it, but whose property isn't revealed by having
- // ISFLAG_KNOW_PLUSES set. For a randart with a base type of, for
- // example, a ring of strength, wearing it sets
- // ISFLAG_KNOW_PLUSES, which reveals the ring's strength plus.
-
// XXX has to match player-equip.cc:_equip_jewelry_effect(), sort-of (SamB)
switch (item.sub_type)
{
@@ -472,13 +466,7 @@ void artefact_desc_properties(const item_def &item,
if (fake_rap != ARTP_NUM_PROPERTIES)
{
proprt[fake_rap] += fake_plus;
-
- if (item_ident(item, ISFLAG_KNOW_PROPERTIES)
- || item_ident(item, ISFLAG_KNOW_TYPE))
- {
- known[fake_rap] = true;
- }
-
+ known[fake_rap] = true;
return;
}