From d36d3b87ad3b1f8c3a47f17d8307b6755db172fc Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 24 Apr 2008 05:53:20 +0000 Subject: 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 --- crawl-ref/source/player.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/player.cc') 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(); -- cgit v1.2.3-54-g00ecf