From 7fa010c5fe03aee772cdfbc2b6e42fc1b492b57d Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Tue, 15 Dec 2009 15:48:37 +0100 Subject: Autoinscribe armour brands. --- crawl-ref/source/describe.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 7d40a8a2cc..8846f838ea 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -227,10 +227,13 @@ static std::vector _randart_propnames( const item_def& item ) if (!type.empty()) propnames.push_back(type); } - else if (item.base_type == OBJ_WEAPONS - && item_ident(item, ISFLAG_KNOW_TYPE)) + else if (item_ident(item, ISFLAG_KNOW_TYPE)) { - std::string ego = weapon_brand_name(item, true); + std::string ego; + if (item.base_type == OBJ_WEAPONS) + ego = weapon_brand_name(item, true); + else if (item.base_type == OBJ_ARMOUR) + ego = armour_ego_name(item, true); if (!ego.empty()) { // XXX: Ugly hack to remove the brackets... -- cgit v1.2.3-54-g00ecf