tall_lamp.c
ds2.10/lib/domains/cave/obj/tall_lamp.c · 628 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
#include <lib.h>
#include <vendor_types.h>
inherit LIB_TORCH;
void create(){
::create();
SetKeyName("lamp");
SetId( ({"thing","item","thang","dingus"}) );
SetAdjectives( ({"generic","sample","template"}) );
SetShort("a tall lamp");
SetLong("This is a tall lamp embedded into the floor, designed to provide light.");
SetPreventGet("The lamp is embedded into the floor.");
SetMass(20);
SetBaseCost("silver",10);
SetVendorType(VT_TREASURE);
SetRadiantLight(25);
}
void init(){
::init();
if(!GetLit() && CanBurn(this_object())){
this_object()->eventBurn(0,0,1);
}
}