summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-16 01:29:47 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-16 01:29:47 +0000
commit59eb3c3f326a284b63b58b95d9396746d9664bbe (patch)
tree83fa66c5169ace694a3ab6fe42819b2e64cbba17 /crawl-ref/source/religion.cc
parent851431b610b7a161ca5bc5ffbddbb76a4a870472 (diff)
downloadcrawl-ref-59eb3c3f326a284b63b58b95d9396746d9664bbe.tar.gz
crawl-ref-59eb3c3f326a284b63b58b95d9396746d9664bbe.zip
Let TSO's weapon blessing for players work on weapons that have the holy
wrath brand, and which can be in a blessed form but aren't. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4253 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index e6e5c5de1c..6cf6e0195b 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -4150,7 +4150,7 @@ static void _altar_prayer()
god_acting gdact;
- // TSO blesses weapons with holy wrath
+ // TSO blesses weapons with holy wrath, and long blades specially
if (you.religion == GOD_SHINING_ONE
&& !you.num_gifts[GOD_SHINING_ONE]
&& !player_under_penance()
@@ -4158,8 +4158,12 @@ static void _altar_prayer()
{
const int wpn = get_player_wielded_weapon();
- if (wpn != -1 && get_weapon_brand(you.inv[wpn]) != SPWPN_HOLY_WRATH)
+ if (wpn != -1
+ && (get_weapon_brand(you.inv[wpn]) != SPWPN_HOLY_WRATH
+ || is_blessable(you.inv[wpn])))
+ {
_bless_weapon(GOD_SHINING_ONE, SPWPN_HOLY_WRATH, YELLOW);
+ }
}
// Lugonu blesses weapons with distortion