diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-24 05:53:20 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-24 05:53:20 +0000 |
commit | d36d3b87ad3b1f8c3a47f17d8307b6755db172fc (patch) | |
tree | c321ef38a7d914c56e85509a11fde0de1adc5eac /crawl-ref/source/player.cc | |
parent | c9b58a9e982131bd26529d155701f324c7e99309 (diff) | |
download | crawl-ref-d36d3b87ad3b1f8c3a47f17d8307b6755db172fc.tar.gz crawl-ref-d36d3b87ad3b1f8c3a47f17d8307b6755db172fc.zip |
Add a message for when the player can't be put to sleep.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4584 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index d5953e4b40..1fe1580f8f 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6514,7 +6514,10 @@ void player::put_to_sleep(int) // Not all species can be put to sleep. Check holiness. const mon_holy_type holy = holiness(); if (holy == MH_UNDEAD || holy == MH_NONLIVING) + { + mpr("You feel weary for a moment."); return; + } mpr("You fall asleep."); stop_delay(); |