toilet.c

ds2.1.1/lib/domains/town/obj/toilet.c · 698 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>

inherit LIB_CHAIR;


static void create() {
    chair::create();
    SetKeyName("mansion commode");
    SetId( ({ "toilet","commode","bowl","can" }) );
    SetAdjectives( ({ "porcelain","white" }) );
    SetShort("a toilet");
    SetLong("This is a common piece of internal plumbing.");
    SetMass(3500);
    SetBaseCost("silver",15);
    SetMaxSitters(1);
}
void init(){
    ::init();
    add_action("flush","flush");
}
int flush(string str){
    if(!str || str == "" ||str == "toilet"){
	write("ba-WHOOSH!");
	say(this_player()->GetName()+" flushes the toilet. ba-WHOOSH!");
	return 1;
    }
    else return 0;
}
mixed CanGet(object ob) { return "The toilet does not budge.";}

Site Stats

Snippets: 1791
Codebases: 571