hatch.c

ds3.0/lib/domains/campus/doors/hatch.c · 651 B

From the archive ds3.0.zip

Download the archive   « Back to the archive contents

#include <lib.h>

inherit LIB_DOOR;

static void create() {
    door::create();
    SetSide("down", ([ "id" : ({"service hatch", "hatch"}),
                "short" : "a hatch",
                "long" : "This is a service hatch.",
                "lockable" : 0 ]) );
    SetSide("up", ([ "id" : ({"service hatch", "hatch"}),
                "short" : "a hatch",
                "long" : "This is a service hatch.",
                "lockable" : 0 ]) );
    SetClosed(1);
}

mixed CanOpen(object ob){
    if(base_name(environment(ob)) == "/domains/campus/room/maintenance"){
        return 1;
    }
    else return "There is no handle on this side.";
}

Site Stats

Snippets: 1791
Codebases: 571