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/player.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/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 49d210f4ec..4ea7ac6b41 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -7038,7 +7038,7 @@ bool player::can_throw_large_rocks() const return (player_genus(GENPC_OGRE) || species == SP_TROLL); } -bool player::can_sleep(bool holi_only) const +bool player::can_hibernate(bool holi_only) const { // Undead, nonliving, and plants don't sleep. const mon_holy_type holi = holiness(); @@ -7059,11 +7059,11 @@ bool player::can_sleep(bool holi_only) const return (true); } -void player::put_to_sleep(int) +void player::hibernate(int) { ASSERT(!crawl_state.arena); - if (!can_sleep()) + if (!can_hibernate()) { mpr("You feel weary for a moment."); return; |