ringmail.c - example for course 02

[previous example] [course 02] [Table of contents] [next example]
/* Filename      : ringmail.c
 * Description   : a simple body armour 
 *
 * written       : 30-09-1996 - Gunner
 * last modified : 30-09-1996 - Gunner
 * HTML-Version  : 22-01-2000 - Ghorwin
 */

#include <mudlib.h>
inherit I_ARMOUR;               // inherit "/std/armour.c"

create()
{
    ::create();
    set_name("black ringmail");
    add_id(({"ringmail","burnt ringmail","burnt black ringmail","mail",
        "black mail","burnt mail","burnt black mail"}));
    set_short("A black ringmail");
    set_long("The ringmail has been burnt black by a really hot fire.\n");
    set_weight(2);
    set_value(300);
    set_ac(2);                  // How good is the armour?
    set_type("armour");         // What kind of armour is it?
    add_property("iron");       // Always remember the properties...
    replace_program(I_ARMOUR);
}