diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-25 15:11:37 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-25 15:11:37 +0000 |
commit | 0eceb6ff8b8501d07c94e2e5d46aca19121b205e (patch) | |
tree | fe32d5ef03aff51b088f03670ee8052a8309080c /crawl-ref/source/item_use.cc | |
parent | 378c95389b4ac05f90399105c705a2667a1c922e (diff) | |
download | crawl-ref-0eceb6ff8b8501d07c94e2e5d46aca19121b205e.tar.gz crawl-ref-0eceb6ff8b8501d07c94e2e5d46aca19121b205e.zip |
Fix 1914059: randart jewellery inconsistently described as {tried} by
adding yet another entry to props.
FR 1949504: Move version information into the help scroller, yay! It also
looks much nicer now (if I may say so). Go, take a look! :)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5234 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 804995e72b..56755f9314 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2616,9 +2616,9 @@ void jewellery_wear_effects(item_def &item) randart_prop_type fake_rap = RAP_NUM_PROPERTIES; bool learn_pluses = false; - // Randart jewellery shouldn't auto-ID just because the - // base type is known. Somehow the player should still - // be told, preferably by message. (jpeg) + // Randart jewellery shouldn't auto-ID just because the base type + // is known. Somehow the player should still be told, preferably + // by message. (jpeg) const bool artefact = is_random_artefact( item ); const bool known_pluses = item_ident( item, ISFLAG_KNOW_PLUSES ); const bool known_cursed = item_known_cursed( item ); @@ -2761,6 +2761,12 @@ void jewellery_wear_effects(item_def &item) if (fake_rap != RAP_NUM_PROPERTIES) randart_wpn_learn_prop( item, fake_rap ); + + if (!item.props.exists("jewellery_tried") + || !item.props["jewellery_tried"].get_bool()) + { + item.props["jewellery_tried"].get_bool() = true; + } } else { |