diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-08 12:28:20 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-08 12:28:20 +0000 |
commit | 7f5986ca21f56cf144db2a4b0f484837b771d05f (patch) | |
tree | 9eed4da762e14060016788c07317fba0b37c1923 /crawl-ref/source/mon-util.cc | |
parent | 2695f313b764e05d416d31f90ff913eca7fb9a32 (diff) | |
download | crawl-ref-7f5986ca21f56cf144db2a4b0f484837b771d05f.tar.gz crawl-ref-7f5986ca21f56cf144db2a4b0f484837b771d05f.zip |
Fixed ENCH_SLEEPY persisting for too long with ensorcelled hibernation.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2375 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index c125489b86..c58a0d9368 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -4877,6 +4877,15 @@ bool monsters::do_shaft() return true; } + +void monsters::put_to_sleep(int) +{ + behaviour = BEH_SLEEP; + add_ench( + mon_enchant(ENCH_SLEEPY, 0, KC_OTHER, + 12 * speed_to_duration(speed))); + add_ench(ENCH_SLEEP_WARY); +} ///////////////////////////////////////////////////////////////////////// // mon_enchant |