furnace.c

ds2.1.1/lib/domains/default/room/furnace.c · 815 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
#include <rooms.h>

inherit LIB_ROOM;

void create() {
    room::create();
    SetAmbientLight(30);
    SetShort("the furnace");
    SetLong("The furnace. Things that arrive here are "+
      "incinerated. You probably shouldn't be here. Go down to get out.");
    SetProperties(([
	"no attack" : 1,
      ]));
    SetExits( ([ "down" : ROOM_START ]) );
    call_out((: reload_room :), 600, load_object(base_name(this_object())));
    set_heart_beat(1);
    SetNoModify(1);
}
int CanReceive(object ob){
    if(interactive(ob)){
	tell_object(ob, "You fail to enter the furnace.");
	return 0;
    }
    return 1;
}
void init(){
    ::init();
}
void heart_beat(){
    if(sizeof(all_inventory(this_object()))){
	foreach(object ob in deep_inventory(this_object())){
	    ob->eventDestruct();
	}
    }
}

Site Stats

Snippets: 1791
Codebases: 571