/* /domains/Examples/etc/torch.c * from the Foundation II LPC Library * an example torch * created by Descartes of Borg 950408 */ #include <lib.h> #include <vendor_types.h> inherit LIB_LIGHT; static void create() { light::create(); SetKeyName("torch"); SetId( ({ "torch", "old torch", "wooden torch" }) ); SetAdjectives( ({ "an", "old", "wooden" }) ); SetShort("an old, wooden torch"); SetLong("An old, wooden torch with a bit of cloth wrapped around " "one end and dipped into a flamable substance."); SetLight(2, "light", "extinguish"); SetFire(1); SetVendorType(VT_LIGHT); SetFuelRequired(1); SetFuel(300); SetSourceRequired(1); SetMass(50); SetValue(60); SetBurntValue(10); SetClass(10); }