summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-12 23:10:14 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-12 23:10:14 +0000
commit995e9fc728b24c9dd5a821c6e9c490b3d4682177 (patch)
tree97c663d36d6e1456b6e8b9d35bdefc495db4f7e2 /crawl-ref/source/itemprop.cc
parent3e1bc33f1ea93a6eb20afa216a15ca562c707ab4 (diff)
downloadcrawl-ref-995e9fc728b24c9dd5a821c6e9c490b3d4682177.tar.gz
crawl-ref-995e9fc728b24c9dd5a821c6e9c490b3d4682177.zip
FR 2823234: Note getting the Blessed Blade right away
FR 2433928: Holy wrath weapons cannot be cursed. The message could stand to be improved. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10530 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index fc4548158c..ab3a066612 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -484,6 +484,18 @@ void do_curse_item( item_def &item, bool quiet )
if (item.flags & ISFLAG_CURSED)
return;
+ // Holy weapons cannot be cursed.
+ if (item.base_type == OBJ_WEAPONS
+ && get_weapon_brand(item) == SPWPN_HOLY_WRATH)
+ {
+ if (!quiet)
+ {
+ mprf("Your %s glows golden for a moment.",
+ item.name(DESC_PLAIN).c_str());
+ }
+ return;
+ }
+
if (!quiet)
{
mprf("Your %s glows black for a moment.",