diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-15 18:45:41 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-15 18:45:41 +0000 |
commit | 0a22591e3b05f479def2d67dc5c935aaddf072d1 (patch) | |
tree | 99e49cf09ac93f011edff49c67feff10b4928045 /crawl-ref/source/itemprop.cc | |
parent | 400f2b68e5b68aae60af8465a9f5a5f07b05e714 (diff) | |
download | crawl-ref-0a22591e3b05f479def2d67dc5c935aaddf072d1.tar.gz crawl-ref-0a22591e3b05f479def2d67dc5c935aaddf072d1.zip |
Let TSO's "holy attack power" blessing for followers turn demon blades
into scimitars again. The corresponding blessing for players will still
turn them into blessed blades.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4247 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index db1e52e118..b8218a96b6 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -1597,7 +1597,7 @@ bool is_demonic( const item_def &item ) return (false); } // end is_demonic() -bool demonic2nondemonic( item_def &item ) +bool demonic2nondemonic( item_def &item, bool allow_blessed ) { if (item.base_type != OBJ_WEAPONS) return (false); @@ -1608,7 +1608,7 @@ bool demonic2nondemonic( item_def &item ) return (false); case WPN_DEMON_BLADE: - item.sub_type = WPN_BLESSED_BLADE; + item.sub_type = (allow_blessed) ? WPN_BLESSED_BLADE : WPN_SCIMITAR; break; case WPN_DEMON_WHIP: |