summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.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/xom.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/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index 5a37f22d91..e1f9049691 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -1014,8 +1014,8 @@ static void _do_chaos_upgrade(item_def &item, const monster* mon)
item.flags |= ISFLAG_GLOWING;
// Make the pluses more like a randomly generated ego item.
- item.plus += random2(5);
- item.plus2 += random2(5);
+ if (item.base_type == OBJ_WEAPONS)
+ item.plus += random2(5);
}
}