From 6b84e07db1d30804c767f125f4da4e760e9ef7d1 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 11 Nov 2009 08:23:06 -0600 Subject: Fix good_god_hates_item_handling() to handle the unholy/evil split. --- crawl-ref/source/describe.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 933bd6886d..4a536275f7 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -1992,10 +1992,17 @@ std::string get_item_description( const item_def &item, bool verbose, } } - if (good_god_hates_item_handling(item)) + if (conduct_type ct = good_god_hates_item_handling(item)) { description << "$$" << god_name(you.religion) << " opposes the use of " - << "such an evil item."; + << "such an "; + + if (ct == DID_NECROMANCY) + description << "evil"; + else + description << "unholy"; + + description << " item."; } else if (god_hates_item_handling(item)) { -- cgit v1.2.3-54-g00ecf