summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-05 15:46:56 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-05 15:46:56 +0000
commit35111f8ffcbfa184280a5fa6aae08e346047ed16 (patch)
tree236f89ed3cce7dd07fb74a2ed1568f90c494abcf /crawl-ref
parent2324d8f22fc3db602fc65a785dcd7cf4255d5480 (diff)
downloadcrawl-ref-35111f8ffcbfa184280a5fa6aae08e346047ed16.tar.gz
crawl-ref-35111f8ffcbfa184280a5fa6aae08e346047ed16.zip
Made ensorcelled hibernation easier early on, harder later (with a step-down).
(Erik) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1224 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/spl-cast.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index be3240dfb3..03efe0b96c 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -1708,8 +1708,16 @@ spret_type your_spells( int spc2, int powc, bool allow_fail )
break;
case SPELL_SLEEP:
- zapping(ZAP_SLEEP, powc * 83 / 100, beam);
+ {
+ const int sleep_power =
+ stepdown_value( powc * 9 / 10, 5, 35, 45, 50 );
+#ifdef DEBUG_DIAGNOSTICS
+ mprf(MSGCH_DIAGNOSTICS, "Sleep power stepdown: %d -> %d",
+ powc, sleep_power);
+#endif
+ zapping(ZAP_SLEEP, sleep_power, beam);
break;
+ }
case SPELL_MASS_SLEEP:
cast_mass_sleep(powc);