summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 22:52:07 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 22:52:07 +0000
commitf7eb8c113c75b0b9a064cfd840d46915494b9a34 (patch)
tree86140b28c7287a78b6469113f4f15e0bf53c668d /crawl-ref/source/item_use.cc
parentb67ca8220470dc19f83db1b199fec11c8f311da4 (diff)
downloadcrawl-ref-f7eb8c113c75b0b9a064cfd840d46915494b9a34.tar.gz
crawl-ref-f7eb8c113c75b0b9a064cfd840d46915494b9a34.zip
Properly warn Yredelemnulites about the use of holy items, just as we do
with good god worshippers and evil items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6995 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index a08ccee3ba..7bce87d93b 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -527,10 +527,12 @@ void wield_effects(int item_wield_2, bool showMsgs)
case OBJ_WEAPONS:
{
- if (is_evil_item(item) && is_good_god(you.religion))
+ if (showMsgs)
{
- if (showMsgs)
- mpr("You really shouldn't be using a nasty item like this.");
+ if (is_holy_item(item) && you.religion == GOD_YREDELEMNUL)
+ mpr("You really shouldn't be using a holy item like this.");
+ else if (is_evil_item(item) && is_good_god(you.religion))
+ mpr("You really shouldn't be using an evil item like this.");
}
const bool was_known = item_type_known(item);