From b791456793c967f1c484f0e3b726aadde102fc8a Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 25 Jun 2009 22:50:05 +0000 Subject: Replace "is_random_artefact()" with "is_artefact()" in a few places where this was missed, and add checks for unrandart and special unrandarts where applicable. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10044 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index be626b3c53..5c1853e2e5 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -735,7 +735,7 @@ static std::string _describe_weapon(const item_def &item, bool verbose) int spec_ench = get_weapon_brand( item ); - if (!is_random_artefact( item ) && !verbose) + if (!is_artefact( item ) && !verbose) spec_ench = SPWPN_NORMAL; // special weapon descrip @@ -1272,7 +1272,7 @@ static std::string _describe_armour( const item_def &item, bool verbose ) } } - if (is_random_artefact( item )) + if (is_artefact( item )) { std::string rand_desc = _randart_descrip( item ); if (!rand_desc.empty()) @@ -1351,7 +1351,7 @@ static std::string _describe_jewellery( const item_def &item, bool verbose) description.reserve(200); - if ((verbose || is_random_artefact( item )) + if ((verbose || is_artefact( item )) && item_ident( item, ISFLAG_KNOW_PLUSES )) { // Explicit description of ring power (useful for randarts) @@ -1359,7 +1359,7 @@ static std::string _describe_jewellery( const item_def &item, bool verbose) // in the case that its zero, just to avoid confusion. -- bwr if (item.plus != 0 || item.sub_type == RING_SLAYING && item.plus2 != 0 - || is_random_artefact( item )) + || is_artefact( item )) { switch (item.sub_type) { @@ -1422,8 +1422,8 @@ static std::string _describe_jewellery( const item_def &item, bool verbose) } } - // Randart properties. - if (is_random_artefact( item )) + // Artefact properties. + if (is_artefact( item )) { std::string rand_desc = _randart_descrip( item ); if (!rand_desc.empty()) @@ -2243,7 +2243,7 @@ void inscribe_item(item_def &item, bool proper_prompt) // Only allow autoinscription if we don't have all the text // already. bool need_autoinscribe = false; - if (is_random_artefact(item)) + if (is_artefact(item)) { ainscrip = artefact_auto_inscription(item); if (!ainscrip.empty() -- cgit v1.2.3-54-g00ecf