diff options
author | Chris Oelmueller <chris.oelmueller@gmail.com> | 2014-04-23 17:30:09 +0200 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-14 23:00:53 -0700 |
commit | ff84095d8b04a5b2e939fbfb1d8688f82ed4d1a2 (patch) | |
tree | d45c65da89f4dc2aece6099fef841f8cc3f5158f /crawl-ref/source/tags.cc | |
parent | 913e1e1b0aa38a63f6397ea793b3944d432afefc (diff) | |
download | crawl-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/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 9f074a4127..4e64edfe39 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -3848,6 +3848,16 @@ void unmarshallItem(reader &th, item_def &item) } } + if (th.getMinorVersion() < TAG_MINOR_MERGE_EW) + { + // Combine EW1/EW2/EW3 scrolls into single enchant weapon scroll. + if (item.base_type == OBJ_SCROLLS + && (item.sub_type == SCR_ENCHANT_WEAPON_II + || item.sub_type == SCR_ENCHANT_WEAPON_III)) + { + item.sub_type = SCR_ENCHANT_WEAPON; + } + } #endif if (is_unrandom_artefact(item)) |