asleep.c
skylib_fluffos_v3/mudlib/std/shadows/other/asleep.c · 468 B
From the archive skylib_fluffos_v3.zip
Download the archive « Back to the archive contents
/*
* This shadow goes with the effect classified as "asleep"
*
* It intercepts the message given when a player attempts to use
* commands while passed out. It intercepts only when the player
* is asleep and not also unconscious.
*
*/
#include <living.h>
inherit "/std/effect_shadow";
/** @ignore yes */
string query_passed_out_message() {
if( player->query_property( PASSED_OUT ) == ASLEEP )
return "You are sound asleep and can't do anything.\n";
}