summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-19 22:16:37 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-19 22:16:37 -0600
commitcbf5fe7b39f4ae734ba7b596b8a1c17264f797ea (patch)
tree17c93ff67a01bcd68821b71cec081e3a2ced1d37 /crawl-ref/source/itemprop.cc
parent8e6f0b9972661f6e73e809b55274c0cd4e40528b (diff)
downloadcrawl-ref-cbf5fe7b39f4ae734ba7b596b8a1c17264f797ea.tar.gz
crawl-ref-cbf5fe7b39f4ae734ba7b596b8a1c17264f797ea.zip
Properly mark blessed whips as TSO gifts (Scourges instead of Blades).
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 272b0df66f..d700b753d8 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1500,7 +1500,7 @@ bool is_demonic(const item_def &item)
return (false);
}
-bool is_blessed_blade(const item_def &item)
+bool is_blessed(const item_def &item)
{
if (item.base_type == OBJ_WEAPONS)
{
@@ -1525,11 +1525,12 @@ bool is_blessed_blade(const item_def &item)
return (false);
}
-bool is_blessed_blade_convertible(const item_def &item)
+bool is_blessed_convertible(const item_def &item)
{
return (!is_artefact(item)
&& (item.base_type == OBJ_WEAPONS
&& (is_demonic(item)
+ || item.sub_type == WPN_HOLY_SCOURGE
|| weapon_skill(item) == SK_LONG_BLADES)));
}
@@ -1604,7 +1605,7 @@ bool convert2good(item_def &item, bool allow_blessed)
break;
}
- if (is_blessed_blade(item))
+ if (is_blessed(item))
item.flags &= ~ISFLAG_RACIAL_MASK;
return (true);