diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-08 16:26:22 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-08 16:26:22 +0000 |
commit | 140d86fc448a11f2ff9b514c0fda5c37e0c89395 (patch) | |
tree | a2206f657a10216dc93ba3656d9d4c6b8bd788b6 /crawl-ref/source/religion.cc | |
parent | 93fc5eba881f64a3e4f0d7ebbd901b2ede688cd3 (diff) | |
download | crawl-ref-140d86fc448a11f2ff9b514c0fda5c37e0c89395.tar.gz crawl-ref-140d86fc448a11f2ff9b514c0fda5c37e0c89395.zip |
Allow TSO to bless weapons other than long swords.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4132 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index a7e5365fc6..423380b213 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -4168,7 +4168,7 @@ static void _print_sacrifice_message(god_type god, const item_def &item, } _replace(msg, "<>", tag_start); _replace(msg, "</>", tag_end); - + msg.insert(0, item.name(DESC_CAP_THE)); formatted_message_history(msg, MSGCH_GOD); } @@ -4191,11 +4191,9 @@ void altar_prayer() { const int wpn = get_player_wielded_weapon(); - if (wpn != -1 - && weapon_skill( you.inv[wpn] ) == SK_LONG_BLADES - && get_weapon_brand( you.inv[wpn] ) != SPWPN_HOLY_WRATH) + if (wpn != -1 && get_weapon_brand(you.inv[wpn]) != SPWPN_HOLY_WRATH) { - if (bless_weapon( GOD_SHINING_ONE, SPWPN_HOLY_WRATH, YELLOW )) + if (bless_weapon(GOD_SHINING_ONE, SPWPN_HOLY_WRATH, YELLOW)) { // convert those demon blades if blessed: if (you.inv[wpn].sub_type == WPN_DEMON_BLADE) |