diff options
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index c0dc3cf054..f0b055b05b 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -2678,6 +2678,11 @@ void handle_time( long time_delta ) { yell(true); } + else if (you.mutation[MUT_SLEEPINESS] + && random2(100) < you.mutation[MUT_SLEEPINESS] * 5) + { + you.put_to_sleep(); + } // Update all of the corpses and food chunks on the floor update_corpses(time_delta); |