summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-27 23:20:20 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-27 23:20:20 +0000
commite016645b2db59b0f4f7b6161d4eb129f607bef9b (patch)
tree883d3d742d6e4a65e01ab354f854316c45374680 /crawl-ref/source/religion.cc
parent17b678977666f720e4db846f96c6f1e2277f30c6 (diff)
downloadcrawl-ref-e016645b2db59b0f4f7b6161d4eb129f607bef9b.tar.gz
crawl-ref-e016645b2db59b0f4f7b6161d4eb129f607bef9b.zip
Enchant weapons blessed once-per-game at altars by 1d2 instead of 1,
just as a scroll of Enchant Weapon III does. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4710 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 72b7e5a5a0..189989a48b 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -4302,8 +4302,15 @@ static bool _bless_weapon( god_type god, int brand, int colour )
do_uncurse_item( you.inv[wpn] );
enchant_weapon( ENCHANT_TO_HIT, true, you.inv[wpn] );
+
+ if (coinflip())
+ enchant_weapon( ENCHANT_TO_HIT, true, you.inv[wpn] );
+
enchant_weapon( ENCHANT_TO_DAM, true, you.inv[wpn] );
+ if (coinflip())
+ enchant_weapon( ENCHANT_TO_DAM, true, you.inv[wpn] );
+
if ( god == GOD_SHINING_ONE )
{
convert2good(you.inv[wpn]);