32 lines
721 B
C
32 lines
721 B
C
#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(2000);
|
|
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.";}
|