summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-11 17:02:45 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-12 00:58:16 +0100
commitc8f280dbc8c22e355c7536ad17f39766c8264ec3 (patch)
treecb8872eb0536efd8a09e5e3964ef42dcbc8c1799 /crawl-ref/source/artefact.cc
parente188af641bc594cd0aa025e81cd0a4d309b8a938 (diff)
downloadcrawl-ref-c8f280dbc8c22e355c7536ad17f39766c8264ec3.tar.gz
crawl-ref-c8f280dbc8c22e355c7536ad17f39766c8264ec3.zip
Crossbows of shocking, for everyone. Launchers of holy wrath, for dpeg's angels.
Neither cause additional mulching of ammo, since both the charge and blessing is temporary. Blessing and reaping cancel each other. Holy wrath launchers are a lot weaker than silver ammo, but these two stack. Plus, they're permanent while ammo is scarce.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index fb2687526a..0ac8f3ac0c 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -769,6 +769,12 @@ void static _get_randart_properties(const item_def &item,
{
proprt[ARTP_BRAND] = SPWPN_NORMAL;
}
+
+ if (atype == WPN_CROSSBOW && one_chance_in(5)
+ || atype == WPN_HAND_CROSSBOW && one_chance_in(10))
+ {
+ proprt[ARTP_BRAND] = SPWPN_ELECTROCUTION;
+ }
}
}