tiny_gong.c
dw_fluffos_v1/lib/obj/furnitures/misc/tiny_gong.c · 1.1 KB
From the archive dw_fluffos_v1.tar.gz
Download the archive « Back to the archive contents
// Una
// For use in Cwc
inherit "/std/room/furniture/basic";
void setup() {
set_name("gong");
set_short("tiny brass gong");
add_adjective( ({ "tiny", "brass" }) );
set_long("This is a tiny brass gong, which hangs from an equally "
"tiny frame. Fluttering butterflies flit around each other on the "
"disc, flying aimlessly across its smooth "
"surface. The gong can be hit to make a loud ringing "
"sound and annoy everyone in the room.\n");
set_weight( 20 );
set_value( 15000 );
set_material( "brass" );
set_allowed_positions( ({"hanging"}) );
set_allowed_room_verbs((["hanging" : "hangs",
"sitting" : "sits",
"dangling" : "dangles",
"standing" : "stands" ]));
} /* setup() */
void init() {
this_player()->add_command( "hit", this_object(), "<direct:object:me>" );
} /* init() */
int do_hit(){
this_player()->add_succeeded_mess(this_object(), "$N $V $p "
+this_object()->short()+" loudly, filling the room with a"
" tiny tinkling chime.\n", ({ }));
return 1;
} /* do_hit() */