diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-12 23:08:37 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-12 23:08:37 +1000 |
commit | 3031fc6db1f969fd9b3bfa9687b263713cda20a0 (patch) | |
tree | 94967c6bbd40d84e2ed774f891f205c9d5502720 /crawl-ref/source/monster.cc | |
parent | 832d0ed62141a910d95e86a6284d72b244577e90 (diff) | |
download | crawl-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/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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; |