summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godprayer.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2014-04-23 17:30:09 +0200
committerNicholas Feinberg <pleasingfung@gmail.com>2014-06-14 23:00:53 -0700
commitff84095d8b04a5b2e939fbfb1d8688f82ed4d1a2 (patch)
treed45c65da89f4dc2aece6099fef841f8cc3f5158f /crawl-ref/source/godprayer.cc
parent913e1e1b0aa38a63f6397ea793b3944d432afefc (diff)
downloadcrawl-ref-ff84095d8b04a5b2e939fbfb1d8688f82ed4d1a2.tar.gz
crawl-ref-ff84095d8b04a5b2e939fbfb1d8688f82ed4d1a2.zip
Plus2: Combine all three enchant weapon scrolls
New item is just called "scroll of enchant weapon". It increases both accuracy and damage by 1. Enchant weapon III scrolls have been converted to stacks of 2 enchant weapon scrolls where placed in vaults, and if already generated will act like a common "scroll of enchant weapon" as well for sake of simplicity. Scroll weights have been adjusted a bit; this almost certainly needs to be revisited. [Committer's note: merged a few commits into this, where it seemed sensible. Also reworked the scroll weights, but yeah, that needs another pass.]
Diffstat (limited to 'crawl-ref/source/godprayer.cc')
-rw-r--r--crawl-ref/source/godprayer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/godprayer.cc b/crawl-ref/source/godprayer.cc
index 25567350c8..eee526a672 100644
--- a/crawl-ref/source/godprayer.cc
+++ b/crawl-ref/source/godprayer.cc
@@ -124,7 +124,8 @@ static bool _bless_weapon(god_type god, brand_type brand, int colour)
const bool is_cursed = wpn.cursed();
- enchant_weapon(wpn, 1 + random2(2), 1 + random2(2), 0);
+ enchant_weapon(wpn);
+ enchant_weapon(wpn);
if (is_cursed)
do_uncurse_item(wpn, false);