summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-12 23:08:37 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-12 23:08:37 +1000
commit3031fc6db1f969fd9b3bfa9687b263713cda20a0 (patch)
tree94967c6bbd40d84e2ed774f891f205c9d5502720 /crawl-ref/source/spells4.cc
parent832d0ed62141a910d95e86a6284d72b244577e90 (diff)
downloadcrawl-ref-3031fc6db1f969fd9b3bfa9687b263713cda20a0.tar.gz
crawl-ref-3031fc6db1f969fd9b3bfa9687b263713cda20a0.zip
Rename can_sleep/put_to_sleep to can_hibernate/hibernate.
This reflects the fact that these functions are currently only used to player and monster ensorcelled hibernation/metabolic englaciation, and thus both check monster's cold resistance.
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 3458dc6671..86d344f25d 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -397,7 +397,7 @@ static int _sleep_monsters(coord_def where, int pow, int, actor *)
if (!monster)
return (0);
- if (!monster->can_sleep(true))
+ if (!monster->can_hibernate(true))
return (0);
if (monster->check_res_magic(pow))
@@ -410,7 +410,7 @@ static int _sleep_monsters(coord_def where, int pow, int, actor *)
if (monster->has_ench(ENCH_SLEEP_WARY) && !one_chance_in(3))
return (0);
- monster->put_to_sleep();
+ monster->hibernate();
monster->expose_to_element(BEAM_COLD, 2);
return (1);
}