From 3031fc6db1f969fd9b3bfa9687b263713cda20a0 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Thu, 12 Nov 2009 23:08:37 +1000 Subject: 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. --- crawl-ref/source/monster.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/monster.cc') diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index b2f42c18f9..143370cecf 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -5566,7 +5566,7 @@ bool monsters::do_shaft() return (reveal); } -bool monsters::can_sleep(bool holi_only) const +bool monsters::can_hibernate(bool holi_only) const { // Undead, nonliving, and plants don't sleep. const mon_holy_type holi = holiness(); @@ -5591,9 +5591,9 @@ bool monsters::can_sleep(bool holi_only) const return (true); } -void monsters::put_to_sleep(int) +void monsters::hibernate(int) { - if (!can_sleep()) + if (!can_hibernate()) return; behaviour = BEH_SLEEP; -- cgit v1.2.3-54-g00ecf