summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorgammafunk <gammafunk@gmail.com>2013-06-16 00:09:43 -0500
committerNeil Moore <neil@s-z.org>2013-10-01 21:27:18 -0400
commit411ff6d85307f77544153c77158ad5352c86a690 (patch)
treef02b4de1a4d9a56a8cc8aa4783001aeded98701f /crawl-ref/source/artefact.cc
parentc1653bd6c0b032a4799f5a0b507bcdce4801dc93 (diff)
downloadcrawl-ref-411ff6d85307f77544153c77158ad5352c86a690.tar.gz
crawl-ref-411ff6d85307f77544153c77158ad5352c86a690.zip
Add a jump artefact property giving the evoke jump ability
* Can be added to anything that's not a ranged weapon with same frequency code as used for fly/blink/rage (occurs after rage) * Shops appraise this for same value as +Rage.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index 53983f8711..a24317a290 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -976,6 +976,15 @@ static void _get_randart_properties(const item_def &item,
power_level++;
}
+ // jump attack
+ if (!done_powers
+ && one_chance_in(10)
+ && (aclass != OBJ_WEAPONS || !is_range_weapon(item)))
+ {
+ proprt[ARTP_JUMP] = 1;
+ power_level++;
+ }
+
if (!done_powers && one_chance_in(10) && aclass == OBJ_ARMOUR
&& (atype == ARM_CAP || atype == ARM_SHIELD))
{