diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-04 07:21:05 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-04 07:21:05 +0000 |
commit | 3db6df1d0ca8100864c3638521e89e352f6d0b8c (patch) | |
tree | 20f5f36466e5f8406a325029d30362398f244bb1 /crawl-ref/source/spells4.cc | |
parent | 19d71d1a0d3b58b4a8501dd0d471e1dbae54fa2f (diff) | |
download | crawl-ref-3db6df1d0ca8100864c3638521e89e352f6d0b8c.tar.gz crawl-ref-3db6df1d0ca8100864c3638521e89e352f6d0b8c.zip |
Strengthen metabolic englaciation (doy).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6763 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index d9be443673..1a32c331b8 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -411,9 +411,10 @@ static int _sleep_monsters(coord_def where, int pow, int garbage) // Works on friendlies too, so no check for that. //jmf: Now that sleep == hibernation: - if (mons_res_cold( &mon ) > 0 && coinflip()) + const int res = mons_res_cold( &mon ); + if (res > 0 && one_chance_in(std::max(4 - res, 1))) return 0; - if (mon.has_ench(ENCH_SLEEP_WARY)) + if (mon.has_ench(ENCH_SLEEP_WARY) && !one_chance_in(3)) return 0; mon.put_to_sleep(); |