summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/actor.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/actor.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/actor.cc')
-rw-r--r--crawl-ref/source/actor.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/actor.cc b/crawl-ref/source/actor.cc
index ff409fa1ea..1432b7f360 100644
--- a/crawl-ref/source/actor.cc
+++ b/crawl-ref/source/actor.cc
@@ -392,7 +392,8 @@ int actor::evokable_jump(bool calc_unid) const
{
if (suppressed())
return 0;
- return wearing_ego(EQ_ALL_ARMOUR, SPARM_JUMPING, calc_unid);
+ return wearing_ego(EQ_ALL_ARMOUR, SPARM_JUMPING, calc_unid)
+ + scan_artefacts(ARTP_JUMP, calc_unid);
}
int actor::spirit_shield(bool calc_unid, bool items) const