summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-selfench.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-02-08 12:41:52 +0000
committerChris Campbell <chriscampbell89@gmail.com>2014-02-08 23:54:45 +0000
commitdc1dc17bbad6579e7821be58ee49164135786185 (patch)
treeef3d2d3c0def43951efdfc8edd8e71a389d1f9ce /crawl-ref/source/spl-selfench.cc
parent8db4b04990254da5c553a867bbb20ed6ee2086f9 (diff)
downloadcrawl-ref-dc1dc17bbad6579e7821be58ee49164135786185.tar.gz
crawl-ref-dc1dc17bbad6579e7821be58ee49164135786185.zip
Slight adjustments to power, timeouts and messages for RMsl/DMsl
Use the same formula for chance of expiry for RMsl/DMsl (the power cap and chance to actually succeed differentiates them), slightly randomise the timeout when expiring (possibly they should just expire immediately?).
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r--crawl-ref/source/spl-selfench.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc
index 28eeb8e9c5..09f0bfdace 100644
--- a/crawl-ref/source/spl-selfench.cc
+++ b/crawl-ref/source/spl-selfench.cc
@@ -112,8 +112,8 @@ spret_type ice_armour(int pow, bool fail)
spret_type missile_prot(int pow, bool fail)
{
fail_check();
- you.attribute[ATTR_REPEL_MISSILES] = 2 + pow/6;
- you.set_duration(DUR_REPEL_MISSILES, 3, 50, NULL);
+ you.attribute[ATTR_REPEL_MISSILES] = 1 + pow / 6;
+ you.set_duration(DUR_REPEL_MISSILES, 1 + random2(3));
mpr("You feel protected from missiles.");
return SPRET_SUCCESS;
}
@@ -121,8 +121,8 @@ spret_type missile_prot(int pow, bool fail)
spret_type deflection(int pow, bool fail)
{
fail_check();
- you.attribute[ATTR_DEFLECT_MISSILES] = 1 + pow/5;
- you.set_duration(DUR_DEFLECT_MISSILES, 5, 50, NULL);
+ you.attribute[ATTR_DEFLECT_MISSILES] = 1 + pow / 6;
+ you.set_duration(DUR_DEFLECT_MISSILES, 1 + random2(3));
mpr("You feel very safe from missiles.");
return SPRET_SUCCESS;
}