sofa.c

ds2.1.1/lib/domains/town/obj/sofa.c · 660 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

/*    /domains/campus/etc/stool.c
 *    From the Nightmare V Object Library
 *    An example of a chair object
 *    Created by Descartes of Borg 961221
 */

#include <lib.h>

inherit LIB_CHAIR;

static void create() {
    chair::create();
    SetKeyName("sofa");
    SetId("sofa");
    SetAdjectives( ({ "black", "small", "tasteful", "upholstered" }) );
    SetShort("a sofa");
    SetLong("This is a small, plush sofa tastefully upholstered "+
      "in black. It appears designed for sitting on.");
    SetMass(1500);
    SetDollarCost(15);
    SetMaxSitters(2);
}
mixed CanGet(object ob) { return "The bench does not budge.";}
void init(){
    ::init();
}

Site Stats

Snippets: 1791
Codebases: 571